/* ===========================================================
   门店商家中台 · 官网样式
   设计基调：浅色清爽 + 科技感（细网格纹理 / 青蓝渐变 / 玻璃卡片）
   色彩：墨蓝文字 + 莫兰迪青蓝主色，克制留白、细边框、极轻阴影
   =========================================================== */

:root {
  --ink:        #16222e;
  --ink-2:      #3d5265;
  --ink-3:      #6b8199;
  --line:       #e3eaf0;
  --line-2:     #eef3f7;
  --bg:         #ffffff;
  --bg-soft:    #f6f9fb;
  --bg-tint:    #eef5f8;

  --brand:      #2f7d8c;
  --brand-2:    #4c8fd6;
  --brand-soft: #dceef2;
  --accent:     #7fb3c8;

  --ok:         #3f9e7a;
  --warn:       #c98a3e;

  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 1px 2px rgba(22,34,46,.04), 0 8px 24px -12px rgba(22,34,46,.12);
  --shadow-lg:  0 2px 4px rgba(22,34,46,.04), 0 24px 48px -24px rgba(22,34,46,.18);

  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

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

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  height: 64px; display: flex; align-items: center; gap: 36px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .3px; font-size: 15px; white-space: nowrap; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  position: relative; flex: none;
  box-shadow: 0 4px 12px -4px rgba(47,125,140,.5);
}
.logo-mark::after {
  content: ""; position: absolute; inset: 7px 7px auto 7px; height: 12px;
  border: 2px solid rgba(255,255,255,.92); border-radius: 2px;
}
.nav-links { display: flex; gap: 26px; font-size: 13.5px; color: var(--ink-2); }
.nav-links a { padding: 4px 0; border-bottom: 1.5px solid transparent; transition: .18s; }
.nav-links a:hover { color: var(--brand); border-bottom-color: var(--brand-soft); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; border: 1px solid transparent;
  transition: .2s; cursor: pointer; white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 6px 18px -8px rgba(47,125,140,.65);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(47,125,140,.75); }
.btn-ghost { color: var(--ink-2); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 84px;
  background:
    radial-gradient(880px 420px at 78% -8%, rgba(76,143,214,.14), transparent 62%),
    radial-gradient(720px 380px at 6% 8%, rgba(47,125,140,.10), transparent 60%),
    #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(22,34,46,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22,34,46,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(720px 460px at 50% 22%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(720px 460px at 50% 22%, #000 30%, transparent 78%);
  opacity: .75;
}
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  border: 1px solid rgba(47,125,140,.16);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(47,125,140,.12); }
.hero h1 {
  font-size: clamp(32px, 3.8vw, 48px); line-height: 1.26;
  margin: 0 0 20px; letter-spacing: -.01em; font-weight: 600;
}
.hero h1 em {
  font-style: normal; white-space: nowrap;
  background: linear-gradient(120deg, var(--brand) 10%, var(--brand-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 16.5px; color: var(--ink-2); max-width: 660px; margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 12.5px; color: var(--ink-3); margin-top: 18px; }

/* Hero 右侧示意卡（纯 CSS，无图片依赖） */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.demo-card {
  background: rgba(255,255,255,.86); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px; box-shadow: var(--shadow-lg);
  position: relative;
}
.demo-card .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.demo-card .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.demo-card .bar i:nth-child(1) { background: #e8b4b8; }
.demo-card .bar i:nth-child(2) { background: #e8d3a8; }
.demo-card .bar i:nth-child(3) { background: #b7d8c2; }
.kpi-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 12px; }
.kpi {
  background: var(--bg-soft); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 11px 12px;
}
.kpi .k { font-size: 10.5px; color: var(--ink-3); letter-spacing: .06em; }
.kpi .v { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); letter-spacing: -.01em; }
.kpi .v small { font-size: 11px; color: var(--ink-3); font-weight: 400; margin-left: 2px; }
.spark {
  height: 96px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(76,143,214,.10), rgba(76,143,214,0) 78%),
    repeating-linear-gradient(to right, var(--line-2) 0 1px, transparent 1px 12.5%);
  position: relative; overflow: hidden;
}
.spark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.demo-tags span {
  font-size: 11px; color: var(--ink-2); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}

/* ---------- 通用区块 ---------- */
section { padding: 88px 0; }
.sec-head { max-width: 720px; margin-bottom: 46px; }
.sec-head .tag { font-size: 12px; letter-spacing: .16em; color: var(--brand); text-transform: uppercase; font-weight: 500; }
.sec-head h2 { font-size: clamp(26px, 3vw, 34px); margin: 12px 0 14px; font-weight: 600; letter-spacing: -.01em; }
.sec-head p { color: var(--ink-2); font-size: 15px; margin: 0; }

.soft { background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }

/* ---------- 能力卡 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: .22s; position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  opacity: 0; transition: .22s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d7e3ec; }
.card:hover::after { opacity: 1; }
.card .ico {
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 14px;
  background: var(--brand-soft); border: 1px solid rgba(47,125,140,.14);
  display: grid; place-items: center; color: var(--brand);
  font-family: var(--mono); font-size: 14px; font-weight: 600;
}
.card h3 { font-size: 16px; margin: 0 0 8px; font-weight: 600; }
.card p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.75; }

/* ---------- 开通流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 18px; position: relative;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: 12px; color: var(--brand);
  background: var(--brand-soft); border-radius: 6px; padding: 2px 7px; display: inline-block; margin-bottom: 10px;
}
.step b { display: block; font-size: 14.5px; margin-bottom: 6px; font-weight: 600; }
.step span { font-size: 13px; color: var(--ink-2); }
.step .who {
  display: inline-block; margin-top: 10px; font-size: 11px; letter-spacing: .04em;
  color: var(--ink-3); border: 1px dashed var(--line); border-radius: 999px; padding: 2px 9px;
}

/* ---------- 手册入口 ---------- */
.manuals { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.manual-card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 22px;
  transition: .22s; position: relative;
}
.manual-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.manual-card .kicker { font-family: var(--mono); font-size: 11.5px; color: var(--brand); letter-spacing: .08em; }
.manual-card h3 { font-size: 19px; margin: 10px 0 10px; font-weight: 600; }
.manual-card p { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-2); }
.manual-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.manual-card .meta span { font-size: 11px; color: var(--ink-3); background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px; }
.manual-card .go { font-size: 13px; color: var(--brand); font-weight: 500; }

/* ---------- 行业条 ---------- */
.industries { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 13.5px; color: var(--ink-2);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- CTA ---------- */
.cta {
  border-radius: 20px; padding: 52px 48px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1d4e5a 0%, #2f7d8c 46%, #3f7fb8 100%);
  color: #fff;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,.08) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 40px 40px; opacity: .6;
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: 26px; margin: 0 0 10px; font-weight: 600; }
.cta p { margin: 0; color: rgba(255,255,255,.82); font-size: 14px; max-width: 560px; }
.cta .btn-primary { background: #fff; color: var(--brand); box-shadow: none; }
.cta .btn-primary:hover { background: #f4fbfc; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--line-2); padding: 38px 0; color: var(--ink-3); font-size: 12.5px; }
.foot-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 20px; }
.foot-links a:hover { color: var(--brand); }

/* ---------- 淡入动效 ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   手册页（docs）
   =========================================================== */
.doc-hero {
  padding: 62px 0 42px;
  background:
    radial-gradient(700px 300px at 82% -20%, rgba(76,143,214,.12), transparent 62%),
    radial-gradient(560px 280px at 0% 0%, rgba(47,125,140,.09), transparent 60%),
    #fff;
  border-bottom: 1px solid var(--line-2);
}
.doc-hero .kicker { font-family: var(--mono); font-size: 12px; color: var(--brand); letter-spacing: .1em; }
.doc-hero h1 { font-size: clamp(26px, 3.2vw, 38px); margin: 12px 0 14px; font-weight: 600; letter-spacing: -.01em; }
.doc-hero p { color: var(--ink-2); font-size: 14.5px; max-width: 780px; margin: 0; }
.doc-hero .legend { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.role-tag {
  font-size: 11.5px; border-radius: 999px; padding: 3px 11px; border: 1px solid;
  letter-spacing: .02em;
}
.role-admin { color: #2f7d8c; background: #eaf5f7; border-color: #cfe6ea; }
.role-wx    { color: #3f7b4a; background: #eef7f0; border-color: #d4e9d9; }
.role-pay   { color: #6b5a9e; background: #f2effa; border-color: #e0d9f0; }
.role-mer   { color: #a06a2c; background: #fbf3e8; border-color: #f0e0c9; }

.doc-body { display: grid; grid-template-columns: 236px 1fr; gap: 52px; padding: 48px 0 88px; align-items: start; }

.toc {
  position: sticky; top: 84px; font-size: 13px;
  border-left: 1px solid var(--line); padding-left: 2px;
  max-height: calc(100vh - 120px); overflow: auto;
}
.toc a {
  display: block; padding: 5px 0 5px 14px; color: var(--ink-3);
  border-left: 2px solid transparent; margin-left: -1.5px; transition: .16s;
}
.toc a:hover { color: var(--brand); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 500; }
.toc .lv3 { padding-left: 26px; font-size: 12.5px; }

.doc-main { max-width: 860px; min-width: 0; }
.doc-main h2 {
  font-size: 21px; margin: 52px 0 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line); font-weight: 600; letter-spacing: -.01em;
  scroll-margin-top: 84px;
}
.doc-main h2:first-child { margin-top: 0; }
.doc-main h3 { font-size: 16px; margin: 30px 0 10px; font-weight: 600; scroll-margin-top: 84px; }
.doc-main h4 { font-size: 14px; margin: 22px 0 8px; font-weight: 600; color: var(--ink-2); }
.doc-main p { font-size: 14px; color: var(--ink-2); }
.doc-main ul, .doc-main ol { font-size: 14px; color: var(--ink-2); padding-left: 22px; }
.doc-main li { margin: 5px 0; }
.doc-main li > code, .doc-main p > code {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--bg-tint); border: 1px solid #dbe8ee; border-radius: 5px;
  padding: 1px 6px; color: #245c68; word-break: break-all;
}
.doc-main pre {
  background: #1b2a33; color: #dbe9ef; border-radius: 10px;
  padding: 16px 18px; overflow: auto; font-size: 12.5px; line-height: 1.7;
  font-family: var(--mono); margin: 14px 0;
}
.doc-main pre code { background: none; border: none; color: inherit; padding: 0; }
.doc-main table {
  width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.doc-main th {
  text-align: left; background: var(--bg-soft); color: var(--ink);
  font-weight: 600; font-size: 12.5px; padding: 10px 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.doc-main td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: top; }
.doc-main tr:last-child td { border-bottom: none; }
.doc-main tbody tr:hover td { background: #fbfdfe; }
.doc-main blockquote {
  margin: 16px 0; padding: 12px 16px; background: #f4fafc;
  border-left: 3px solid var(--brand-soft); border-radius: 0 8px 8px 0;
  color: var(--ink-2); font-size: 13.5px;
}
.doc-main blockquote p { margin: 4px 0; }
.doc-main hr { border: none; border-top: 1px solid var(--line); margin: 38px 0; }
.doc-main strong { color: var(--ink); font-weight: 600; }
.doc-main .callout {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px;
  background: #fffaf1; border: 1px solid #f2e4c8; font-size: 13.5px; color: #7a5a24;
  margin: 16px 0;
}

/* 步骤条（手册用） */
.doc-steps { counter-reset: d; margin: 18px 0; }
.doc-steps > li {
  list-style: none; position: relative; padding: 0 0 18px 44px;
  font-size: 14px; color: var(--ink-2);
}
.doc-steps > li::before {
  counter-increment: d; content: counter(d);
  position: absolute; left: 0; top: 0; width: 26px; height: 26px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 600;
  font-family: var(--mono);
}
.doc-steps > li::after {
  content: ""; position: absolute; left: 12.5px; top: 30px; bottom: 4px;
  border-left: 1px dashed var(--line);
}
.doc-steps > li:last-child::after { display: none; }
.doc-steps b { color: var(--ink); }

/* 响应式 */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .demo-card { max-width: 520px; }
  .cards { grid-template-columns: repeat(2,1fr); }
  .doc-body { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .nav-links { display: none; }
  .nav-inner { gap: 14px; height: 58px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { height: 34px; padding: 0 13px; font-size: 12.5px; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding: 60px 0 54px; }
  section { padding: 62px 0; }
  .cards, .flow, .manuals { grid-template-columns: 1fr; }
  .cta { padding: 34px 24px; }
  .doc-main table { font-size: 12px; }
  .doc-main th, .doc-main td { padding: 8px 9px; }
}
