/* ═══════════════════════════════════════════════════════════════
   乐文信息科技 — 五步留痕链主题
   2026-10-02 重设计。核心: 把「监理」这个抽象过程变成可见的链。
   配色沿用原有的编辑风 (墨黑/纸白/亮橙), 只新增印泥红作为「已留痕」标记。
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --paper: #fafaf7;
  --paper-2: #f1efe9;
  --paper-3: #e8e4d8;
  --orange: #ff5a1f;
  --orange-soft: #ffe8de;
  --seal: #c8321e;          /* 印泥红: 只用于「已留痕」节点 */
  --seal-soft: #f6e3e0;
  --muted: #6b6b66;
  --muted-2: #9a9a93;
  --line: rgba(10, 10, 10, .08);
  --max: 1120px;            /* 1280 -> 1120: 中文行宽压到 ~72 字符内 */
  --pad: 48px;
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }

/* ═══ HERO ═══════════════════════════════════════════════════ */

.hero { padding: 96px 0 120px; position: relative; }

/* eyebrow 去掉 uppercase 模板感, 改中文标点 + 字距收紧 */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; letter-spacing: .04em; color: var(--muted);
  margin-bottom: 40px;
}
.hero-eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--seal);
  display: inline-block;
}

.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(40px, 5.2vw, 68px); line-height: 1.18;
  letter-spacing: -.5px; max-width: 18em; color: var(--ink);
  margin: 0 0 28px;
}
/* 不再给句中单个词加 em 强调 — 改用下划线划出「留痕」这个核心动作 */
.hero h1 .mark {
  font-style: normal; position: relative; white-space: nowrap;
}
.hero h1 .mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .12em;
  height: 3px; background: var(--seal);
}

.hero-sub {
  font-size: 17px; line-height: 1.85; color: var(--muted);
  max-width: 40em; margin: 0 0 40px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 72px; }

/* ═══ 五步留痕链 — 本次重设计的主视觉 ═══════════════════════ */

.trace {
  position: relative;
  padding-top: 40px;
  border-top: 2px solid var(--ink);
}
.trace-cap {
  font-size: 13px; color: var(--muted); margin: 0 0 32px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.trace-cap b { color: var(--ink); font-weight: 500; font-size: 15px; }

.trace-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }

.trace-step { position: relative; padding: 0 20px 0 0; }
/* 连接线: 画在每个 step 上, 最后一个不画 */
.trace-step::before {
  content: ""; position: absolute; top: 21px; left: 52px; right: 0;
  height: 1px; background: var(--line);
}
.trace-step:last-child::before { display: none; }

.trace-seal {
  position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  border: 2px solid var(--ink); background: var(--paper);
  color: var(--ink);
  /* 盖章感: 轻微旋转, 每枚不同角度, 像真的骑缝章不是 UI 组件 */
  transform: rotate(var(--tilt, 0deg));
}
.trace-step:nth-child(1) .trace-seal { --tilt: -4deg; }
.trace-step:nth-child(2) .trace-seal { --tilt: 3deg; }
.trace-step:nth-child(3) .trace-seal { --tilt: -2deg; }
.trace-step:nth-child(4) .trace-seal { --tilt: 5deg; }
.trace-step:nth-child(5) .trace-seal { --tilt: -3deg; }
.trace-seal.done {
  border-color: var(--seal); background: var(--seal);
  color: #fff;
}

.trace-name {
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  margin: 16px 0 6px; color: var(--ink);
}
.trace-desc { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }
.trace-doc {
  display: inline-block; margin-top: 10px;
  font-size: 12px; color: var(--seal);
  border: 1px solid var(--seal-soft); background: var(--seal-soft);
  padding: 2px 8px; border-radius: 2px;
}

/* ═══ 案例卡 — 用步骤印章替代 emoji ═══════════════════════ */

.case-cover {
  aspect-ratio: 4/3;
  background: var(--paper-2);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
/* 移除 font-size:64px 的 emoji 渲染 */
.case-cover > span:first-child { display: none; }

.case-stamp {
  width: 86px; height: 86px; border-radius: 50%;
  border: 3px double var(--seal);
  color: var(--seal);
  display: grid; place-items: center; text-align: center;
  font-family: var(--serif); font-weight: 700; font-size: 15px;
  line-height: 1.25; padding: 8px;
  transform: rotate(-6deg);
  background: rgba(250, 250, 247, .5);
}
.case-stamp small { display: block; font-size: 11px; font-weight: 400; letter-spacing: .02em; }

.case:hover .case-stamp { background: var(--seal-soft); }

/* ═══ 通用 ═══════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 900px) {
  .trace-rail { grid-template-columns: 1fr; gap: 28px; }
  .trace-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
  .trace-step::before { display: none; }
  .trace-name { margin: 4px 0 4px; }
  .trace-desc, .trace-doc { grid-column: 2; }
  .hero { padding: 64px 0 80px; }
  .hero-ctas { margin-bottom: 48px; }
}
