/* 蓝本官网 V4 — 取桌面应用 tokens.css 的真实数值 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --canvas: #fbfbfa;
  --surface: #ffffff;
  --surface-soft: #f7f7f5;
  --surface-muted: #efefed;
  --border: #e9e9e7;
  --border-strong: #d3d3cf;
  --text: #37352f;
  --text-2: #6f6f6b;
  --primary: #2f2f2b;
  --primary-dark: #20201d;
  --primary-soft: #efefed;
  --blue: #356f9f;
  --radius: 8px;
  --radius-control: 6px;
  --shadow-sm: 0 1px 2px rgba(38, 38, 34, .05), 0 2px 8px rgba(38, 38, 34, .04);
  --font: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, "SFMono-Regular", "Microsoft YaHei UI", monospace;
  --warn-text: #8a6410;
  --warn-soft: #faf3df;
  --ok-text: #2e7d54;
  --ok-soft: #e8f4ec;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--primary); color: #fff; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }

/* ---- 页头 ---- */
.site-head {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 10;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px;
  color: var(--text); text-decoration: none;
}
.brand img { display: block; border-radius: 5px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--text); }
/* 占位导航项：页面尚未上线，仅保留位置与样式，不可点击 */
.nav-ph { color: var(--text-2); cursor: default; white-space: nowrap; }
.brand, .nav-cta { white-space: nowrap; flex-shrink: 0; }
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 6px 14px; border-radius: var(--radius-control);
  font-weight: 600;
}
.nav-cta:hover { background: var(--primary-dark); }

/* ---- 首屏 ---- */
.hero { text-align: center; }
.hero .wrap { padding-top: 56px; padding-bottom: 40px; }
.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.25;
  margin: 0 0 14px;
  text-wrap: balance;
}
.hero__sub { color: var(--text-2); font-size: 17px; margin: 0 0 26px; }
.hero__cta {
  display: flex; align-items: baseline; justify-content: center;
  gap: 20px; flex-wrap: wrap;
}
.btn {
  display: inline-block;
  background: var(--primary); color: #fff;
  text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 11px 24px; border-radius: var(--radius-control);
  border: 0; font-family: var(--font); cursor: pointer;
}
.btn:hover { background: var(--primary-dark); }
/* 版本元信息行：等宽小字灰；备用线路折叠进来，不用品牌蓝 */
.meta-line {
  margin: 14px 0 0;
  font-family: var(--mono); font-size: 12.5px;
  color: var(--text-2); font-variant-numeric: tabular-nums;
}
.meta-line__alt { margin-left: 14px; }
.meta-link {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
.meta-link:hover { color: var(--text); text-decoration-color: var(--text-2); }

/* ---- 产品块：复刻真实应用壳 ---- */
.demo-section .wrap { padding-bottom: 80px; }
.demo {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.demo__chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}
.demo__chrome-dots { display: flex; gap: 6px; }
.demo__chrome-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--border-strong); display: block;
}
.demo__chrome-title { font-size: 12px; color: var(--text-2); }

.demo__shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-rows: 48px minmax(0, 1fr);
  grid-template-areas: "rail topbar" "rail content";
  min-height: 460px;
}
.demo__topbar {
  grid-area: topbar;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.demo__domains { display: flex; gap: 4px; }
.demo__domain {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 999px;
  color: var(--text-2);
}
.demo__domain svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.demo[data-domain="operations"] .demo__domain[data-domain="operations"],
.demo[data-domain="orders"] .demo__domain[data-domain="orders"],
.demo[data-domain="reports"] .demo__domain[data-domain="reports"] {
  background: var(--surface-muted); color: var(--text);
}
.demo__topbar-right { font-size: 12px; color: var(--text-2); }

.demo__rail {
  grid-area: rail;
  background: var(--canvas);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.demo__rail-brand {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.demo__rail-brand img { border-radius: 6px; }
.demo__rail-pages {
  display: flex; flex-direction: column; gap: 5px;
  padding: 10px 8px;
}
.rail-page {
  display: flex; align-items: center;
  min-height: 32px; padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px; font-weight: 500;
}
.rail-page.is-current {
  background: var(--primary-soft);
  border-color: var(--border-strong);
  color: var(--text); font-weight: 600;
}

.demo__content {
  grid-area: content;
  padding: 20px 22px 26px;
  background: var(--canvas);
}
.scene { display: none; }
.demo[data-scene="a"] .scene--a,
.demo[data-scene="b"] .scene--b,
.demo[data-scene="c"] .scene--c {
  display: block;
  animation: scene-in .28s ease-out;
}
@keyframes scene-in { from { opacity: 0; transform: translateY(4px); } }
.scene__title {
  font-size: 15px; font-weight: 600;
  margin: 0 0 14px;
}

/* 播放时才逐行出现；静态/手动跳转时全部可见 */
.demo.is-playing [data-kind] {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.demo.is-playing [data-kind].is-in { opacity: 1; transform: none; }

/* 场景 a：导入中心 */
.import-drop {
  min-height: 108px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 18px 20px;
  gap: 4px;
}
.import-drop__icon {
  width: 30px; height: 30px;
  fill: none; stroke: var(--text-2);
  stroke-linecap: round; stroke-linejoin: round;
}
.import-drop strong { font-size: 14px; }
.import-drop p { margin: 0; font-size: 12px; color: var(--text-2); max-width: 46em; }
.import-files { margin-top: 16px; }
.import-files h3 { font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.import-list { list-style: none; margin: 0; padding: 0; }
.import-list li {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  margin-bottom: 6px;
  font-size: 13px;
  overflow: hidden;
}
.file-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.file-row:hover { background: var(--surface-soft); }
.file-row:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -2px;
}
.file-detail {
  max-height: 0;
  overflow: hidden;
  padding: 0 12px 0 39px;
  font-size: 12px; color: var(--text-2);
  transition: max-height .22s ease, padding-bottom .22s ease;
}
li.is-open .file-detail {
  max-height: 40px;
  padding-bottom: 9px;
}
li.is-open .file-name { color: var(--text); }
.file-check {
  width: 15px; height: 15px; flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid var(--ok-text);
  position: relative;
}
.file-check::after {
  content: "";
  position: absolute; left: 3.5px; top: 3.5px;
  width: 6px; height: 4px;
  border-left: 1.6px solid var(--ok-text);
  border-bottom: 1.6px solid var(--ok-text);
  transform: rotate(-45deg);
}
.file-name { font-weight: 500; min-width: 0; }
.file-type {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 1px 9px;
  white-space: nowrap;
}
.file-status { font-size: 12px; color: var(--ok-text); white-space: nowrap; }
.import-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
}
.import-done {
  font-size: 13px; color: var(--ok-text); font-weight: 600;
  opacity: 0; transition: opacity .3s;
}
.demo.is-done .import-done { opacity: 1; }
.btn--primary {
  padding: 8px 18px; font-size: 13px;
}
#importSubmit { pointer-events: none; }
#importSubmit.is-pressed { background: var(--primary-dark); box-shadow: inset 0 1px 3px rgba(0,0,0,.25); }

/* 场景 b：订单台账 */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.orders-table th {
  text-align: left;
  font-size: 12px; font-weight: 600;
  color: var(--text-2);
  background: var(--surface-soft);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.orders-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); }
.orders-table tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-family: var(--font); font-variant-numeric: tabular-nums; }
.tag {
  display: inline-block; font-size: 12px;
  padding: 1px 9px; border-radius: 999px; white-space: nowrap;
}
.tag--ok { color: var(--ok-text); border: 1px solid currentColor; }
.tag--warn { color: var(--warn-text); background: var(--warn-soft); }
.row--warn td { background: #fcf9f1; }

/* 场景 c：经营利润表 */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.metric {
  padding: 14px 14px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.metric__label { display: block; font-size: 12px; color: var(--text-2); font-weight: 500; }
.metric__value {
  display: block; margin-top: 6px;
  font-size: 22px; font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.metric__note { display: block; margin-top: 5px; font-size: 11.5px; color: var(--text-2); }
.report-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.report-table th {
  text-align: left; font-size: 12px; font-weight: 600;
  color: var(--text-2);
  background: var(--surface-soft);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.report-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.report-table tr:last-child td { border-bottom: 0; }
.row--total td { font-weight: 600; background: var(--surface-soft); }

/* 控制条 */
.demo__controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-top: 14px;
}
.demo__caption { margin: 0; font-size: 12.5px; color: var(--text-2); }
.demo__steps { display: flex; gap: 8px; }
.step {
  appearance: none;
  font-family: var(--font); font-size: 13px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 6px 14px;
  cursor: pointer;
}
.step:hover { color: var(--text); border-color: var(--border-strong); }
.step[aria-pressed="true"] {
  color: var(--text); font-weight: 600;
  background: var(--primary-soft);
  border-color: var(--border-strong);
}
.step--replay { font-weight: 600; color: var(--text); }

/* ---- 功能带：Notion 式，一屏一件事，左右交替 ---- */
.band__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 72px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}
.band--flip .band__visual { order: -1; }
.band__text h2 {
  font-size: clamp(24px, 2.8vw, 30px);
  margin: 0 0 22px;
}
.band__points {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
}
.band__points strong {
  display: block;
  font-size: 15.5px; font-weight: 600;
  margin-bottom: 3px;
}
.band__points p {
  margin: 0;
  color: var(--text-2); font-size: 15px;
  max-width: 34em;
}
.band__visual { display: grid; justify-items: center; }

/* 界面碎片：静态、安静的白面卡片 */
.frag {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px 18px;
}
.frag--cal { max-width: 400px; }
.frag--follow { max-width: 430px; }
.frag--profit { max-width: 400px; }

/* 碎片 1：日期覆盖月历（取 ImportCoverageMatrix 的状态色） */
.frag-cal__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.frag-cal__head strong { font-size: 13px; font-weight: 600; }
.frag-cal__head span {
  font-size: 12px; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.frag-cal__week, .frag-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.frag-cal__week { margin-bottom: 4px; }
.frag-cal__week span {
  text-align: center;
  font-size: 11px; color: var(--text-2);
}
.frag-cal__day {
  display: grid; place-items: center;
  min-height: 32px;
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-variant-numeric: tabular-nums;
}
.frag-cal__day--blank { visibility: hidden; }
.frag-cal__day.is-covered {
  color: var(--ok-text);
  background: var(--ok-soft);
  border-color: rgba(46, 125, 84, .32);
  font-weight: 600;
}
.frag-cal__day.is-partial {
  color: var(--warn-text);
  background: var(--warn-soft);
  border-color: rgba(138, 100, 16, .35);
  font-weight: 600;
}
.frag-cal__day.is-missing {
  color: var(--text-2);
  background: var(--surface-muted);
  border: 1px dashed var(--border-strong);
}
.frag-cal__legend {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--text-2);
}
.frag-cal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.cal-dot--covered { background: var(--ok-soft); border: 1px solid rgba(46, 125, 84, .55); }
.cal-dot--partial { background: var(--warn-soft); border: 1px solid rgba(138, 100, 16, .5); }
.cal-dot--missing { background: var(--surface-muted); border: 1px dashed var(--border-strong); }

/* 碎片 2：履约与到账跟进列表（按待办工作台复刻） */
.follow__cap {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  margin-bottom: 10px;
}
.follow__row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
}
.follow__row + .follow__row { margin-top: 6px; }
.follow__status {
  flex: 0 0 auto;
  font-size: 11.5px; color: var(--text-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}
.follow__id {
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.follow__amt {
  margin-left: auto;
  font-size: 13.5px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.follow__row--warn {
  background: #fcf9f1;
  border-color: rgba(138, 100, 16, .3);
}
.follow__row--warn .follow__status {
  color: var(--warn-text);
  border-color: currentColor;
}
.follow__row--warn .follow__amt { color: var(--warn-text); font-weight: 600; }
.follow__row--warn .follow__id { color: var(--text); }
.follow__foot {
  margin-top: 10px;
  font-size: 11.5px; color: var(--text-2);
}

/* 碎片 3：订单抽屉——费用与净额 + 关联资金流水（按 OrderDetailDrawer 复刻） */
.odrawer__head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.odrawer__id { font-size: 13.5px; font-weight: 600; }
.odrawer__platform {
  font-size: 11.5px; color: var(--text-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}
.odrawer__verdict {
  margin-left: auto;
  font-size: 11.5px; color: var(--ok-text);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}
.odrawer__section {
  margin: 14px 0 8px;
  font-size: 12px; font-weight: 600; color: var(--text-2);
}
.odrawer__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.ometric {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 8px 10px 9px;
  display: flex; flex-direction: column; gap: 3px;
}
.ometric span {
  font-size: 11.5px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ometric b {
  font-size: 14.5px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.ometric--profit {
  background: var(--surface);
  border-color: var(--border-strong);
}
.ometric--profit span { color: var(--text); }
.ometric--profit b { font-size: 16px; font-weight: 650; }
.odrawer__funds {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  overflow: hidden;
}
.ofund {
  padding: 7px 10px;
  font-size: 13px;
  background: var(--surface);
}
.ofund + .ofund { border-top: 1px solid var(--border); }
.ofund__main {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.ofund__main span {
  color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ofund__main b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ofund__memo {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-2);
  opacity: .75;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.odrawer__note {
  margin-top: 12px;
  font-size: 11.5px; color: var(--text-2);
}

/* ---- 本机数据 ---- */
.local-band { border-top: 1px solid var(--border); background: var(--surface-soft); }
.local-band .wrap { padding-top: 64px; padding-bottom: 64px; }
.local-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}

/* 本机数据示意：电脑在本地处理，云被挡在边界外 */
.lv {
  position: relative;
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 26px 48px;
  min-height: 218px;
  overflow: hidden;
  box-sizing: border-box;
}
.lv-machine { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.lv-screen {
  width: 128px; height: 84px;
  border: 2px solid var(--text);
  border-radius: 7px 7px 0 0;
  background: var(--surface);
  display: flex; flex-direction: column; justify-content: center;
  gap: 9px;
  padding: 0 16px;
  box-sizing: border-box;
}
.lv-row {
  display: block; height: 5px;
  border-radius: 3px;
  background: var(--border-strong);
}
.lv-row--1 { width: 100%; }
.lv-row--2 { width: 72%; }
.lv-row--3 { width: 86%; }
.lv-base {
  width: 152px; height: 7px;
  margin-left: -12px;
  border: 2px solid var(--text);
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: var(--surface);
}
.lv-machine-label, .lv-cloud-label {
  display: block;
  margin-top: 10px;
  font-size: 11.5px; color: var(--text-2);
}
.lv-gap {
  flex: 1 1 auto;
  position: relative;
  height: 2px;
  min-width: 34px;
  margin-top: 48px;
}
.lv-dashes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px);
}
.lv-stop {
  position: absolute;
  right: -4px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1.5px solid var(--text-2);
  border-radius: 50%;
  line-height: 1;
}
.lv-cloudside { text-align: center; opacity: .55; margin-top: 14px; }
.lv-cloud {
  display: inline-block;
  position: relative;
  width: 58px; height: 22px;
  background: var(--border-strong);
  border-radius: 12px;
  margin-top: 16px;
}
.lv-cloud::before, .lv-cloud::after {
  content: "";
  position: absolute;
  background: var(--border-strong);
  border-radius: 50%;
}
.lv-cloud::before { width: 24px; height: 24px; top: -12px; left: 9px; }
.lv-cloud::after { width: 16px; height: 16px; top: -8px; right: 9px; }
.lv-caption {
  position: absolute;
  left: 0; right: 0; bottom: 15px;
  text-align: center;
  font-size: 12px; color: var(--text-2);
}

/* 飞入电脑的报表文件 chip */
.lv-chip {
  position: absolute;
  top: 56px; left: -46px;
  z-index: 2;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
}
/* 加密备份锁 */
.lv-vault {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 7px;
  font-size: 11.5px; color: var(--text-2);
  white-space: nowrap;
}
.lv-lock {
  width: 15px; height: 15px;
  stroke: var(--text-2);
}

@media (prefers-reduced-motion: no-preference) {
  .lv-chip { animation: lv-chip-fly 5.2s ease-in-out infinite; }
  .lv-chip--2 { animation-delay: 2.6s; }
}
@keyframes lv-chip-fly {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 1; }
  58% { transform: translate(104px, 0); opacity: 1; }
  74%, 100% { transform: translate(126px, 3px) scale(.55); opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .lv-row { animation: lv-row-pulse 3.6s ease-in-out infinite; }
  .lv-row--2 { animation-delay: 1.2s; }
  .lv-row--3 { animation-delay: 2.4s; }
  .lv-dashes { animation: lv-dash-creep 1.8s linear infinite; }
}
@keyframes lv-row-pulse {
  0%, 100% { background: var(--border-strong); }
  12%, 28% { background: #b8c4cd; }
}
@keyframes lv-dash-creep {
  from { background-position-x: 0; }
  to { background-position-x: 12px; }
}
.local-band h2 { font-size: 22px; margin: 0; }
.local-band p { margin: 2px 0 0; color: var(--text-2); font-size: 15px; max-width: 44em; }

/* ---- 下载：居中收尾块 ---- */
.download .wrap {
  padding-top: 64px; padding-bottom: 72px;
  text-align: center;
}
.download h2 { font-size: 26px; margin: 0 0 22px; }
.download .meta-line { margin-top: 16px; }
.download__line {
  margin: 18px 0 0;
  font-size: 13.5px; color: var(--text-2);
}
.download__line b {
  font-family: var(--mono); font-size: 12px;
  font-weight: 600; color: var(--text);
}
.download__line i {
  font-style: normal;
  color: var(--border-strong);
  margin: 0 8px;
}

/* ---- 页脚 ---- */
.site-foot {
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
}
.site-foot .wrap {
  padding-top: 22px; padding-bottom: 30px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-2);
}
.site-foot a { color: var(--text-2); text-decoration: none; }
.site-foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 860px) {
  .demo__shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "topbar" "content"; min-height: 0; }
  .demo__rail { display: none; }
  .demo__topbar-right { display: none; }
  .demo__content { padding: 16px 14px 20px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .band__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .band--flip .band__visual { order: 0; }
  .band__points p { max-width: none; }
  .local-band__grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  /* 窄屏只留下载按钮：占位项无功能，收起避免页头挤压换行 */
  span.nav-ph { display: none; }
  .import-list li { flex-wrap: wrap; row-gap: 4px; }
  .file-type { margin-left: 0; }
  .metrics { grid-template-columns: 1fr; }
  .metric__value { font-size: 20px; }
}

/* 碎片入场：滚动到才逐行亮起（仅 JS 且未要求减弱动画时启用隐藏态） */
@media (prefers-reduced-motion: no-preference) {
  .js-anim .frag .ometric,
  .js-anim .frag .ofund,
  .js-anim .frag .follow__row {
    opacity: 0;
    transform: translateY(7px);
    transition: opacity .45s ease, transform .45s ease;
  }
  .js-anim .frag .frag-cal__day {
    opacity: 0;
    transition: opacity .3s ease;
  }
  .js-anim .frag.in-view .ometric,
  .js-anim .frag.in-view .ofund,
  .js-anim .frag.in-view .follow__row {
    opacity: 1;
    transform: none;
  }
  .js-anim .frag.in-view .frag-cal__day { opacity: 1; }
  /* 超时未完结行：缓慢呼吸警示 */
  .follow__row--warn { animation: follow-warn-breathe 3.2s ease-in-out infinite; }
}
@keyframes follow-warn-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(138, 100, 16, 0); }
  50% { box-shadow: 0 0 0 4px rgba(138, 100, 16, .08); }
}

/* ---- 常见问题 ---- */
.faq { border-top: 1px solid var(--border); }
.faq .wrap { padding-top: 56px; padding-bottom: 56px; }
.faq h2 { font-size: 26px; margin: 0 0 26px; }
.faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 48px;
}
.faq__item h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.faq__item p { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.7; }
@media (max-width: 640px) {
  .faq__grid { grid-template-columns: 1fr; }
}

/* 导航里的真实链接（帮助） */
.nav a.nav-ph { cursor: pointer; text-decoration: none; color: var(--text-2); }
.nav a.nav-ph:hover { color: var(--text); }
@media (max-width: 480px) {
  .nav a.nav-ph { display: inline; }
}

/* ---- 面包屑与文章页 ---- */
.crumbs {
  font-size: 13px;
  color: var(--text-3);
  padding: 22px 4px 0;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs__sep { color: var(--border-strong); }

.article-wrap { max-width: 780px; }
.article-page .topnav .wrap { max-width: 1100px; }

.article.card {
  margin-top: 14px;
  padding: 44px 48px 40px;
}
.article__title { font-size: 27px; line-height: 1.35; margin: 0 0 8px; letter-spacing: -0.01em; }
.article__meta { font-size: 13px; color: var(--text-3); margin: 0 0 26px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }

.article__body { font-size: 15px; line-height: 1.85; color: var(--text); }
.article__body h2 { font-size: 19px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.article__body h3 { font-size: 16px; margin: 26px 0 8px; }
.article__body p { margin: 12px 0; }
.article__body ul, .article__body ol { margin: 12px 0; padding-left: 24px; }
.article__body li { margin: 6px 0; }
.article__body strong { font-weight: 600; }
.article__body a { color: var(--brand); text-decoration: none; }
.article__body a:hover { text-decoration: underline; }
.article__body img { max-width: 100%; border: 1px solid var(--border); border-radius: 8px; }
.article__body code {
  font-size: 0.88em;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}
.article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.article__body th, .article__body td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.article__body th { font-weight: 600; background: var(--paper); }
.article__body blockquote {
  margin: 14px 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--border-strong);
  color: var(--text-2);
}

.article-cta {
  margin-top: 40px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.article-cta__title { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.article-cta__sub { font-size: 13.5px; color: var(--text-2); margin: 0; }

.article-back { padding: 22px 4px 30px; font-size: 13.5px; margin: 0; }
.article-back a { color: var(--text-2); text-decoration: none; }
.article-back a:hover { color: var(--text); }

/* ---- 索引页 ---- */
.index-head { padding: 40px 4px 8px; }
.index-head h1 { font-size: 27px; margin: 0 0 8px; }
.index-head .lead { font-size: 14.5px; color: var(--text-2); margin: 0; }
.article-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; padding-bottom: 30px; }
.article-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 18px 22px;
}
.article-item:hover { border-color: var(--border-strong); }
.article-item h2 { font-size: 16.5px; margin: 0 0 5px; font-weight: 600; }
.article-item p { font-size: 13.5px; color: var(--text-2); margin: 0; line-height: 1.65; }
.article-item .article-item__date { font-size: 12.5px; color: var(--text-3); margin-top: 7px; display: block; }

@media (max-width: 640px) {
  .article.card { padding: 26px 20px 24px; }
  .article__title { font-size: 22px; }
}
/* 文章系统通用白面卡片 */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
a.card { transition: border-color .15s ease; }

/* 文章图片放大 */
.article__body img { cursor: zoom-in; }
.imgzoom {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(28, 26, 23, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 24px;
}
.imgzoom img {
  max-width: 94vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
  background: #fff;
}
