/* 云动 CPQ 官网 · 设计系统
   主题：light｜风格：工业精密 / 克制 / 数据优先 */

:root {
  --ink: #0a1628;
  --ink-2: #1b2c47;
  --text: #1f2d42;
  --muted: #5d6f8c;
  --faint: #8a9ab2;
  --line: #e3e9f2;
  --line-2: #eef2f8;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-deep: #eef3fa;
  --brand: #0b5fff;
  --brand-deep: #0038b8;
  --brand-wash: #eaf1ff;
  --accent: #ff7a1a;
  --accent-wash: #fff3e8;
  --ok: #0e9f6e;
  --ok-wash: #e7f7f0;
  --warn: #d98200;
  --warn-wash: #fdf3e2;
  --danger: #d0342c;
  --danger-wash: #fdedec;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, .05), 0 1px 3px rgba(10, 22, 40, .04);
  --shadow: 0 4px 12px rgba(10, 22, 40, .06), 0 1px 3px rgba(10, 22, 40, .05);
  --maxw: 1200px;
  --nav-h: 64px;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-deep); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(2.05rem, 4.1vw, 3.15rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.55rem, 2.5vw, 2.05rem); letter-spacing: -.02em; }
h3 { font-size: 1.14rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin: .3em 0; }
code, .mono { font-family: var(--mono); font-size: .88em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 8px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; font-size: 1.05rem; flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand) 0%, #2f8bff 55%, #00b8a9 100%);
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(11, 95, 255, .28);
}
.logo-sub { font-size: .62rem; font-weight: 700; color: #fff; letter-spacing: .03em; }
.nav-links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: .9rem; font-weight: 500; padding: 7px 12px; border-radius: 7px; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--bg-deep); }
.nav-links a.active { color: var(--brand); background: var(--brand-wash); font-weight: 600; }
.nav-cta { margin-left: 8px; display: inline-flex; align-items: center; background: var(--ink); color: #fff !important; font-size: .87rem; font-weight: 600; padding: 9px 16px !important; border-radius: 8px; white-space: nowrap; }
.nav-cta:hover { background: var(--brand-deep); color: #fff !important; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 34px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 3px auto; border-radius: 2px; }

/* ---------- 区块 ---------- */
.section { padding: 70px 0; }
.section-sm { padding: 46px 0; }
.section-tint { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-deep { background: var(--ink); color: #c9d6ea; }
.section-deep h2, .section-deep h3, .section-deep h4 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: .73rem; font-weight: 700; letter-spacing: .1em; color: var(--brand);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.eyebrow-warn { color: var(--warn); }
.eyebrow-warn::before { background: var(--warn); }

.lead { font-size: 1.05rem; color: var(--muted); max-width: 68ch; margin-bottom: 0; }
.section-head { margin-bottom: 38px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 9px;
  font-weight: 600; font-size: .92rem; border: 1px solid transparent; cursor: pointer;
  transition: all .16s ease; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 10px rgba(11, 95, 255, .26); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-wash); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brand-deep); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: 74px 0 62px;
  background: radial-gradient(1100px 460px at 78% -12%, #e8f1ff 0%, rgba(232,241,255,0) 62%),
              radial-gradient(760px 400px at 8% 4%, #eef6ff 0%, rgba(238,246,255,0) 60%), #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(900px 460px at 70% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(900px 460px at 70% 0%, #000 0%, transparent 72%);
}
.hero-in { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.hero h1 { margin-bottom: 16px; }
.hero .lead { font-size: 1.08rem; max-width: 56ch; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 5px 14px 5px 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .79rem; font-weight: 600; color: var(--muted); box-shadow: var(--shadow-sm);
}
.hero-badge b { background: var(--ok-wash); color: var(--ok); border-radius: 999px; padding: 2px 8px; font-size: .71rem; }

/* ---------- 指标条 ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.stat { background: #fff; padding: 20px; }
.stat-v { font-family: var(--mono); font-size: 1.65rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1.15; }
.stat-v small { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat-l { font-size: .79rem; color: var(--muted); margin-top: 4px; font-weight: 500; }
.stat-strip-wrap { max-width: 780px; }
.stat-note { margin-top: 10px; font-size: .74rem; color: var(--faint); max-width: 780px; }

/* ---------- 网格与卡片 ---------- */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.auto-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.auto-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm); transition: all .18s ease;
}
.card:hover { box-shadow: 0 6px 20px rgba(10,22,40,.09); border-color: #cddaee; transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.card p { color: var(--muted); font-size: .91rem; margin-bottom: 0; }
.card ul { color: var(--muted); font-size: .88rem; margin-bottom: 0; }

.ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-wash); color: var(--brand); margin-bottom: 13px;
  font-size: .78rem; font-weight: 700; font-family: var(--mono); letter-spacing: -.02em;
}
.ico-o { background: var(--accent-wash); color: var(--accent); }
.ico-g { background: var(--ok-wash); color: var(--ok); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .87rem; }
thead th {
  background: var(--bg-soft); text-align: left; font-weight: 650; color: var(--ink-2);
  padding: 11px 15px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: .81rem;
}
tbody td { padding: 10px 15px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfe; }
td.num, th.num { text-align: right; font-family: var(--mono); font-size: .83rem; white-space: nowrap; }
.table-foot { padding: 10px 15px; font-size: .77rem; color: var(--faint); background: var(--bg-soft); border-top: 1px solid var(--line); }

/* ---------- 标签 ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 2px 8px; font-size: .73rem; font-weight: 650; white-space: nowrap; }
.tag-b { background: var(--brand-wash); color: var(--brand-deep); }
.tag-o { background: var(--accent-wash); color: #b34f00; }
.tag-g { background: var(--ok-wash); color: #08714e; }
.tag-w { background: var(--warn-wash); color: #915200; }
.tag-r { background: var(--danger-wash); color: #9c1f19; }
.tag-n { background: var(--bg-deep); color: var(--muted); }

/* ---------- 提示框 ---------- */
.callout { border-radius: var(--radius); padding: 15px 18px; margin: 20px 0; border: 1px solid; font-size: .89rem; }
.callout strong { display: block; margin-bottom: 4px; font-size: .92rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { background: var(--warn-wash); border-color: #f2d9a8; color: #6b3d00; }
.callout-warn strong { color: #6b3d00; }
.callout-info { background: var(--brand-wash); border-color: #c5dbff; color: #12366f; }
.callout-info strong { color: #12366f; }
.callout-ok { background: var(--ok-wash); border-color: #b6e6d2; color: #065f42; }
.callout-ok strong { color: #065f42; }
.callout-danger { background: var(--danger-wash); border-color: #f3c4c1; color: #8d221c; }
.callout-danger strong { color: #8d221c; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); }
.step { position: relative; padding-top: 32px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0;
  font-family: var(--mono); font-size: .78rem; font-weight: 700; color: var(--brand);
  background: var(--brand-wash); border-radius: 7px; padding: 2px 9px;
}
.step h4 { margin-bottom: 5px; }
.step p { font-size: .87rem; color: var(--muted); margin-bottom: 0; }

/* ---------- 流程条 ---------- */
.flow { display: flex; align-items: stretch; flex-wrap: wrap; margin: 26px 0; }
.flow-node {
  flex: 1 1 120px; min-width: 112px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 10px; text-align: center; box-shadow: var(--shadow-sm);
}
.flow-node strong { display: block; font-size: .85rem; color: var(--ink); }
.flow-node span { display: block; font-size: .72rem; color: var(--faint); margin-top: 2px; }
.flow-arrow { flex: 0 0 24px; display: grid; place-items: center; color: #b7c4d8; font-size: .95rem; }

/* ---------- 规格清单 ---------- */
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list .k { color: var(--muted); font-weight: 500; }
.spec-list .v { font-family: var(--mono); font-weight: 650; color: var(--ink); text-align: right; font-size: .84rem; }

/* ---------- 下载卡 ---------- */
.dl-card {
  display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); transition: all .18s ease; height: 100%;
}
.dl-card:hover { border-color: var(--brand); box-shadow: 0 6px 20px rgba(10,22,40,.09); transform: translateY(-2px); }
.dl-ico {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-family: var(--mono); font-size: .64rem; font-weight: 700;
}
.dl-ico-o { background: var(--accent); }
.dl-ico-b { background: var(--brand); }
.dl-card h3 { font-size: .98rem; margin-bottom: 4px; }
.dl-card p { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.dl-meta { font-size: .75rem; color: var(--faint); font-family: var(--mono); }

/* ---------- 深色度量 ---------- */
.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 20px; }
.metric { border-left: 2px solid var(--brand); padding-left: 15px; }
.metric-v { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.metric-l { font-size: .81rem; color: #9fb2ce; margin-top: 2px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: #93a6c2; padding: 52px 0 26px; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .08em; margin-bottom: 12px; text-transform: none; }
.footer a { color: #b8c8e0; font-size: .87rem; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 6px 0; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #1d2f4c; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .79rem; color: #7389a8; }

/* ---------- 页头 ---------- */
.page-head { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); border-bottom: 1px solid var(--line); padding: 42px 0 34px; }
.crumb { font-size: .78rem; color: var(--faint); margin-bottom: 10px; }
.crumb a { color: var(--muted); }
.crumb span { margin: 0 6px; }

/* ---------- 文档侧栏 ---------- */
.doc-layout { display: grid; grid-template-columns: 208px 1fr; gap: 42px; align-items: start; }
.doc-nav { position: sticky; top: calc(var(--nav-h) + 18px); }
.doc-nav h4 { font-size: .72rem; letter-spacing: .09em; color: var(--faint); margin-bottom: 8px; text-transform: none; }
.doc-nav a { display: block; padding: 6px 11px; border-radius: 7px; font-size: .86rem; color: var(--muted); border-left: 2px solid transparent; margin-bottom: 1px; }
.doc-nav a:hover { background: var(--bg-deep); color: var(--ink); }
.doc-nav a.on { background: var(--brand-wash); color: var(--brand-deep); border-left-color: var(--brand); font-weight: 600; }

.anchor-sec { scroll-margin-top: calc(var(--nav-h) + 18px); padding-top: 6px; }
.anchor-sec + .anchor-sec { margin-top: 48px; }

.disclaimer { border: 1px dashed #c3cede; border-radius: var(--radius); background: #fafcff; padding: 16px 18px; font-size: .82rem; color: var(--muted); margin-top: 20px; }
.disclaimer strong { color: var(--ink-2); }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .g4, .g3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .doc-layout { grid-template-columns: 1fr; gap: 22px; }
  .doc-nav { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; display: none; flex-direction: column;
    align-items: stretch; padding: 10px 16px 16px; gap: 2px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px rgba(10,22,40,.12);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; font-size: .92rem; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
  .hero { padding: 46px 0 38px; }
  .flow-arrow { transform: rotate(90deg); flex-basis: 18px; }
  .wrap, .wrap-narrow, .nav-in, .hero-in { padding: 0 18px; }
  table { font-size: .81rem; }
  thead th, tbody td { padding: 8px 11px; }
}

@media print {
  .nav, .footer, .btn, .nav-toggle { display: none !important; }
  body { font-size: 11pt; }
  .card, .table-wrap { break-inside: avoid; box-shadow: none; }
}
