/* =========================================================
   电子发票管理系统 · 产品官网样式
   设计基调：企业级 B2B，深海军蓝 + 单一品牌蓝
   克制用色 · 发丝分隔 · 无渐变文字 · 无光晕装饰
   ========================================================= */

/* ---------- 设计令牌 ---------- */
:root {
  --nav-h: 72px;
  --max: 1240px;

  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #64748B;
  --line: #E3E8EF;
  --line-2: #EFF3F8;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FB;
  --bg-soft-2: #ECF1F7;

  --brand: #1B4ED8;
  --brand-700: #153EAE;
  --brand-soft: #EDF3FE;
  --brand-line: #C9DAFA;

  --navy: #0A1729;
  --navy-2: #101F36;
  --navy-line: rgba(255, 255, 255, .11);

  --ok: #0B8A5E;
  --ok-soft: #E6F5EE;
  --warn: #9A5B00;
  --warn-soft: #FDF3E3;
  --info-soft: #EDF3FE;

  --r: 8px;
  --r-lg: 12px;
  --sh-1: 0 1px 2px rgba(15, 23, 42, .05);
  --sh-2: 0 4px 14px -3px rgba(15, 23, 42, .09), 0 1px 3px rgba(15, 23, 42, .04);
  --sh-3: 0 28px 56px -16px rgba(10, 23, 41, .34);
  --ease: cubic-bezier(.22, .68, .36, 1);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
  background: var(--bg);
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  /* 防止个别机型（系统字体放大 / 老内核）把页面撑宽：
     老内核走 hidden 兜底，支持 clip 的新内核用 clip（不影响 sticky） */
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* 新内核：clip 不会把 html 变成滚动容器，sticky 导航更稳 */
@supports (overflow-x: clip) {
  html { overflow-x: clip; }
  body { overflow-x: clip; }
}

h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.012em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 108px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: 80px 0; }

/* ---------- 通用文字 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--brand);
  flex-shrink: 0;
}

.h2 { font-size: clamp(26px, 2.9vw, 36px); margin-bottom: 18px; }
.h3 { font-size: 20px; margin-bottom: 12px; }

.lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 700px;
}

.center { text-align: center; }
.center .lead { margin: 0 auto; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::before { display: none; }
.center .eyebrow::after {
  content: ""; width: 28px; height: 2px; background: var(--brand); margin-left: 4px;
}

.sec-head { max-width: 780px; margin-bottom: 60px; }
.sec-head.center { margin-left: auto; margin-right: auto; }

/* 强调词：纯色，不用渐变 */
.accent { color: var(--brand); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
    border-color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-700); box-shadow: 0 6px 18px -4px rgba(27, 78, 216, .45); }

.btn--ghost {
  background: #fff; color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--light {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .26);
}
.btn--light:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .5); }

.btn--sm { height: 38px; padding: 0 18px; font-size: 14px; }

/* ---------- 顶部进度条 ---------- */
.progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--brand);
  z-index: 1200;
  transition: width .1s linear;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 40px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 7px;
  background: var(--brand);
  display: grid; place-items: center;
}
.brand__name { font-size: 17.5px; font-weight: 700; color: var(--ink); }
.brand__sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .2em;
  line-height: 1;
  margin-top: 4px;
}

.nav__menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 5px;
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--brand); }
.nav__link.is-active { color: var(--brand); font-weight: 600; }
.nav__link.is-active::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2px; background: var(--brand);
}

.nav__cta { display: flex; align-items: center; gap: 10px; margin-left: 12px; }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer; padding: 0; margin-left: auto;
}
.nav__burger span {
  display: block; width: 17px; height: 1.5px; margin: 4px auto;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-2);
  padding: 8px 32px 28px;
  display: none;
  z-index: 999;
}
.drawer.is-open { display: block; }
.drawer a {
  display: block; padding: 14px 0;
  font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.drawer .btn { width: 100%; margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 88px 0 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0A1729 0%, #0E1E33 100%);
}
.hero__in {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 72px;
  align-items: center;
  padding-bottom: 92px;
}
.hero__text, .hero__media { min-width: 0; }
.hero h1 {
  color: #fff;
  font-size: clamp(32px, 3.9vw, 50px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.26;
  margin-bottom: 24px;
}
.hero h1 .accent { color: #7EA6FF; }
.hero__desc {
  font-size: 17px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .72);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero__tags {
  display: flex; flex-wrap: wrap;
  gap: 0 28px;
  padding-top: 26px;
  border-top: 1px solid var(--navy-line);
  max-width: 560px;
}
.tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; color: rgba(255, 255, 255, .78);
  padding: 6px 0;
}
.tag svg { color: #5C8CF5; flex-shrink: 0; }

/* Hero 数据条 */
.stats {
  position: relative; z-index: 3;
  border-top: 1px solid var(--navy-line);
  background: rgba(255, 255, 255, .03);
}
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 30px 16px;
  border-right: 1px solid var(--navy-line);
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat__num .unit { font-size: .55em; margin-left: 3px; color: #7EA6FF; font-weight: 500; }
.stat__label { font-size: 13.5px; color: rgba(255, 255, 255, .55); margin-top: 8px; }

/* ---------- 应用界面模拟 ---------- */
.mock {
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.mock__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: #F4F7FB;
  border-bottom: 1px solid var(--line);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #D5DDE8; }
.dot--r { background: #F0655A; }
.dot--y { background: #E9B13C; }
.dot--g { background: #4CB877; }
.mock__title {
  margin-left: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-3);
  letter-spacing: .02em;
}
.mock__body { padding: 0; overflow-x: auto; }

/* 表格化发票列表 */
.mock-tbl { width: 100%; max-width: 100%; border-collapse: collapse; }
.mock-tbl th {
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--ink-3); text-align: left;
  padding: 10px 16px;
  background: #FAFCFE;
  border-bottom: 1px solid var(--line);
}
.mock-tbl td {
  padding: 12px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.mock-tbl tr:last-child td { border-bottom: 0; }
.mock-tbl .num {
  text-align: right; font-variant-numeric: tabular-nums;
  font-weight: 600; color: var(--ink);
  white-space: nowrap;
}
.mock-tbl .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; color: var(--ink); letter-spacing: -.01em;
}
.mock-tbl .sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 4px;
  white-space: nowrap;
  line-height: 1.7;
}
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--info { background: var(--info-soft); color: var(--brand); }
.badge--gray { background: #F1F5F9; color: #64748B; }

/* 采集进度条 */
.pbar {
  margin: 16px;
  padding: 14px 16px;
  border-radius: 6px;
  background: #F4F8FE;
  border: 1px solid var(--brand-line);
}
.pbar__top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; font-weight: 600; color: var(--brand-700); margin-bottom: 9px;
}
.pbar__track { height: 5px; border-radius: 99px; background: #DCE7FB; overflow: hidden; }
.pbar__fill {
  height: 100%; width: 0;
  background: var(--brand);
  transition: width 1.6s var(--ease);
}

/* 采集结果条（替代原来的漂浮卡片） */
.resultbar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: #FAFCFE;
}
.resultbar__cell { padding: 14px 16px; border-right: 1px solid var(--line); }
.resultbar__cell:last-child { border-right: 0; }
.resultbar__k { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--ink-3); }
.resultbar__v { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 3px; font-variant-numeric: tabular-nums; }
.resultbar__v small { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }

/* 归档目录树 */
.mock__label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--ink-3);
  padding: 12px 18px;
  background: #FAFCFE;
  border-bottom: 1px solid var(--line);
}
.tree {
  padding: 14px 18px;
  font-size: 13px;
  line-height: 2.15;
}
.tree__row { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.tree__row svg { flex-shrink: 0; }
.tree__row b { color: var(--ink); font-weight: 600; }
.tree__d1 { padding-left: 0; }
.tree__d2 { padding-left: 22px; }
.tree__d3 { padding-left: 44px; }
.tree__d4 { padding-left: 66px; }
.tree__d5 { padding-left: 88px; }
.tree__ico--dir { color: #7C8CA5; }
.tree__ico--file { color: #A9B6C8; }

/* ---------- 票种带（静态，非滚动） ---------- */
.ticker {
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 34px 0;
}
.ticker__label {
  text-align: center;
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.ticker__track {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; width: auto;
  animation: none;
}
.ticker__item {
  display: inline-flex; align-items: center;
  padding: 6px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 13.5px; color: var(--ink-2);
  white-space: nowrap;
}
.ticker__item:hover { border-color: var(--brand-line); color: var(--brand); }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: #fff;
  padding: 34px 30px;
  display: flex; flex-direction: column;
  transition: background .3s var(--ease);
}
.card:hover { background: #FCFDFF; }
.card__ic {
  width: 40px; height: 40px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 20px;
}
.card--cyan .card__ic { background: var(--ok-soft); color: var(--ok); }
.card--violet .card__ic { background: #F1EDFD; color: #5B3FCC; }
.card--amber .card__ic { background: var(--warn-soft); color: var(--warn); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; line-height: 1.8; }

.card__list { list-style: none; margin: 16px 0 0; padding: 0; }
.card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  margin-bottom: 9px;
}
.card__list li::before {
  content: "";
  position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px;
  background: var(--brand);
  opacity: .4;
}

/* ---------- 分栏 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split__text, .split__media { min-width: 0; }
.split--reverse .split__media { order: 2; }

.check-list { list-style: none; padding: 0; margin: 28px 0 0; }
.check-list li {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 15px;
  line-height: 1.75;
}
.check-list li:last-child { border-bottom: 0; }
.check-list__ic {
  width: 20px; height: 20px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  margin-top: 5px;
}
.check-list b { color: var(--ink); font-weight: 600; }

/* ---------- 步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 2px solid var(--ink);
}
.step {
  position: relative;
  padding: 26px 14px 0;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; }
.step__no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: 12px;
}
.step h4 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13.5px; line-height: 1.7; color: var(--ink-3); }

/* ---------- 深色区 ---------- */
.dark {
  background: var(--navy);
  color: #fff;
  position: relative;
}
.dark .h2, .dark h3, .dark h4 { color: #fff; }
.dark .lead, .dark p { color: rgba(255, 255, 255, .68); }
.dark .eyebrow { color: #7EA6FF; }
.dark .eyebrow::before { background: #7EA6FF; }
.dark > .container { position: relative; z-index: 2; }

.dark .grid { background: var(--navy-line); border-color: var(--navy-line); }
.panel {
  background: var(--navy);
  padding: 32px 28px;
  transition: background .3s var(--ease);
}
.panel:hover { background: var(--navy-2); }
.panel__ic {
  width: 38px; height: 38px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: rgba(126, 166, 255, .13);
  color: #7EA6FF;
  margin-bottom: 18px;
}
.panel h4 { font-size: 16.5px; margin-bottom: 9px; }
.panel p { font-size: 14.5px; line-height: 1.8; }

/* ---------- 凭证模拟 ---------- */
.voucher {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: var(--sh-2);
  -webkit-overflow-scrolling: touch;
}
.voucher__head {
  padding: 14px 20px;
  background: #F4F7FB;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 4px 16px;
}
.voucher__head b { font-size: 14.5px; color: var(--ink); }
.voucher__head span { font-size: 12.5px; color: var(--ink-3); }
.voucher__table { width: 100%; max-width: 100%; border-collapse: collapse; font-size: 13.5px; }
.voucher__table th {
  background: #FAFCFE;
  color: var(--ink-3);
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-align: left;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}
.voucher__table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-2);
}
.voucher__table tr:last-child td { border-bottom: 0; }
.voucher__table .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; white-space: nowrap; }
/* 摘要列保底可读宽度；极窄或系统字体放大时由凭证卡横向滚动承接 */
.voucher__table td:first-child { min-width: 7em; }
.voucher__table .sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.voucher__foot {
  padding: 14px 20px;
  background: #FAFCFE;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 6px 16px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}

/* ---------- 角色 ---------- */
.role {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 34px 30px;
  height: 100%;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.role:hover { box-shadow: var(--sh-2); border-color: var(--brand-line); }
.role__top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.role__ic {
  width: 42px; height: 42px; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  flex-shrink: 0;
}
.role__ic--teal { background: var(--ok); }
.role__ic--indigo { background: #5B3FCC; }
.role h3 { font-size: 18px; }
.role__sub { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.role ul { list-style: none; padding: 0; margin: 0; }
.role ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 9px;
}
.role ul li::before {
  content: "";
  position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px;
  background: var(--brand);
  opacity: .35;
}

/* ---------- 架构层 ---------- */
.arch { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.arch__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: start;
  background: #fff;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease);
}
.arch__row:last-child { border-bottom: 0; }
.arch__row:hover { background: #FAFCFE; }
.arch__label {
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--brand);
  padding-top: 4px;
}
.arch__items { display: flex; flex-wrap: wrap; gap: 8px; }
.arch__items span {
  font-size: 13.5px; color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  padding: 5px 12px;
  border-radius: 4px;
}

/* ---------- 信任背书 ---------- */
.trust {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--navy-line);
  border: 1px solid var(--navy-line);
  border-radius: var(--r);
  overflow: hidden;
}
.trust__item { background: var(--navy); padding: 30px 28px; }
.trust__ic {
  width: 36px; height: 36px; border-radius: 7px;
  display: grid; place-items: center;
  background: rgba(126, 166, 255, .13);
  color: #7EA6FF;
  margin-bottom: 16px;
}
.trust__item b { display: block; color: #fff; font-size: 16px; margin-bottom: 8px; }
.trust__item span { font-size: 14px; line-height: 1.8; color: rgba(255, 255, 255, .62); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 900px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 4px;
  background: none; border: 0;
  font-size: 16.5px; font-weight: 600; color: var(--ink);
  text-align: left; cursor: pointer;
}
.faq__q:hover { color: var(--brand); }
.faq__ico {
  width: 24px; height: 24px; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--ink-3);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.faq__item.is-open .faq__ico { transform: rotate(45deg); color: var(--brand); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a-in { padding: 0 4px 26px; font-size: 15px; line-height: 1.85; }

/* ---------- CTA ---------- */
.cta {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 64px 60px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.cta h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.cta p { color: rgba(255, 255, 255, .7); font-size: 16.5px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--ghost { border-color: rgba(255, 255, 255, .3); color: #fff; background: transparent; }
.cta .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.cta .btn--primary { background: #fff; color: var(--navy); }
.cta .btn--primary:hover { background: #E9EEF6; box-shadow: none; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .6);
  padding: 72px 0 0;
  font-size: 14.5px;
  border-top: 1px solid var(--navy-line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr 1fr;
  gap: 36px;
  padding-bottom: 52px;
}
.footer h4 {
  color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; margin-bottom: 20px;
}
.footer a { color: rgba(255, 255, 255, .6); transition: color .2s var(--ease); }
.footer a:hover { color: #7EA6FF; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 11px; }
.footer__brand .brand__name { color: #fff; }
.footer__desc { margin-top: 18px; line-height: 1.85; max-width: 330px; }
.footer__bar {
  border-top: 1px solid var(--navy-line);
  padding: 24px 0;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

.footer__contact { list-style: none; padding: 0; margin: 0; }
.footer__contact li {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 13px;
  font-size: 13.5px;
}
.footer__contact li svg { flex-shrink: 0; opacity: .55; }
.footer__contact b { color: #fff; font-weight: 600; }

/* ---------- 功能页 ---------- */
.docs { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.docs__nav {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  border-left: 2px solid var(--line-2);
  padding-left: 0;
}
.docs__nav b {
  display: block;
  font-size: 12px; letter-spacing: .14em; color: var(--ink-3);
  padding: 0 0 14px 16px;
}
.docs__nav a {
  display: block;
  padding: 8px 16px;
  font-size: 14.5px;
  color: var(--ink-2);
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: all .2s var(--ease);
}
.docs__nav a:hover { color: var(--brand); }
.docs__nav a.is-active { color: var(--brand); font-weight: 600; border-left-color: var(--brand); }

.doc-block {
  scroll-margin-top: calc(var(--nav-h) + 24px);
  padding-bottom: 60px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.doc-block:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-block__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.doc-block__no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--brand);
  padding-top: 6px;
  flex-shrink: 0;
}
.doc-block h3 { font-size: 24px; margin-bottom: 10px; }
.doc-block > p { font-size: 16px; line-height: 1.9; margin-bottom: 26px; }

.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mini { background: #fff; padding: 18px 20px; }
.mini b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 5px; }
.mini span { font-size: 13.5px; line-height: 1.75; }

.note {
  display: flex; gap: 14px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
  margin-top: 26px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #1E3E8F;
}
.note b { color: #14306E; }

/* ---------- 内页头部 ---------- */
.pagehead {
  background: var(--navy);
  padding: 72px 0 80px;
}
.pagehead h1 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 16px; }
.pagehead p { color: rgba(255, 255, 255, .7); font-size: 17px; max-width: 700px; line-height: 1.85; }

.crumb {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: rgba(255, 255, 255, .5);
  margin-bottom: 20px;
}
.crumb a:hover { color: #7EA6FF; }

/* ---------- 联系卡片 ---------- */
.contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.contact__card { background: #fff; padding: 30px 26px; text-align: left; }
.contact__ic {
  width: 38px; height: 38px; margin-bottom: 18px;
  border-radius: 7px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.contact__card > b {
  display: block; color: var(--ink-3); font-size: 12.5px;
  font-weight: 600; letter-spacing: .1em; margin-bottom: 10px;
}
.contact__val {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.contact__val--mail { font-size: 15px; word-break: break-all; font-weight: 600; }
a.contact__val:hover { color: var(--brand); }
.contact__copy {
  width: 26px; height: 26px; flex-shrink: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
  color: var(--ink-3);
  display: grid; place-items: center;
  cursor: pointer; padding: 0;
  transition: all .2s var(--ease);
}
.contact__copy:hover { border-color: var(--brand); color: var(--brand); }
.contact__copy.is-done { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.contact__hint { display: block; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

/* ---------- 浮动咨询条 ---------- */
.cw {
  position: fixed; right: 22px; top: 50%;
  transform: translateY(-50%);
  z-index: 950;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.cw__toggle {
  position: relative;
  width: 50px; height: 50px;
  border: 0; border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 26px -6px rgba(27, 78, 216, .5);
  transition: background .25s var(--ease);
}
.cw__toggle:hover { background: var(--brand-700); }
.cw__toggle svg { transition: transform .3s var(--ease), opacity .22s var(--ease); }
.cw.is-open .cw__toggle > svg:first-child { transform: scale(.8); opacity: 0; }
.cw__ico-close {
  position: absolute; opacity: 0;
  transform: rotate(-90deg) scale(.8);
  transition: transform .3s var(--ease), opacity .22s var(--ease);
}
.cw.is-open .cw__ico-close { opacity: 1; transform: none; }

.cw__panel {
  width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-2);
  padding: 6px;
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.cw.is-open .cw__panel { opacity: 1; transform: none; pointer-events: auto; }
.cw__head { padding: 12px 12px 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.cw__head b { display: block; color: var(--ink); font-size: 15px; }
.cw__head span { font-size: 12.5px; color: var(--ink-3); }
.cw__item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 6px;
  transition: background .2s var(--ease);
}
.cw__item:hover { background: var(--bg-soft); }
.cw__ic {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 6px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.cw__txt { min-width: 0; flex: 1; }
.cw__txt b { display: block; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cw__txt span { font-size: 11.5px; color: var(--ink-3); }

/* ---------- 动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

.totop {
  position: fixed; right: 26px; bottom: 26px;
  width: 42px; height: 42px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--sh-1);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: all .3s var(--ease);
  z-index: 900;
}
.totop.is-show { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { color: var(--brand); border-color: var(--brand-line); }

/* ---------- 响应式 ----------
   断点阶梯：1240 导航压缩 → 1120 双栏堆叠 → 1024 导航收进抽屉
             → 700 网格单列 → 640 手机 → 400 小屏手机
------------------------------------------------------------- */

/* ≤1240：桌面收窄，压缩导航间距，避免菜单换行 */
@media (max-width: 1240px) {
  .nav__in { gap: 22px; }
  .nav__link { padding: 8px 10px; }
  .nav__cta { gap: 8px; margin-left: 0; }
}

/* ≤1120：小桌面 / Pad 横屏 —— 双栏布局改为上下堆叠 */
@media (max-width: 1120px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  /* 奇数个卡片时最后一张占满整行，避免露出网格底色 */
  .g-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .contact { grid-template-columns: repeat(2, 1fr); }

  .hero { padding-top: 56px; }
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 52px; padding-bottom: 68px; }
  /* 界面模拟卡居中展示，避免右侧大片留白 */
  .hero__media { width: 100%; max-width: 640px; margin: 0 auto; }
  /* 堆叠后文案居中，与居中的卡片呼应，避免右侧大片空白 */
  .hero__text { text-align: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__btns { justify-content: center; }
  .hero__tags { justify-content: center; margin-left: auto; margin-right: auto; }

  .split { grid-template-columns: 1fr; gap: 44px; }
  /* 堆叠时先文字后配图，符合阅读顺序 */
  .split__text { order: 1; }
  .split__media { order: 2; }

  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3n) { border-right: 0; }
  .step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }

  /* 数据条 4 列在 Pad 上太挤，改为 2×2 */
  .stats__in { grid-template-columns: repeat(2, 1fr); }
  .stat { text-align: center; padding: 26px 20px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--navy-line); }

  .trust { grid-template-columns: repeat(2, 1fr); }

  .docs { grid-template-columns: 1fr; gap: 32px; }
  .docs__nav { position: static; }
  .docs__nav b { padding-bottom: 10px; }
  .docs__nav a {
    display: inline-block;
    padding: 6px 14px; margin: 0 8px 8px 0;
    border: 1px solid var(--line-2); border-radius: 99px;
  }
  .docs__nav a.is-active { border-color: var(--brand); }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ≤1024：Pad 竖屏 —— 导航收进抽屉菜单 */
@media (max-width: 1024px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: block; }

  .section { padding: 84px 0; }
  .section--tight { padding: 64px 0; }
  .container { padding: 0 24px; }
  .sec-head { margin-bottom: 44px; }

  .pagehead { padding: 56px 0 60px; }
  .cta { grid-template-columns: 1fr; padding: 48px 36px; }
  .arch__row { grid-template-columns: 1fr; gap: 10px; padding: 18px 20px; }

  .cw { right: 14px; }
  .cw__panel { width: 216px; }
}

/* ≤700：网格降为单列 */
@media (max-width: 700px) {
  .g-3, .g-2, .mini-grid { grid-template-columns: 1fr; }
  .g-3 > :last-child:nth-child(odd) { grid-column: auto; }
}

/* ≤640：手机 */
@media (max-width: 640px) {
  :root { --nav-h: 60px; }

  .section { padding: 60px 0; }
  .section--tight { padding: 48px 0; }
  .sec-head { margin-bottom: 34px; }
  .lead { font-size: 15.5px; }

  /* 导航与抽屉 */
  .brand__name { font-size: 16px; }
  .brand__sub { font-size: 9.5px; letter-spacing: .14em; }
  .drawer { padding: 4px 24px 24px; }

  /* Hero */
  .hero { padding-top: 40px; }
  .hero__in { gap: 40px; padding-bottom: 52px; }
  .hero h1 { font-size: clamp(27px, 7.6vw, 34px); margin-bottom: 16px; }
  .hero__desc { font-size: 15.5px; line-height: 1.85; margin-bottom: 28px; }
  .hero__btns { gap: 10px; margin-bottom: 30px; }
  .hero__btns .btn { width: 100%; }
  .hero__tags { gap: 2px 20px; padding-top: 20px; }

  /* Hero：手机恢复左对齐（Pad 堆叠态的居中不适用于窄屏） */
  .hero__text { text-align: left; }
  .hero__desc { margin-left: 0; margin-right: 0; }
  .hero__btns { justify-content: flex-start; }
  .hero__tags { justify-content: flex-start; margin-left: 0; margin-right: 0; }

  /* 数据条 */
  .stat { padding: 22px 14px; }
  .stat__label { font-size: 13px; }

  /* 票种带 */
  .ticker { padding: 26px 0; }
  .ticker__label { letter-spacing: .1em; margin-bottom: 14px; }
  .ticker__track { gap: 8px; }
  .ticker__item { padding: 5px 12px; font-size: 12.5px; }

  /* 系统界面模拟 */
  .mock__bar { padding: 10px 12px; }
  .mock__title { margin-left: 8px; font-size: 11.5px; }
  .mock-tbl th, .mock-tbl td { padding: 10px 10px; }
  .mock-tbl td { font-size: 13px; }
  .mock-tbl .num { font-size: 13px; }
  .mock-tbl .code { font-size: 11.5px; word-break: break-all; }
  .mock-tbl .sub { font-size: 11px; }
  .pbar { margin: 10px; padding: 12px 14px; }

  /* 采集结果条：改为「标签在左 / 数值在右」的紧凑行，避免单列堆叠过高 */
  .resultbar { grid-template-columns: 1fr; }
  .resultbar__cell {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 10px 14px;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .resultbar__cell:last-child { border-bottom: 0; }
  .resultbar__v { margin-top: 0; font-size: 14px; }

  /* 卡片与面板 */
  .card { padding: 26px 22px; }
  .panel { padding: 26px 22px; }
  .role { padding: 26px 22px; }
  .trust { grid-template-columns: 1fr; }
  .trust__item { padding: 24px 22px; }
  .note { padding: 15px 16px; font-size: 14px; }
  .check-list li { font-size: 14.5px; }

  /* 步骤：两列 */
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3n) { border-right: 1px solid var(--line); }
  .step:nth-child(2n) { border-right: 0; }
  .step { padding: 20px 12px 0; border-bottom: 1px solid var(--line); }
  .step:nth-last-child(-n+2) { border-bottom: 0; }

  /* 凭证 */
  .voucher__table th, .voucher__table td { padding: 10px 12px; }
  .voucher__table td:first-child { min-width: 6em; }

  /* FAQ */
  .faq__q { padding: 18px 2px; font-size: 15.5px; gap: 14px; }
  .faq__a-in { padding: 0 2px 20px; font-size: 14.5px; }

  /* CTA 与页脚 */
  .cta { padding: 40px 24px; }
  .cta__btns { width: 100%; }
  .cta__btns .btn { flex: 1 1 auto; }

  .footer { padding-top: 56px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }

  .contact { grid-template-columns: 1fr; }

  .cw { display: none; }
}

/* ≤520：手机 —— 发票表格改为卡片式堆叠，物理上不可能超宽（不受字体/缩放影响） */
@media (max-width: 520px) {
  .mock-tbl thead { display: none; }
  .mock-tbl, .mock-tbl tbody { display: block; }
  .mock-tbl tr {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 8px 12px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line-2);
  }
  .mock-tbl tr:last-child { border-bottom: 0; }
  .mock-tbl td {
    display: block;
    padding: 0;
    border-bottom: 0;
  }
  .mock-tbl td:first-child { flex: 1 1 100%; }
  .mock-tbl td:nth-child(3) { margin-left: auto; }
  /* 金额前补回表头语义 */
  .mock-tbl td:nth-child(3)::before {
    content: "价税合计";
    font-size: 11px; font-weight: 600; color: var(--ink-3);
    margin-right: 8px;
  }
}

/* ≤400：小屏手机 */
@media (max-width: 400px) {
  .container { padding: 0 20px; }
  .hero h1 { font-size: 26px; }
  .btn { padding: 0 20px; }

  /* 极小屏凭证卡再收紧一档，保证不依赖横向滚动 */
  .voucher__table { font-size: 12.5px; }
  .voucher__table th, .voucher__table td { padding: 8px 10px; }
  .voucher__table td:first-child { min-width: 5em; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
