/* 思路卡 · 思维链（docs/板块37_自助模拟面试开放思路卡.md「思路卡改成思维链」；标记由 public/card-chain.js 的 html 画）
   各处同一套：自助模拟面试的思路卡一栏、导师场次的手机思路卡、落地页首屏舞台、面试记录页和后台的「当时的思路卡」
   - 链竖着走：一步一个框，框和框之间一条带箭头的连线；并列步在同一行并排 2～3 个小框，上下各一道横线把它们分叉、合拢，序号挂在分叉的地方
   - 颜色只用令牌：青色（--pen）只标框边、序号和连线，最后一步（收尾）铺一层淡青；旧外壳的页面（后台）没有 v3 的令牌，退到旧令牌
   - 流式时新出来的一步带 is-new，升上来一下；「减少动态效果」时不动 */
.tc {
  --tc-pen: var(--pen, var(--primary));
  --tc-soft: var(--pen-soft, var(--primary-soft));
  --tc-ink: var(--ink, var(--text));
  --tc-ink-3: var(--ink-3, var(--text-3));
  --tc-bg: var(--sheet, var(--surface));
  --tc-line: color-mix(in srgb, var(--tc-pen) 42%, transparent);
  --tc-gap: 16px;   /* 步和步之间（连线的长度） */
  --tc-rail: 10px;  /* 并列步：横线到小框的距离 */
  --tc-col: 6px;    /* 并列的小框之间 */
  list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); text-align: center;
}
.tc-step { position: relative; margin: 0; padding: 0; list-style: none; }
.tc-step + .tc-step { margin-top: var(--tc-gap); }
/* 连线：上一步的底到这一步的顶；箭头落在这一步的框上 */
.tc-step + .tc-step::before { content: ""; position: absolute; left: 50%; top: calc(-1 * var(--tc-gap)); height: var(--tc-gap); border-left: 1.5px solid var(--tc-line); transform: translateX(-.75px); }
.tc-step + .tc-step::after { content: ""; position: absolute; left: 50%; top: -7.5px; width: 6px; height: 6px; border-right: 1.5px solid var(--tc-line); border-bottom: 1.5px solid var(--tc-line); transform: translateX(-50%) rotate(45deg); }
.tc-step + .tc-step--par::after { display: none; }
.tc-node { position: relative; display: block; min-width: 0; padding: 7px 12px 8px; border: 1px solid var(--tc-line); border-radius: 10px; background: var(--tc-bg); overflow-wrap: anywhere; }
.tc-node b { font-size: 14px; line-height: 1.45; font-weight: 620; letter-spacing: -.005em; color: var(--tc-ink); }
.tc-node small { display: block; margin-top: 1px; font-size: 12px; line-height: 1.45; font-weight: 400; color: var(--tc-ink-3); }
.tc-n { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 6px; border-radius: 50%; background: var(--tc-pen); color: var(--pen-fg, white); font: 600 10.5px/1 var(--mono, ui-monospace, monospace); font-style: normal; vertical-align: 1.5px; }
/* 最后一步是收尾：淡青底、青色实边 */
.tc-step--end .tc-node { border-color: var(--tc-pen); background: color-mix(in srgb, var(--tc-soft) 70%, var(--tc-bg)); }
/* 并列步：上面一道横线分叉、下面一道横线合拢，小框上下各一小段竖线接到横线上；序号压在分叉的那道线中间 */
.tc-fork { position: relative; display: grid; gap: var(--tc-col); padding: var(--tc-rail) 0; align-items: stretch; }
.tc-fork--2 { --tc-n: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tc-fork--3 { --tc-n: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tc-fork::before, .tc-fork::after { content: ""; position: absolute; left: calc((100% - (var(--tc-n) - 1) * var(--tc-col)) / (2 * var(--tc-n))); right: calc((100% - (var(--tc-n) - 1) * var(--tc-col)) / (2 * var(--tc-n))); border-top: 1.5px solid var(--tc-line); }
.tc-fork::before { top: 0; }
.tc-fork::after { bottom: 0; }
.tc-fork .tc-node { padding: 6px 6px 7px; }
.tc-fork .tc-node b { font-size: 13px; }
.tc-fork .tc-node small { font-size: 11.5px; }
.tc-fork .tc-node::before, .tc-fork .tc-node::after { content: ""; position: absolute; left: 50%; height: var(--tc-rail); border-left: 1.5px solid var(--tc-line); transform: translateX(-.75px); }
.tc-fork .tc-node::before { top: calc(-1 * var(--tc-rail) - 1px); }
.tc-fork .tc-node::after { bottom: calc(-1 * var(--tc-rail) - 1px); }
.tc-step--par > .tc-n { position: absolute; z-index: 1; left: 50%; top: 0; margin: 0; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--tc-bg); }
/* 并列步排在最后（提示词不让，万一出现）：下面不再合拢 */
.tc-step--par:last-child .tc-fork { padding-bottom: 0; }
.tc-step--par:last-child .tc-fork::after, .tc-step--par:last-child .tc-node::after { display: none; }
/* 旧卡退化成的链：节点是原来的结构或要点，字多，左对齐 */
.tc--legacy .tc-node { text-align: left; }
.tc--legacy .tc-node b { font-weight: 560; }
/* 流式：新出来的那一步升上来一下 */
.tc-step.is-new { animation: tc-in .34s var(--ease-out, ease-out) both; }
@keyframes tc-in { from { opacity: 0; transform: translateY(6px); } }

/* 导师场次的手机思路卡：字大一号 */
.m-card .tc { --tc-gap: 18px; --tc-rail: 11px; --tc-col: 8px; margin: 14px 0 4px; }
.m-card .tc-node { padding: 10px 14px 11px; border-radius: 12px; }
.m-card .tc-node b { font-size: 17px; }
.m-card .tc-node small { font-size: 14px; margin-top: 2px; }
.m-card .tc-n { width: 20px; height: 20px; font-size: 12px; margin-right: 8px; vertical-align: 2px; }
.m-card .tc-fork .tc-node { padding: 8px 6px 9px; }
.m-card .tc-fork .tc-node b { font-size: 15px; }
.m-card .tc-fork .tc-node small { font-size: 12.5px; }
/* 面试记录页、后台里缩小的那张 */
.m-rc ol.tc, .iv3-card ol.tc, .v3 .iv3-card ol.tc { max-width: 420px; margin: 10px 0; padding: 0; }

/* ---------- 板块 54 · 按题型（docs/板块54_思路卡按题型.md） ----------
   卡的主体：最关键的一句（直接答 / 定义 / 先定性）→ 思维链（只有深度卡）→ 一条条能讲的干货。标记由 card-chain.js 的 html 画
   - 最关键的一句是卡上最重的一行：上面一个小名字（青色），下面一句话（墨色、加重）；定义卡这一句左边带一道青色竖线，像词条
   - 干货：一条一行，行首一小段青色短横，条和条之间一道很淡的线；不用框（框留给思维链）
   - 颜色只用令牌；流式时新出来的那一条升上来一下 */
.tc-lead { --tc-pen: var(--pen, var(--primary)); --tc-ink: var(--ink, var(--text)); margin: 10px 0 0; padding: 0; display: block; text-align: left; }
.tc-lead b { display: block; margin: 0 0 3px; font: 600 11px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .06em; color: var(--tc-pen); }
.tc-lead span { display: block; font-size: 15.5px; line-height: 1.5; font-weight: 620; letter-spacing: -.008em; color: var(--tc-ink); overflow-wrap: anywhere; }
.tc-lead--define { padding-left: 11px; border-left: 2px solid var(--tc-pen); }
.tc-lead + .tc { margin-top: 12px; }
.tc-say { --tc-pen: var(--pen, var(--primary)); --tc-ink-2: var(--ink-2, var(--text-2, var(--text))); --tc-rule: color-mix(in srgb, var(--ink-4, var(--text-3)) 22%, transparent);
  list-style: none; margin: 12px 0 0; padding: 0; text-align: left; }
.tc-say li { position: relative; margin: 0; padding: 6px 0 6px 16px; font-size: 13.5px; line-height: 1.55; color: var(--tc-ink-2); overflow-wrap: anywhere; list-style: none; }
.tc-say li + li { border-top: 1px solid var(--tc-rule); }
.tc-say li::before { content: ""; position: absolute; left: 0; top: calc(6px + .78em - 1px); width: 8px; border-top: 2px solid var(--tc-pen); border-radius: 1px; }
.tc-say li.is-new { animation: tc-in .34s var(--ease-out, ease-out) both; }
/* 导师场次的手机思路卡：字大一号 */
.m-card .tc-lead { margin-top: 12px; }
.m-card .tc-lead b { font-size: 12px; margin-bottom: 4px; }
.m-card .tc-lead span { font-size: 21px; line-height: 1.42; font-weight: 650; }
.m-card .tc-say { margin-top: 14px; }
.m-card .tc-say li { padding: 9px 0 9px 20px; font-size: 16.5px; }
.m-card .tc-say li::before { width: 10px; top: calc(9px + .78em - 1px); }
/* 面试记录页、后台里缩小的那张 */
.m-rc .tc-lead, .iv3-card .tc-lead, .m-rc .tc-say, .iv3-card .tc-say { max-width: 420px; }
.m-rc .tc-lead span, .iv3-card .tc-lead span { font-size: 14.5px; }

@media (prefers-reduced-motion: reduce) {
  .tc-say li.is-new { animation: none; }
  .tc-step.is-new { animation: none; }
}

/* 板块 56 trust · 思路卡上的推断（〔…〕画成 .infer，很轻的虚线）和「面完补上：……」（这道题要一个成果、材料里没有；不打断、不弹窗） */
.infer { text-decoration: underline dotted; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tc-miss { margin: 8px 0 0; display: inline-block; padding: 2px 8px; border: 1px dashed color-mix(in srgb, var(--ink-4, var(--text-3)) 60%, transparent); border-radius: 999px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3, var(--text-3)); }

/* 板块 66 · 逐字稿（docs/板块66_逐字稿提示.md）：一段一块、每段开头的小标题加粗（扫一眼找到说到哪）；〔补：…〕是占位，虚线框，和推断的虚线下划线分开
   现场大卡（.v3 .lv）里字号跟要点一个量级、行距放松，照着念不串行 */
.gl-script { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.gl-script li { margin: 0; padding: 0 0 0 12px; border-left: 2px solid color-mix(in srgb, var(--pen, var(--accent, currentColor)) 35%, transparent); font-size: 16px; line-height: 1.6; color: var(--ink-2, var(--text-2)); overflow-wrap: anywhere; list-style: none; }
.gl-script li b { font-weight: 720; color: var(--ink, var(--text)); }
.gl-script li.is-new { animation: tc-in .34s var(--ease-out, ease-out) both; }
.hole { padding: 0 4px; border: 1px dashed color-mix(in srgb, currentColor 50%, transparent); border-radius: 4px; color: var(--ink-3, var(--text-3)); white-space: nowrap; }
.v3 .lv .gl-script li { font-size: 19px; line-height: 1.55; }
.v3 .lv .gl-script:has(li:nth-child(5)) li { font-size: 17px; }
@media (orientation: landscape) and (max-height: 520px) {
  .v3 .lv .gl .gl-script { grid-column: 1 / -1; margin-top: 6px; gap: 6px; }
  .v3 .lv .gl-script li { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .gl-script li.is-new { animation: none; } }

/* 板块 66 · 提示方式的选项（重点提醒卡 / 逐字稿）：开始前在「真实面试」那一块的开始按钮上面，收音中在「更多」里；小号分段，和面试屏顶上的分段同一种样子 */
.lv-style { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; }
.lv-style__k { font-size: 13px; font-weight: 600; color: var(--ink-3, var(--text-3)); }
.lv-style__seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-2, var(--bg-2)); border: 1px solid var(--rule, var(--border)); }
.lv-style__o { position: relative; margin: 0; cursor: pointer; }
.lv-style__o input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lv-style__o span { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 560; color: var(--ink-3, var(--text-3)); white-space: nowrap; transition: background .16s, color .16s; }
.lv-style__o input:checked + span { background: var(--ink, var(--text)); color: var(--paper, var(--bg)); }
.lv-style__o:hover span { color: var(--ink, var(--text)); }
.lv-style__o input:checked + span:hover { color: var(--paper, var(--bg)); }
.lv-style__o input:focus-visible + span { outline: 2px solid var(--pen, currentColor); outline-offset: 2px; }
.lv-style__tip { flex-basis: 100%; margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3, var(--text-3)); }
.lv-sheet .lv-style { margin: 0; }
.lv-restyle { margin: 10px 0 0; }
@media (prefers-reduced-motion: reduce) { .lv-style__o span { transition: none; } }
