/* ============================================================
   安速名片 mybizcard.cn — 产品站设计系统（折中版）
   与 ansu.xin 家族对齐：白/浅灰分段 + 官方安速红 #e30d40 + 圆角软阴影
   保留名片视觉母题（摆正呈现）；Latin/数字: Space Grotesk；中文: 系统黑体栈
   ============================================================ */

@font-face {
  font-family: 'Ansu Sans';
  src: url('../fonts/ansu-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Ansu Sans';
  src: url('../fonts/ansu-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0b0d12;
  --ink-soft: #545b64;
  --ink-faint: #8a919c;
  --paper: #f7f8fb;
  --card: #ffffff;
  --line: #e9ecf0;
  --seal: #e30d40;        /* 官方安速红 */
  --seal-deep: #c50d38;
  --seal-wash: #fdeef0;
  --ok: #16a34a;

  --font-cn: 'Ansu Sans', -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --font-num: 'Space Grotesk', 'Ansu Sans', sans-serif;

  --w-page: 1120px;
  --radius: 12px;
  --shadow-soft: 0 12px 28px rgba(11, 13, 18, .10);
  --shadow-soft-seal: 0 12px 28px rgba(227, 13, 64, .14);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-cn);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }

.wrap { max-width: var(--w-page); margin: 0 auto; padding: 0 28px; }

.num { font-family: var(--font-num); }

/* ---------- 顶部导航 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 32px;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; letter-spacing: .02em;
  white-space: nowrap;
}
.brand img { height: 34px; width: auto; display: block; }
.brand .seal-dot {
  width: 12px; height: 12px; background: var(--seal);
  display: inline-block; transform: translateY(-1px) rotate(45deg);
}
.brand-en { font-family: var(--font-num); font-weight: 400; font-size: 13px; color: var(--ink-faint); letter-spacing: .08em; }
.site-nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.site-nav a { color: var(--ink-soft); padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--seal); }
.head-cta {
  margin-left: 8px;
  font-size: 15px; font-weight: 700;
  background: var(--seal); color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.head-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(227, 13, 64, .28); }
.head-login {
  margin-left: 8px;
  font-size: 15px; font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 6px;
  white-space: nowrap;
}
.head-login:hover { color: var(--seal); }

/* ---------- 英雄区 ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--paper) 0%, #ffffff 100%); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: 48px; align-items: center;
  padding-top: 84px; padding-bottom: 96px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--seal); font-weight: 700;
  margin-bottom: 22px;
}
.hero-kicker::before {
  content: ''; width: 26px; height: 2px; background: var(--seal);
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.28; font-weight: 700; letter-spacing: .01em;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 22px; font-size: 17px; color: var(--ink-soft); max-width: 30em;
}
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn-seal {
  display: inline-block; font-weight: 700; font-size: 16px;
  background: var(--seal); color: #fff; padding: 14px 30px;
  border-radius: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-seal:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(227, 13, 64, .30); }
.btn-ghost {
  display: inline-block; font-weight: 700; font-size: 16px;
  color: var(--ink); padding: 13px 26px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  transition: border-color .15s ease, color .15s ease;
}
.btn-ghost:hover { border-color: var(--seal); color: var(--seal); }
.hero-note { margin-top: 26px; font-size: 13.5px; color: var(--ink-faint); }

/* 印刷角线（裁切标记）——只用于英雄区四角，是"印刷品"的结构性表达 */
.crop { display: none; }
.crop::before, .crop::after { content: ''; position: absolute; background: currentColor; }
.crop::before { width: 100%; height: 1px; top: 50%; }
.crop::after { height: 100%; width: 1px; left: 50%; }
.crop.tl { top: 18px; left: 18px; }
.crop.tr { top: 18px; right: 18px; }
.crop.bl { bottom: 18px; left: 18px; }
.crop.br { bottom: 18px; right: 18px; }

/* ---------- 名片主视觉（纯 CSS 名片叠） ---------- */
.card-stage { position: relative; min-height: 420px; }
.vcard {
  position: absolute; width: min(420px, 88%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 28px 22px;
}
.vcard.front {
  top: 30px; left: 0;
  box-shadow: var(--shadow-soft);
  z-index: 2;
  animation: settle .7s cubic-bezier(.2, .8, .2, 1) both;
}
.vcard.back {
  top: 128px; left: 27%;
  box-shadow: var(--shadow-soft-seal);
  z-index: 3;
  animation: settle .7s .1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes settle {
  from { opacity: 0; translate: 0 26px; }
  to { opacity: 1; translate: 0 0; }
}
.vcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.vcard-name { font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.vcard-title { margin-top: 4px; font-size: 13px; color: var(--ink-soft); }
.vcard-co { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--ink); }
.vcard-co small { display: block; font-weight: 400; color: var(--ink-faint); font-size: 12px; margin-top: 2px; }
.vcard-seal {
  flex: none; width: 54px; height: 54px;
  border: 2.5px solid var(--seal); color: var(--seal);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center;
  transform: rotate(6deg);
}
.vcard-back .qr-grid {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
}
.qr-svg { width: 100%; height: 100%; display: block; }
.qr-box {
  width: 108px; height: 108px; flex: none;
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: 7px;
}
.qr-side .qr-t { font-size: 14px; font-weight: 700; }
.qr-side .qr-d { margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }
.vcard-foot {
  margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-faint);
}
/* 名片上的批注气泡：产品差异点（被看过） */
.callout {
  position: absolute; z-index: 4;
  background: var(--ink); color: #fff;
  font-size: 13px; padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(11, 13, 18, .22);
  animation: settle .5s .35s cubic-bezier(.2, .8, .2, 1) both;
}
.callout b { color: #fff; }
.callout.c1 { top: 8px; right: 4%; }
.callout.c2 { bottom: 26px; left: 2%; }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section.tinted { background: var(--paper); }
.sec-head { max-width: 620px; margin-bottom: 52px; }
.sec-head h2 {
  font-size: clamp(26px, 3vw, 36px); line-height: 1.35; font-weight: 700;
  text-wrap: balance;
}
.sec-head h2::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--seal); border-radius: 2px; margin-top: 14px;
}
.sec-head p { margin-top: 14px; color: var(--ink-soft); }

/* 纸质 vs 电子 对比 */
.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.compare-col { padding: 36px 34px; }
.compare-col + .compare-col { border-left: 1px solid var(--line); }
.compare-col.old { background: var(--paper); }
.compare-col h3 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.compare-col.old h3 .tag { background: var(--line); color: var(--ink-soft); }
.compare-col h3 .tag {
  font-family: var(--font-num); font-size: 11px; letter-spacing: .1em;
  padding: 3px 8px; color: #fff; background: var(--seal); border-radius: 4px;
}
.compare-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.compare-list li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.compare-list li::before { content: '—'; color: var(--ink-faint); flex: none; }
.compare-list li.good { color: var(--ink); }
.compare-list li.good::before { content: '✓'; color: var(--ok); font-weight: 700; }

/* 功能四条（左右交替行，不是卡片阵列） */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 44px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.flip .f-copy { order: 2; }
.f-copy .f-no { font-family: var(--font-num); font-size: 13px; color: var(--seal); letter-spacing: .12em; }
.f-copy h3 { margin-top: 10px; font-size: 23px; font-weight: 700; }
.f-copy p { margin-top: 12px; color: var(--ink-soft); max-width: 28em; }
.f-visual {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px; min-height: 220px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
/* 功能可视：访客记录行 */
.log-line { display: flex; align-items: center; gap: 12px; font-size: 14px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.log-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--seal); flex: none; }
.log-dot.g { background: var(--ok); }
.log-dot.b { background: var(--ink-faint); }
.log-line .t { margin-left: auto; color: var(--ink-faint); font-family: var(--font-num); font-size: 12.5px; }
/* 功能可视：渠道条 */
.chan { display: grid; grid-template-columns: 72px 1fr 40px; gap: 12px; align-items: center; font-size: 14px; }
.chan .bar { height: 12px; background: var(--seal-wash); position: relative; }
.chan .bar i { position: absolute; inset: 0; right: auto; background: var(--seal); }
.chan .n { text-align: right; font-family: var(--font-num); font-weight: 700; }
/* 功能可视：团队树 */
.team-tree { font-size: 14.5px; display: grid; gap: 10px; }
.team-tree .node { padding: 9px 14px; border: 1px solid var(--line); background: var(--paper); }
.team-tree .root { border-color: var(--ink); font-weight: 700; }
.team-tree .sub { margin-left: 26px; }

/* 三步上手（真实步骤，允许序号） */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 30px 28px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -17px; left: 22px;
  width: 34px; height: 34px; background: var(--seal); color: #fff;
  border-radius: 8px;
  font-family: var(--font-num); font-weight: 700; font-size: 17px;
  display: grid; place-items: center;
}
.step h3 { margin-top: 10px; font-size: 18px; font-weight: 700; }
.step p { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }

/* 定价（内测公告 + 结构预留） */
.beta-plate {
  border: 1px solid var(--line); background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 30px 34px;
}
.beta-seal {
  width: 88px; height: 88px; border: 3px solid var(--seal); color: var(--seal);
  border-radius: 12px;
  display: grid; place-items: center; text-align: center;
  font-size: 15px; font-weight: 700; line-height: 1.3;
  transform: rotate(-7deg);
}
.beta-plate h3 { font-size: 21px; font-weight: 700; }
.beta-plate p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.plan-sketch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 24px 22px; }
.plan.hot { border: 1.5px solid var(--seal); border-radius: var(--radius); box-shadow: var(--shadow-soft-seal); position: relative; }
.plan .p-name { font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.plan .p-name .for { font-size: 12px; color: var(--ink-faint); font-weight: 400; }
.plan .p-price { margin-top: 10px; font-family: var(--font-num); font-size: 30px; font-weight: 700; }
.plan .p-price small { font-size: 13px; color: var(--ink-faint); font-family: var(--font-cn); font-weight: 400; }
.plan ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.plan ul li { display: flex; gap: 8px; }
.plan ul li::before { content: '·'; color: var(--seal); font-weight: 700; }
.plan.hot .p-flag { position: absolute; top: -12px; right: 14px; background: var(--seal); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 6px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px;
  padding: 20px 4px; font-weight: 700; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ind { color: var(--seal); font-family: var(--font-num); flex: none; transition: transform .2s ease; }
.faq details[open] summary .ind { transform: rotate(45deg); }
.faq .a { padding: 0 4px 22px; color: var(--ink-soft); max-width: 42em; }

/* ---------- 底部 CTA + 页脚 ---------- */
.final { text-align: center; padding: 96px 0; }
.final h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
.final p { margin-top: 14px; color: var(--ink-soft); }
.final .hero-actions { justify-content: center; margin-top: 32px; }

.site-foot { border-top: 1px solid var(--line); background: var(--card); }
.site-foot .wrap {
  display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center;
  padding-top: 30px; padding-bottom: 30px;
  font-size: 13.5px; color: var(--ink-soft);
}
.site-foot .brand { font-size: 16px; }
.site-foot .brand img { height: 26px; }
.site-foot .links { margin-left: auto; display: flex; gap: 24px; }
.site-foot a:hover { color: var(--seal); }

/* 应用场景：一叠名片铺在桌面上 */
.scene-wall {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px 24px; padding-top: 14px;
}
.scene-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.scene-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-seal);
}
.sc-role {
  font-weight: 700; font-size: 16px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  border-bottom: 1px dashed var(--line); padding-bottom: 10px;
}
.sc-role span { font-size: 12px; color: var(--ink-faint); font-weight: 400; }
.sc-pain {
  margin-top: 14px; font-size: 14px; color: var(--ink-faint); line-height: 1.7;
}
.sc-fix {
  margin-top: 10px; font-size: 14.5px; line-height: 1.7;
  padding-left: 12px; border-left: 3px solid var(--seal); border-radius: 2px; color: var(--ink);
}
.scene-cta { margin-top: 52px; text-align: center; }
.scene-cta p { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.scene-cta .btn-seal { display: inline-block; }
.scene-cta-note { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-faint); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; padding-top: 56px; padding-bottom: 64px; }
  .card-stage { min-height: 460px; }
  .compare { grid-template-columns: 1fr; }
  .compare-col + .compare-col { border-left: 0; border-top: 1.5px solid var(--ink); }
  .feature-row { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .feature-row.flip .f-copy { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .plan-sketch { grid-template-columns: 1fr; }
  .beta-plate { grid-template-columns: 1fr; text-align: left; justify-items: start; }
  .site-nav { display: none; }
  .callout.c1 { right: 0; }
  .site-head .wrap { gap: 14px; justify-content: space-between; }
  .brand { font-size: 18px; }
  .brand-en { display: none; }
  .head-cta { padding: 9px 14px; }
  .scene-wall { grid-template-columns: 1fr; gap: 22px; }
}
