/* ============================================================
   唐鼎信息官网 · 组件层
   卡片 / 数字条 / 标签 / 列表 / 表格 / 步骤 / 时间轴 / 对比 / 表单

   卡片刻意提供多种变体（card / num-card / def-list / timeline /
   split-row），避免全站只有一种"图标+标题+一段话"的方块。
   ============================================================ */

/* ---------- 图标 ---------- */
/* 内联 SVG 线性图标，24×24，stroke 用 currentColor */
.icon {
  width: 26px; height: 26px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 18px; height: 18px; }
.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--r-xs);
  background: var(--red-soft); color: var(--red);
}

/* ---------- 网格 ---------- */
.card-grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-tight { gap: 16px; }

/* ---------- 卡片 A：图标 + 标题 + 说明 ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px 28px;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { border-color: #cfd4e2; box-shadow: var(--sh-2); }
.card .icon-box { margin-bottom: 18px; }
.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 14.5px; }
.section-gray .card { border-color: transparent; box-shadow: var(--sh-1); }

/* ---------- 卡片 B：大序号 + 标题 + 说明（用于流程/要点，替代清一色图标卡）----------
   .num-card--tight 变体用于并列而非有序的场景 */
.num-card { border-top: 3px solid var(--ink-800); padding-top: 22px; }
.num-card .num {
  display: block; font-size: 34px; font-weight: 800; line-height: 1;
  color: var(--red); font-variant-numeric: tabular-nums; margin-bottom: 14px;
}
.num-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.num-card p { color: var(--text-2); font-size: 14.5px; }

/* ---------- 定义列表：密集信息，替代又一张卡片 ---------- */
.def-list { border-top: 1px solid var(--line); }
.def-list > div {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.def-list dt { font-weight: 700; color: var(--ink-800); font-size: 16px; }
.def-list dd { color: var(--text-2); font-size: 15px; }

/* ---------- 时间轴：用于"能力覆盖全旅程""交付步骤"这类线性过程 ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.timeline-item { position: relative; padding: 0 0 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -34px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--red);
}
.timeline-item b { display: block; font-size: 16.5px; color: var(--ink-800); margin-bottom: 4px; }
.timeline-item p { color: var(--text-2); font-size: 14.5px; }
.section-dark .timeline::before { background: rgba(255, 255, 255, 0.16); }
.section-dark .timeline-item::before { background: var(--ink-800); }
.section-dark .timeline-item b { color: #fff; }
.section-dark .timeline-item p { color: rgba(255, 255, 255, 0.62); }

/* ---------- 左右图文分栏 ---------- */
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-row.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--r-md); box-shadow: var(--sh-3); width: 100%; }
.split-body h2 { font-size: clamp(24px, 2.7vw, 32px); margin-bottom: 16px; text-wrap: balance; }
.split-body p { color: var(--text-2); }

/* ---------- 数字条 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat b {
  display: block; font-size: clamp(34px, 4vw, 50px); font-weight: 800;
  color: var(--red); line-height: 1.05; font-variant-numeric: tabular-nums;
}
.stat b small { font-size: 0.46em; font-weight: 700; margin-left: 3px; }
.stat span { color: var(--text-2); font-size: 14.5px; }
.section-dark .stat span { color: rgba(255, 255, 255, 0.66); }
.section-dark .stat b { color: #ff5468; }

/* ---------- 标签 ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-row.center { justify-content: center; }
.chip-row span {
  border: 1px solid var(--line); background: #fff; border-radius: var(--r-xs);
  padding: 7px 16px; font-size: 14px; font-weight: 600; color: var(--ink-700);
}
.section-dark .chip-row span { background: transparent; border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.chip-red span { background: var(--red-soft); border-color: transparent; color: var(--red); }

/* ---------- 圆点列表 ---------- */
.dot-list li { position: relative; padding: 6px 0 6px 20px; color: var(--text-2); font-size: 14.5px; }
.dot-list li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 7px; height: 7px; background: var(--red); border-radius: 1px;
}
.dot-list.compact li { padding: 4px 0 4px 20px; font-size: 14px; }
.section-dark .dot-list li { color: rgba(255, 255, 255, 0.72); }

/* ---------- 深色面板 ---------- */
.dark-panel {
  background: var(--ink-800); color: rgba(255, 255, 255, 0.78);
  border-radius: var(--r-md); padding: 42px 44px;
}
.dark-panel h3 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.dark-panel-sub { color: rgba(255, 255, 255, 0.6); margin-bottom: 26px; }
.dark-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.dark-cols b { display: block; color: #ff5468; font-size: 16px; margin-bottom: 8px; }
.dark-cols p { font-size: 14.5px; }

/* ---------- 立场条：品牌观点，通栏强调 ---------- */
.stance-bar {
  margin-top: 40px; padding: 24px 34px;
  border-left: 4px solid var(--red); background: var(--red-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 16px; line-height: 1.8; color: var(--ink-800);
}
.stance-bar b { color: var(--red); }
.section-dark .stance-bar { background: rgba(200, 0, 26, 0.14); color: rgba(255, 255, 255, 0.9); }
.section-dark .stance-bar b { color: #ff5468; }

/* ---------- 表格 ---------- */
.table-wrap { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-2); overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: 14.5px; min-width: 560px; }
table.data th {
  background: var(--ink-800); color: #fff; text-align: left;
  padding: 15px 22px; font-weight: 600; font-size: 14px;
}
table.data td { padding: 13px 22px; border-bottom: 1px solid var(--line); color: var(--text-2); }
table.data tbody tr:hover { background: var(--paper-2); }
table.data td:first-child { font-weight: 700; color: var(--ink-800); white-space: nowrap; }
.table-note { color: var(--text-2); font-size: 13px; margin-top: 14px; }
.section-dark .table-note { color: rgba(255, 255, 255, 0.62); }

/* ---------- 步骤条 ---------- */
.steps-row { display: grid; gap: 8px; }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.steps-6 { grid-template-columns: repeat(6, 1fr); }
.step { position: relative; padding: 26px 20px 24px; border-top: 2px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 34px; height: 2px; background: var(--red);
}
.step b {
  display: block; font-size: 13px; letter-spacing: 0.14em; color: var(--red);
  font-weight: 800; margin-bottom: 12px;
}
.step h4 { font-size: 16.5px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 13.5px; }
.section-dark .step { border-top-color: rgba(255, 255, 255, 0.16); }
.section-dark .step p { color: rgba(255, 255, 255, 0.62); }
.section-dark .step b { color: #ff5468; }   /* 品牌红压深底只有 2.95:1 */

/* ---------- 对比栏 ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-2); }
/* 两列各自 flex 撑满，让左右底色块等高；用 ul 的 height:100% 在 grid 里不可靠 */
.compare-old, .compare-new { display: flex; flex-direction: column; }
.compare-head { padding: 18px; text-align: center; font-weight: 700; color: #fff; font-size: 16.5px; }
.compare-old .compare-head { background: var(--slate); }
.compare-new .compare-head { background: var(--red); }
.compare ul { padding: 30px 36px; flex: 1; }
.compare-old ul { background: var(--paper-3); }
.compare-new ul { background: var(--red-soft); }
.compare li { position: relative; padding: 12px 0 12px 26px; font-size: 15px; color: var(--text-2); }
.compare li::before {
  content: ""; position: absolute; left: 0; top: 20px;
  width: 12px; height: 2px; background: #a9b0c2;
}
.compare-new li { color: var(--ink-800); font-weight: 600; }
.compare-new li::before { background: var(--red); height: 3px; }

/* ---------- 表单 ---------- */
.form-field { display: block; margin-bottom: 18px; font-size: 14px; font-weight: 600; color: var(--ink-800); }
.form-field input, .form-field textarea {
  width: 100%; margin-top: 8px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; font-weight: 400; color: var(--text); background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(200, 0, 26, 0.1);
}
.form-field textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* 蜜罐字段：正常访客看不见，填写它的基本是机器人 */
.form-hp {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.form-note { margin-top: 16px; font-size: 13px; color: var(--text-2); text-align: center; }
.form-note.ok { color: #1a7f43; font-weight: 600; }
.form-note.error { color: var(--red); font-weight: 600; }
