/* ============================================================
   ClarityERP marketing site
   Theme: light, white + blue. One accent, locked page-wide.
   Radius rule: buttons = pill, cards = 16px, inputs = 10px.
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/spacegrotesk-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f6f8fd;
  --bg-2: #eef2fa;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --line: #dbe4f2;
  --line-soft: #e8eef8;
  --text: #0f1b33;
  --muted: #5b6b8c;
  --accent: #1d4ed8;
  --accent-2: #2563eb;
  --cyan: #0891b2;
  --grad: linear-gradient(92deg, #2563eb 10%, #06a6ce 90%);
  --r-card: 16px;
  --r-input: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* z-scale: nav 50, mobile menu 60, toast 70 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(37, 99, 235, 0.18); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.grad-word {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- background field ---------- */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(52rem 30rem at 82% -6%, rgba(37, 99, 235, 0.09), transparent 60%),
    radial-gradient(40rem 26rem at -10% 34%, rgba(6, 166, 206, 0.06), transparent 60%),
    var(--bg);
}
.bg-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70rem 42rem at 60% -10%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70rem 42rem at 60% -10%, #000 30%, transparent 75%);
}
/* 细颗粒噪点：打破纯平面的数码感 */
.bg-field::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.055'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-in {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}
.logo-mark svg { width: 17px; height: 17px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 40px; height: 40px;
  color: var(--text);
  place-items: center;
}

/* ---------- buttons (pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 26px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--grad);
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(37, 99, 235, 0.38); }
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: #ffffff;
}
.btn-ghost:hover { border-color: rgba(37, 99, 235, 0.4); background: rgba(37, 99, 235, 0.05); }
.btn-sm { padding: 10px 20px; font-size: 14.5px; }
.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- hero ---------- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 5.2fr 6fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--grad);
  border-radius: 2px;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-shot {
  position: relative;
}
/* 屏幕截图后方的电光晕 */
.hero-shot::before {
  content: "";
  position: absolute;
  inset: -10% -8%;
  z-index: -1;
  background: radial-gradient(36rem 22rem at 55% 45%, rgba(37, 99, 235, 0.16), transparent 65%);
  filter: blur(12px);
}
/* 悬浮小卡：让 hero 有产品「活着」的感觉 */
.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(15, 42, 90, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: chipFloat 7s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.float-chip .fc-ic {
  width: 32px; height: 32px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.float-chip .fc-ic svg { width: 16px; height: 16px; }
.fc-money { top: 9%; right: -26px; }
.fc-money .fc-ic { background: rgba(8, 145, 178, 0.1); color: var(--cyan); }
.fc-due { bottom: 12%; left: -30px; animation-delay: 3.5s; }
.fc-due .fc-ic { background: rgba(37, 99, 235, 0.1); color: var(--accent-2); }
@keyframes chipFloat { 50% { transform: translateY(-9px); } }
/* 信任条：CTA 下的小勾点 */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--cyan); flex: none; }
.hero-shot .frame {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 30px 80px rgba(15, 42, 90, 0.18),
    0 10px 40px rgba(37, 99, 235, 0.1);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}
.hero-shot:hover .frame { transform: perspective(1600px) rotateY(-2deg) rotateX(0.5deg); }
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(37, 99, 235, 0.03);
}
.frame-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.16);
}
.frame-url {
  margin-left: 10px;
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(15, 27, 51, 0.05);
  border-radius: 6px;
  padding: 3px 12px;
  letter-spacing: 0.02em;
}

/* ---------- sections ---------- */
section { padding: 108px 0; position: relative; }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; }
.sec-head p { color: var(--muted); font-size: 17px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cell {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.cell:hover { border-color: rgba(37, 99, 235, 0.35); transform: translateY(-3px); box-shadow: 0 16px 44px rgba(15, 42, 90, 0.08); }
/* spotlight：光斑跟着鼠标走（site.js 写 --mx/--my）*/
.cell::before, .pain::before, .cmp-col::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, 0.07), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
}
.cell:hover::before, .pain:hover::before, .cmp-col:hover::before { opacity: 1; }
.cell > * { position: relative; z-index: 2; }
.cmp-col { position: relative; overflow: hidden; }
.cell h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.02em; }
.cell p { color: var(--muted); font-size: 15px; max-width: 44ch; }
.cell-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent-2);
  margin-bottom: 16px;
}
.cell-icon svg { width: 20px; height: 20px; }
.c-span3 { grid-column: span 3; }
.c-span2 { grid-column: span 2; }
.c-span4 { grid-column: span 4; }
.cell-shot {
  margin: 22px -28px -28px 8px;
  border-top-left-radius: 12px;
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  overflow: hidden;
  box-shadow: -14px -10px 40px rgba(15, 42, 90, 0.1);
  flex: 1;
  min-height: 170px;
}
.cell-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.cell-tint {
  background:
    radial-gradient(24rem 16rem at 90% 110%, rgba(37, 99, 235, 0.08), transparent 65%),
    var(--panel);
}
.cell-tint-cyan {
  background:
    radial-gradient(24rem 16rem at 10% 110%, rgba(6, 166, 206, 0.07), transparent 65%),
    var(--panel);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: #ffffff;
  white-space: nowrap;
}
.chip.hot {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--accent-2);
  background: rgba(37, 99, 235, 0.07);
}
.chip.mint {
  border-color: rgba(8, 145, 178, 0.35);
  color: var(--cyan);
  background: rgba(8, 145, 178, 0.06);
}
.chip-row svg { width: 14px; height: 14px; color: var(--muted); flex: none; opacity: 0.7; }

/* Sales 链条：QUO→INV→DO 迷你单据流（填满 span2 卡的中段）*/
.flow { margin-top: auto; padding-top: 24px; }
.flow-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(15, 42, 90, 0.05);
}
.flow-doc svg { width: 16px; height: 16px; flex: none; color: var(--accent-2); }
.flow-doc small { margin-left: auto; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.flow-doc.lit { border-color: rgba(37, 99, 235, 0.4); background: rgba(37, 99, 235, 0.06); }
.flow-link { width: 2px; height: 12px; margin-left: 22px; background: linear-gradient(rgba(37, 99, 235, 0.55), rgba(37, 99, 235, 0.12)); border-radius: 2px; }

/* WhatsApp 迷你对话（填满 span2 卡的中段）*/
.mini-chat { margin-top: auto; padding-top: 22px; display: grid; gap: 9px; }
.bubble {
  max-width: 88%;
  border-radius: 13px;
  padding: 9px 14px;
  font-size: 13px;
  line-height: 1.45;
}
.bubble.in { background: #ffffff; border: 1px solid var(--line); border-bottom-left-radius: 5px; box-shadow: 0 3px 10px rgba(15, 42, 90, 0.05); }
.bubble.out {
  background: rgba(8, 145, 178, 0.07);
  border: 1px solid rgba(8, 145, 178, 0.25);
  margin-left: auto;
  border-bottom-right-radius: 5px;
}
.bubble .b-meta { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.mini-chat .chip { justify-self: start; margin-top: 2px; font-size: 12px; padding: 5px 12px; }

/* ---------- e-invoice band ---------- */
.band {
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(46rem 24rem at 88% -20%, rgba(37, 99, 235, 0.09), transparent 60%),
    var(--panel-solid);
  padding: 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.band h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 16px; }
.band p { color: var(--muted); font-size: 16.5px; max-width: 52ch; }
.band-list { list-style: none; margin-top: 26px; display: grid; gap: 13px; }
.band-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.band-list svg { width: 20px; height: 20px; color: var(--cyan); flex: none; margin-top: 3px; }
.band-visual {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #ffffff;
  padding: 30px;
  text-align: center;
}
.band-visual .big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.band-visual .label { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* e-Invoice 迷你单据 mock（取代纯文字 UBL 2.1）*/
.einv-doc {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 20px 50px rgba(15, 42, 90, 0.13);
  padding: 24px 26px;
  font-size: 13.5px;
  transform: rotate(1.2deg);
  transition: transform 0.5s var(--ease);
}
.einv-doc:hover { transform: rotate(0deg); }
.ed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.ed-head b { font-family: 'Space Grotesk', sans-serif; font-size: 16px; letter-spacing: -0.01em; }
.ed-valid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.35);
  background: rgba(5, 150, 105, 0.07);
  border-radius: 6px;
  padding: 4px 10px;
}
.ed-valid svg { width: 12px; height: 12px; }
.ed-sub { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.ed-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  color: var(--muted);
}
.ed-row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ed-row .ok { color: var(--cyan); display: inline-flex; align-items: center; gap: 7px; }
.ed-row .ok svg { width: 14px; height: 14px; }
.ed-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.ed-foot .label { font-size: 11.5px; }
.ed-qr {
  width: 54px; height: 54px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    conic-gradient(from 0deg, rgba(15, 27, 51, 0.8) 25%, transparent 0 50%, rgba(15, 27, 51, 0.8) 0 75%, transparent 0) 0 0 / 14px 14px,
    rgba(15, 27, 51, 0.04);
  background-clip: padding-box;
  opacity: 0.75;
}

/* ---------- compare ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.cmp-col {
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--line);
}
.cmp-old { background: rgba(15, 27, 51, 0.025); }
.cmp-new {
  background:
    radial-gradient(30rem 20rem at 50% -18%, rgba(37, 99, 235, 0.08), transparent 62%),
    var(--panel-solid);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 24px 70px rgba(37, 99, 235, 0.12);
}
.cmp-col h3 {
  font-size: 22px;
  margin-bottom: 6px;
}
.cmp-col .cmp-tag { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.cmp-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 0;
}
.cmp-row + .cmp-row { border-top: 1px solid var(--line-soft); }
.cmp-row svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.cmp-old .cmp-row svg { color: #dc2626; }
.cmp-new .cmp-row svg { color: var(--cyan); }
.cmp-row b { display: block; font-weight: 600; font-size: 15.5px; }
.cmp-row span { color: var(--muted); font-size: 14.5px; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  position: relative;
  transition: border-color 0.3s;
}
.step:hover { border-top-color: rgba(37, 99, 235, 0.5); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  opacity: 0.9;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  padding: 24px 4px;
  font-size: 17.5px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}
.faq-q svg { width: 20px; height: 20px; color: var(--accent-2); flex: none; transition: transform 0.3s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  color: var(--muted);
  font-size: 15.5px;
}
.faq-a > div { padding: 0 4px 24px; max-width: 62ch; }

/* ---------- final cta ---------- */
.final {
  text-align: center;
  padding: 140px 0 130px;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(42rem 24rem at 50% 115%, rgba(37, 99, 235, 0.1), transparent 65%);
}
.final .wrap { position: relative; }
.final h2 { font-size: clamp(32px, 4.4vw, 54px); margin-bottom: 18px; }
.final p { color: var(--muted); font-size: 17.5px; margin-bottom: 36px; }
.final .cta-note { display: block; margin-top: 20px; font-size: 13.5px; color: var(--muted); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 44px 0;
  color: var(--muted);
  font-size: 14px;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14.5px; font-weight: 500; }
.foot-links a { transition: color 0.2s; }
.foot-links a:hover { color: var(--text); }
.foot-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- preview page ---------- */
.pv-hero {
  min-height: 88dvh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 60px;
}
.pv-hero-in { max-width: 980px; }
.pv-hero h1 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 24px; }
.pv-hero .hero-sub { font-size: 19px; max-width: 52ch; }
.pv-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.07);
  color: var(--accent-2);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.pains {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.pain {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
  padding: 28px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.pain:nth-child(1) { grid-column: span 7; }
.pain:nth-child(2) { grid-column: span 5; }
.pain:nth-child(3) { grid-column: span 5; }
.pain:nth-child(4) { grid-column: span 7; }
.pain-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.pain-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.pain:hover .pain-bg img { transform: scale(1.045); }
.pain-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 15, 30, 0.05) 0%,
    rgba(10, 15, 30, 0.38) 48%,
    rgba(10, 15, 30, 0.93) 88%);
}
.pain h3 {
  font-size: 21px;
  margin-bottom: 8px;
  color: #ffffff;   /* 压在深色海报图上，浅色主题下也要保持白字 */
  text-shadow: 0 2px 14px rgba(2, 8, 24, 0.8);
}
.pain p {
  color: #c4cce4;
  font-size: 15px;
  max-width: 52ch;
  text-shadow: 0 1px 10px rgba(2, 8, 24, 0.9);
}

.fix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.fix + .fix { margin-top: 88px; }
.fix.rev .fix-copy { order: 2; }
.fix h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.fix p { color: var(--muted); font-size: 16px; max-width: 50ch; }
.fix-shot {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 42, 90, 0.15), 0 8px 30px rgba(37, 99, 235, 0.08);
}
.fix-kicker {
  color: var(--cyan);
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 10px;
  display: block;
}

.agenda { max-width: 720px; margin: 0 auto; }
.agenda-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 26px;
  padding: 26px 18px;
  position: relative;
  border-radius: 14px;
  transition: background 0.3s;
}
.agenda-item:hover { background: rgba(37, 99, 235, 0.04); }
.agenda-item + .agenda-item { border-top: 1px solid var(--line-soft); }
.agenda-time {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--accent-2);
  border: 1px solid rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.07);
  border-radius: 8px;
  text-align: center;
  padding: 7px 0;
  height: fit-content;
  font-variant-numeric: tabular-nums;
}
/* hero 下的勾点（preview 页）*/
.pv-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.pv-points span { display: inline-flex; align-items: center; gap: 8px; }
.pv-points svg { width: 15px; height: 15px; color: var(--cyan); flex: none; }
.agenda-item h3 { font-size: 18.5px; margin-bottom: 6px; }
.agenda-item p { color: var(--muted); font-size: 15px; max-width: 56ch; }

/* ---------- form ---------- */
.reg {
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 22px;
  background:
    radial-gradient(40rem 22rem at 50% -22%, rgba(37, 99, 235, 0.07), transparent 60%),
    var(--panel-solid);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 30px 80px rgba(15, 42, 90, 0.12);
  padding: 56px;
  max-width: 760px;
  margin: 0 auto;
}
.reg h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.reg > p { color: var(--muted); margin-bottom: 34px; font-size: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
  padding: 13px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(91, 107, 140, 0.55); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.field .err { color: #dc2626; font-size: 13px; display: none; }
.field.invalid input { border-color: rgba(220, 38, 38, 0.55); }
.field.invalid .err { display: block; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.form-note { color: var(--muted); font-size: 13.5px; }
.reg-success { text-align: center; padding: 30px 10px; display: none; }
.reg-success .tick {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(8, 145, 178, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.4);
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  color: var(--cyan);
}
.reg-success .tick svg { width: 30px; height: 30px; }
.reg-success h3 { font-size: 24px; margin-bottom: 10px; }
.reg-success p { color: var(--muted); font-size: 15.5px; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }

/* ---------- motion layer（滚动进场后的组件级动效；reduced-motion 全局兜底会关掉）---------- */
/* hero 渐变字慢速流光 */
.grad-word { background-size: 220% 100%; animation: gradShift 7s ease-in-out infinite alternate; }
@keyframes gradShift { to { background-position: 100% 0; } }

/* 产品截图：卡片 hover 时轻微放大上移，像在“翻开” */
.cell-shot img { transition: transform 0.6s var(--ease); }
.cell:hover .cell-shot img { transform: scale(1.025) translateY(-4px); }

/* Sales 单据流：进场后 QUO→INV→DO 依序弹出，连接线由上往下点亮 */
.rv.in .flow-doc { animation: flowPop 0.55s var(--ease) both; }
.rv.in .flow-doc:nth-of-type(1) { animation-delay: 0.25s; }
.rv.in .flow-doc:nth-of-type(3) { animation-delay: 0.6s; }
.rv.in .flow-doc:nth-of-type(5) { animation-delay: 0.95s; }
.flow-doc { opacity: 0; }
.rv:not(.in) .flow-doc { animation: none; }
@keyframes flowPop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.rv.in .flow-link { animation: linkGrow 0.4s var(--ease) both; transform-origin: top; }
.rv.in .flow-link:nth-of-type(2) { animation-delay: 0.5s; }
.rv.in .flow-link:nth-of-type(4) { animation-delay: 0.85s; }
@keyframes linkGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* WhatsApp 迷你对话：像真的在聊，一句一句冒出来 */
.mini-chat .bubble, .mini-chat .chip { opacity: 0; }
.rv.in .mini-chat .bubble, .rv.in .mini-chat .chip { animation: bubbleIn 0.5s var(--ease) both; }
.rv.in .mini-chat .bubble.in  { animation-delay: 0.3s; }
.rv.in .mini-chat .bubble.out { animation-delay: 0.85s; }
.rv.in .mini-chat .chip       { animation-delay: 1.4s; }
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* AI 卡 chips：进场后逐个弹出 */
.rv.in .chip-row .chip { animation: bubbleIn 0.45s var(--ease) both; }
.chip-row .chip { opacity: 0; }
.rv.in .chip-row .chip:nth-child(1) { animation-delay: 0.3s; }
.rv.in .chip-row .chip:nth-child(2) { animation-delay: 0.5s; }
.rv.in .chip-row .chip:nth-child(3) { animation-delay: 0.7s; }

/* e-Invoice 单据：VALIDATED 盖章 + 勾选行逐行确认 */
.ed-valid { opacity: 0; }
.rv.in .ed-valid { animation: stamp 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) 0.9s both; }
@keyframes stamp {
  from { opacity: 0; transform: scale(1.9) rotate(-8deg); }
  to   { opacity: 1; transform: none; }
}
.ed-row { opacity: 0; }
.rv.in .ed-row { animation: bubbleIn 0.4s var(--ease) both; }
/* ed-row 是 .einv-doc 里第 3–6 个 div（前面还有 ed-head/ed-sub） */
.rv.in .ed-row:nth-of-type(3) { animation-delay: 0.15s; }
.rv.in .ed-row:nth-of-type(4) { animation-delay: 0.3s; }
.rv.in .ed-row:nth-of-type(5) { animation-delay: 0.45s; }
.rv.in .ed-row:nth-of-type(6) { animation-delay: 0.6s; }

/* 主按钮流光扫过 */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }

/* ---------- mobile menu ---------- */
.m-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 22px;
  font-weight: 600;
}
.m-menu.open { display: flex; }
.m-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 42px; height: 42px;
  color: var(--text);
  display: grid;
  place-items: center;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .float-chip { display: none; }
  .einv-doc { transform: none; }
  .hero { min-height: 0; padding-top: 130px; }
  .hero-shot .frame { transform: none; }
  .band { grid-template-columns: 1fr; padding: 40px; }
  .c-span3, .c-span2, .c-span4 { grid-column: span 6; }
  .compare { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .fix { grid-template-columns: 1fr; gap: 30px; }
  .fix.rev .fix-copy { order: 0; }
  .pain:nth-child(n) { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta .btn-ghost:not(.nav-lang) { display: none; }
  .nav-cta .nav-lang { padding: 10px 16px; }
  .menu-btn { display: grid; }
  section { padding: 72px 0; }
  .reg { padding: 34px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .agenda-item { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-shot .frame { transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
