/* 官网（静态站）专用样式：只在 site/ 里用，软件界面不加载这份。
   基础变量、按钮、套餐卡、对比表、FAQ 全部复用 style.css，这里只补首页/下载/条款缺的。 */

/* ---------- 顶栏补充 ---------- */
.pub-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.pub-brand small { color: var(--muted); font-size: 11px; font-weight: 400; }
.pub-right { display: flex; align-items: center; gap: 8px; }

/* ---------- 首页 hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 34px; align-items: center; padding: 14px 0 8px;
}
.hero h1 { font-size: 38px; line-height: 1.28; margin: 10px 0 16px; letter-spacing: -.4px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-l, .hero-r { min-width: 0; }
.hero-lede { font-size: 14.5px; line-height: 1.85; color: #3b4250; margin: 0 0 22px; max-width: 620px; }
.hero-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span {
  font-size: 12px; color: #4b5261; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px;
}

/* 界面示意（假的表格，别当真数） */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(23, 33, 56, .08); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft); background: #fbfbfd; font-size: 12.5px;
}
.mock-bar b { margin-left: 6px; font-size: 12.5px; }
.mock-tag {
  margin-left: auto; font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px;
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: #dfe3ea; }
.mock-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mock-table th {
  text-align: left; font-weight: 500; color: var(--muted); font-size: 11.5px;
  padding: 9px 12px; border-bottom: 1px solid var(--line-soft);
}
.mock-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.mock-table tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; color: #9aa1ad; }
.mock-note { padding: 9px 12px 12px; font-size: 11.5px; color: var(--muted); }

/* ---------- 通用栅格 ---------- */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cols4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cap { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 15px 16px; }
.cap b { display: block; font-size: 13.5px; margin-bottom: 5px; }
.cap p { margin: 0; font-size: 12.5px; line-height: 1.75; color: #4b5261; }
.cols3 .pg-addon, .cols3 .pg-addon-h b { font-size: 13.5px; }

/* ---------- 三步流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 11px; padding: 17px 16px 15px;
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 7px; margin-bottom: 9px;
  background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700;
}
.step b { display: block; font-size: 13.5px; margin-bottom: 5px; }
.step p { margin: 0; font-size: 12.5px; line-height: 1.8; color: #4b5261; }

/* ---------- 更新日志 ---------- */
.cl { display: flex; flex-direction: column; gap: 12px; }
.cl-item { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 14px 17px; }
.cl-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.cl-h b { font-size: 13px; }
.cl-h span { color: var(--muted); font-size: 12px; }
.cl-item ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.85; color: #4b5261; }

/* ---------- 条款正文 ---------- */
.legal section { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 18px 22px; }
.legal h2 { font-size: 15px; margin: 0 0 9px; }
.legal p, .legal li { font-size: 13px; line-height: 1.9; color: #3b4250; }
.legal p { margin: 0 0 8px; }
.legal ul { margin: 0; padding-left: 20px; }
.legal li { margin-bottom: 3px; }
.legal code, .faq-a code {
  background: #f2f3f6; border: 1px solid var(--line); border-radius: 5px;
  padding: 0 5px; font-size: 12px;
}

/* ---------- 页脚 ---------- */
.pub-foot-legal {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center;
  max-width: 1180px; margin: 0 auto; padding: 0 28px 22px;
  color: #8a92a0; font-size: 11.5px;
}
.pub-foot-in { max-width: 1180px; margin: 0 auto; }

/* ---------- 窄屏 ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 22px; }
  .hero h1 { font-size: 30px; }
  .cols4, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pub-main { padding: 18px 16px 40px; }
  .hero h1 { font-size: 25px; }
  .cols3, .cols4, .flow { grid-template-columns: 1fr; }
  .pub-nav { display: none; }
}

/* ---------- 首页界面示意（毛保 / 结算 / SKU / 推广 / 采集） ---------- */
.hero-wide { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.hero-r .dm-body { padding: 12px; gap: 10px; }

.dm {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 16px 40px -22px rgba(23, 33, 56, .35); min-width: 0;
}
.dm-bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 13px;
  background: #fbfbfd; border-bottom: 1px solid var(--line-soft); font-size: 12.5px;
}
.dm-bar b { margin-left: 6px; font-weight: 600; }
.dm-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.dm-gap { height: 16px; }

/* KPI 条 */
.dm-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden;
}
.dm-kpi { background: #fff; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dm-kpi span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.dm-kpi b {
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.dm-kpi em { font-style: normal; font-size: 11px; color: var(--muted); }
.dm-kpi em.good { color: var(--good); }
.dm-kpi em.bad { color: var(--bad); }
.dm-kpi em.warn { color: var(--warn); }

/* 两栏 */
.dm-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 12px; align-items: start; }
.dm-split-2 { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.dm-split-2 > div { min-width: 0; display: flex; flex-direction: column; gap: 9px; }

/* 结论卡 */
.dm-concl {
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 7px; background: #fcfcfd; min-width: 0;
}
.dm-concl.bad { background: linear-gradient(180deg, #fff7f6, #fff); border-color: #f3cfcb; }
.dm-concl.good { background: linear-gradient(180deg, #f5fbf7, #fff); border-color: #cbe8d6; }
.dm-concl.warn { background: linear-gradient(180deg, #fffaf1, #fff); border-color: #f2dfbc; }
.dm-concl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dm-pill {
  font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  background: #eef0f4; color: #414855; white-space: nowrap;
}
.dm-pill.bad { background: var(--bad-soft); color: var(--bad); }
.dm-pill.good { background: var(--good-soft); color: var(--good); }
.dm-pill.warn { background: var(--warn-soft); color: var(--warn); }
.dm-muted { font-size: 11px; color: var(--muted); }
.dm-headline { font-size: 16px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
.dm-concl.bad .dm-headline { color: var(--bad); }
.dm-concl.good .dm-headline { color: var(--good); }
.dm-concl.warn .dm-headline { color: var(--warn); }
.dm-sentence { margin: 0; font-size: 12px; line-height: 1.75; color: #4b5261; }
.dm-concl-foot {
  display: flex; flex-wrap: wrap; gap: 5px 14px; padding-top: 8px;
  border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--muted);
}
.dm-concl-foot b { color: #2a2f3a; font-variant-numeric: tabular-nums; margin-left: 4px; }
.dm-concl-foot b.bad { color: var(--bad); }

/* 仪表盘 */
.dm-gauge { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero-fine { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); }
.dm-gauge svg { width: 100%; height: auto; display: block; }
.dm-gauge-note { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: #4b5261; }
.dm-gauge-note b { font-weight: 600; }
.dm-gauge-note span { color: var(--muted); font-size: 11px; line-height: 1.5; }

/* 图例 */
.dm-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--muted); }
.dm-legend i {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  margin-right: 4px; vertical-align: 0;
}
.dm-legend i.band { background: rgba(19, 122, 68, .2); border: 1px solid rgba(19, 122, 68, .45); }
.dm-legend i.std { background: #8792a5; }
.dm-legend i.dot.bad { background: var(--bad); border-radius: 50%; }
.dm-legend i.dot.good { background: var(--good); border-radius: 50%; }
.dm-legend i.dot.warn { background: var(--warn); border-radius: 50%; }
.dm-legend i.w { background: var(--good); }
.dm-legend i.f { background: #c9cfda; }
.dm-legend i.l { background: var(--bad); }
.dm-legend i.t-actual { background: var(--brand); }
.dm-legend i.t-payback { background: #d1495b; }
.dm-legend i.t-std { background: var(--good); }

/* SKU 利润 */
.dm-profit { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.dm-profit-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dm-profit-top div {
  background: #fbfbfd; border: 1px solid var(--line-soft); border-radius: 9px;
  padding: 8px 10px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.dm-profit-top span { font-size: 11px; color: var(--muted); width: 100%; }
.dm-profit-top b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-profit-top b.good { color: var(--good); }
.dm-profit-top b.bad { color: var(--bad); }
.dm-profit-top em { font-style: normal; font-size: 11px; color: var(--muted); }
.dm-stack { display: flex; height: 8px; border-radius: 5px; overflow: hidden; background: var(--line-soft); }
.dm-stack span { display: block; height: 100%; }
.dm-stack .w { background: var(--good); }
.dm-stack .f { background: #c9cfda; }
.dm-stack .l { background: var(--bad); }
.dm-profit-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); }
.dm-profit-foot b { font-variant-numeric: tabular-nums; margin-left: 4px; }
.dm-profit-foot b.good { color: var(--good); }
.dm-profit-foot b.bad { color: var(--bad); }
.dm-extremes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dm-extremes div {
  border: 1px solid var(--line-soft); border-radius: 9px; padding: 7px 9px;
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.dm-extremes span { font-size: 11px; color: var(--muted); }
.dm-extremes b {
  font-size: 12px; font-weight: 600; color: #2a2f3a; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.dm-extremes em { font-style: normal; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-extremes em.good { color: var(--good); }
.dm-extremes em.bad { color: var(--bad); }

/* 表格 */
.dm-sub { font-size: 12px; font-weight: 600; color: #2a2f3a; }
.dm-tablewrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 10px; background: #fff; }
.dm-tbl { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 560px; }
.dm-tbl th {
  text-align: left; font-size: 11px; font-weight: 500; color: var(--muted);
  padding: 7px 10px; background: #fbfbfd; border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
.dm-tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.dm-tbl tr:last-child td { border-bottom: 0; }
.dm-r { text-align: right; font-variant-numeric: tabular-nums; }
.dm-sku { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.dm-name { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.dm-tbl td.good { color: var(--good); }
.dm-tbl td.bad { color: var(--bad); }
.dm-tbl td.warn { color: var(--warn); }
.dm-note { margin: 0; font-size: 11.5px; line-height: 1.7; color: var(--muted); }

/* 结算走势 */
.dm-trend { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dm-trend svg { width: 100%; height: auto; display: block; border: 1px solid var(--line-soft); border-radius: 10px; }

/* 推广 */
.dm-promo-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dm-promo-top div {
  background: #fbfbfd; border: 1px solid var(--line-soft); border-radius: 9px; padding: 8px 10px; min-width: 0;
}
.dm-promo-top span { display: block; font-size: 11px; color: var(--muted); }
.dm-promo-top b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 库存与待办 */
.dm-stock-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dm-stock-kpis div {
  border: 1px solid var(--line-soft); border-radius: 9px; padding: 8px 10px; background: #fbfbfd; min-width: 0;
}
.dm-stock-kpis span { display: block; font-size: 11px; color: var(--muted); }
.dm-stock-kpis b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-todo { margin: 0; padding-left: 16px; font-size: 12px; line-height: 1.85; color: #414855; }
.dm-todo li { margin-bottom: 4px; }

/* 套餐卡的「含毛保核算」角标：挂在版本名后面，不跟推荐角标抢位置 */
.tier-flag {
  display: inline-block; margin-left: 6px; vertical-align: 2px;
  background: var(--good-soft); color: var(--good); border: 1px solid #cbe8d6;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0;
  padding: 1px 7px; border-radius: 999px;
}
.tier-name { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }

/* 并排窗口里的表格窄一点，尽量不用横向滚动 */
.dm-split .dm-tbl { min-width: 460px; }
.dm-split .dm-tbl th, .dm-split .dm-tbl td { padding: 6px 8px; }

.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

@media (max-width: 960px) {
  .hero-wide { grid-template-columns: 1fr; }
  .dm-split, .dm-split-2 { grid-template-columns: 1fr; }
  .dm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dm-body { padding: 11px; gap: 10px; }
  .dm-headline { font-size: 15px; }
  .dm-profit-top b { font-size: 16px; }
  .dm-extremes { grid-template-columns: 1fr; }
  .dm-tablewrap { border-radius: 9px; }
}

/* 功能页：左边讲、右边给界面 */
.feat { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 26px; align-items: start; }
.feat-copy h2 { font-size: 22px; margin: 6px 0 10px; letter-spacing: -.2px; }
.feat-copy p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.9; color: #3b4250; }
.feat-list { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.95; color: #4b5261; }
.feat-list li { margin-bottom: 3px; }
.feat-list li::marker { color: var(--brand); }
.feat-caps { margin-top: 16px; }

/* 首页：「完整功能」入口 */
.pg-more { margin: 18px 0 0; text-align: center; }

/* 首页：四档价格收成一条 */
.price-line {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
}
.price-line .pl-items { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13px; color: #4b5261; }
.price-line .pl-items b { font-size: 17px; font-weight: 700; color: var(--brand); margin: 0 2px; }

/* 功能页：数据粒度表 */
.spec-table td { vertical-align: top; }
.spec-table td:first-child { white-space: nowrap; }
.spec-table td:nth-child(3) { color: var(--muted); font-size: 12px; white-space: nowrap; }

@media (max-width: 960px) {
  .feat { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .price-line { align-items: flex-start; }
  .price-line .pl-items { gap: 6px 16px; font-size: 12.5px; }
}

