/* ============================================================
   demo-sample.css · 单页方案「样例数据」区块样式（2026-11-01）
   与各方案页自有样式完全解耦：只用 .ds- 前缀，不覆盖页面原有类名。
   配色沿用站内主色：主绿 #10b981 / 深青 #0f766e / 中性 #0f172a·#64748b。
   ============================================================ */

.ds-sample {
  padding: 64px 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid #eef2f6;
}

.ds-sample__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.ds-sample__head {
  margin: 0 0 22px;
}

.ds-sample__head h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.ds-sample__head p {
  margin: 0;
  max-width: 880px;
  font-size: 14px;
  line-height: 1.75;
  color: #64748b;
}

/* ---------- KPI 卡片 ---------- */
.ds-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.ds-kpis li {
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.ds-kpis span {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.ds-kpis b {
  display: block;
  margin: 6px 0 4px;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 800;
  color: #0f766e;
  font-variant-numeric: tabular-nums;
}

.ds-kpis i {
  display: block;
  font-size: 11px;
  font-style: normal;
  line-height: 1.5;
  color: #94a3b8;
}

/* ---------- 数据表 ---------- */
.ds-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .045);
}

.ds-tbl {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.6;
  color: #1e293b;
}

.ds-tbl thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 11px 14px;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.ds-tbl tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.ds-tbl tbody tr:last-child td {
  border-bottom: 0;
}

.ds-tbl tbody tr:nth-child(even) td {
  background: #fcfdfe;
}

.ds-tbl tbody td:first-child {
  font-variant-numeric: tabular-nums;
  color: #0f766e;
  font-weight: 600;
  white-space: nowrap;
}

.ds-tbl tbody td:nth-child(4),
.ds-tbl tbody td:nth-child(5) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ds-tbl tbody tr:hover td {
  background: #f0fdf4;
}

/* ---------- 状态徽标 ---------- */
.ds-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.ds-pill--ok {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.ds-pill--doing {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.ds-pill--wait {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.ds-pill--back {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

/* ---------- 业务闭环 ---------- */
.ds-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
  margin: 20px 0 0;
}

.ds-flow a {
  position: relative;
  display: block;
  padding: 13px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.ds-flow a i {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  color: #64748b;
}

.ds-flow a::after {
  content: "→";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  color: #cbd5e1;
}

.ds-flow a:hover {
  border-color: #10b981;
  box-shadow: 0 6px 18px rgba(16, 185, 129, .12);
  transform: translateY(-1px);
}

.ds-flow a:hover::after {
  color: #10b981;
}

/* ---------- 口径说明 ---------- */
.ds-sample__note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.75;
  color: #64748b;
}

.ds-sample__note strong {
  color: #334155;
}

@media (max-width: 640px) {
  .ds-sample {
    padding: 44px 14px;
  }

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

  .ds-kpis b {
    font-size: 18px;
  }
}
