/* 《思考，快与慢》2026-10-17 新增：对应 Artifact Temp/261017-思考快与慢-Artifact/thinking-fast-and-slow.html（概览卡＋2+2／17×24 两道算式题图、三组对立概念、正文内目录、五部分＋结语；价值函数与冰手实验两张 SVG 示意图）。
   全部限定在 .thinking-fast-and-slow-notes 内，类前缀 tfs-；小程序样式在 miniprogram/build_reading_notes.py 的 CLASS_STYLES（tfs-*）。
   青绿＝系统1／规避风险，琥珀（--tfs-slow）＝系统2／偏好风险，只用在这两处。 */
.thinking-fast-and-slow-notes {
  --tfs-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --tfs-slow: #f2b56b;
  --tfs-slow-tint: rgba(242, 181, 107, .1);
  max-width: 44em;
  font-size: 16.5px;
  line-height: 1.9;
}
.thinking-fast-and-slow-notes p { margin-bottom: 1.1em; }
.thinking-fast-and-slow-notes strong { color: var(--white); font-weight: 700; }

/* ---------- 全书概览（右侧两道算式：上面一眼出答案，下面要等一会儿） ---------- */
.thinking-fast-and-slow-notes .tfs-overview {
  display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: center;
  padding: 26px 28px; background: var(--light-navy); border: 1px solid var(--lightest-navy); border-radius: 12px;
}
.thinking-fast-and-slow-notes .tfs-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 500; letter-spacing: .18em; color: var(--green); }
.thinking-fast-and-slow-notes .tfs-overview-title { margin: 0 0 14px; font-family: var(--tfs-serif); font-size: 21px; font-weight: 900; line-height: 1.45; color: var(--white); }
.thinking-fast-and-slow-notes .tfs-overview-lead { margin: 0; color: var(--lightest-slate); }

.thinking-fast-and-slow-notes .tfs-duo { display: grid; gap: 10px; }
.thinking-fast-and-slow-notes .tfs-eq {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px;
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--lightest-navy); background: var(--navy);
}
.thinking-fast-and-slow-notes .tfs-eq-who { font-size: 12px; letter-spacing: .12em; line-height: 1.4; }
.thinking-fast-and-slow-notes .tfs-eq-who small { display: block; color: var(--slate); letter-spacing: .04em; font-size: 11px; }
.thinking-fast-and-slow-notes .tfs-eq-fast .tfs-eq-who { color: var(--green); }
.thinking-fast-and-slow-notes .tfs-eq-slow .tfs-eq-who { color: var(--tfs-slow); }
.thinking-fast-and-slow-notes .tfs-eq b {
  font-size: 21px; font-weight: 500; color: var(--white); text-align: right;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.thinking-fast-and-slow-notes .tfs-eq em { font-style: normal; }
.thinking-fast-and-slow-notes .tfs-eq-fast em { color: var(--green); }
.thinking-fast-and-slow-notes .tfs-eq-slow em { color: var(--tfs-slow); display: inline-grid; }
.thinking-fast-and-slow-notes .tfs-eq-slow em > span { grid-area: 1 / 1; }
.thinking-fast-and-slow-notes .tfs-wait { animation: tfs-wait 5s ease-in-out infinite; }
.thinking-fast-and-slow-notes .tfs-ans { opacity: 0; animation: tfs-ans 5s ease-in-out infinite; }
@keyframes tfs-wait { 0%, 58% { opacity: 1; } 64%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes tfs-ans  { 0%, 58% { opacity: 0; } 64%, 94% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .thinking-fast-and-slow-notes .tfs-wait { animation: none; opacity: 0; }
  .thinking-fast-and-slow-notes .tfs-ans { animation: none; opacity: 1; }
}

/* ---------- 三组对立概念 ---------- */
.thinking-fast-and-slow-notes .tfs-pairs { margin: 26px 0 0; }
.thinking-fast-and-slow-notes .tfs-pairs-title { margin: 0 0 10px; font-size: 14px; letter-spacing: .08em; color: var(--slate); }
.thinking-fast-and-slow-notes .tfs-pair-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.thinking-fast-and-slow-notes .tfs-pair {
  display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--lightest-navy); border-radius: 10px; line-height: 1.5;
}
.thinking-fast-and-slow-notes .tfs-pair small { font-size: 12px; letter-spacing: .1em; color: var(--slate); }
.thinking-fast-and-slow-notes .tfs-pair b { font-size: 15.5px; color: var(--white); }

/* ---------- 正文内目录 ---------- */
.thinking-fast-and-slow-notes .tfs-toc {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin: 22px 0 0; padding: 18px 0 2px; border-top: 1px solid var(--lightest-navy);
}
.thinking-fast-and-slow-notes .tfs-toc-item {
  display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; border: 1px solid var(--lightest-navy);
  border-radius: 6px; font-size: 14px; line-height: 1.4; color: var(--light-slate); transition: border-color .15s, color .15s;
}
.thinking-fast-and-slow-notes .tfs-toc-no { font-size: 12px; color: var(--green); }
.thinking-fast-and-slow-notes .tfs-toc-item:hover,
.thinking-fast-and-slow-notes .tfs-toc-item:focus-visible { border-color: var(--green); color: var(--white); outline: none; }

/* ---------- 部分 ---------- */
.thinking-fast-and-slow-notes .tfs-part { margin-top: 64px; scroll-margin-top: 24px; }
.thinking-fast-and-slow-notes .tfs-part-head { padding-bottom: 12px; margin: 0 0 18px; border-bottom: 1px solid var(--lightest-navy); }
.thinking-fast-and-slow-notes .tfs-part-no { margin: 0 0 2px; font-size: 13px; letter-spacing: .18em; color: var(--green); }
.thinking-fast-and-slow-notes .tfs-part-title { margin: 0; font-family: var(--tfs-serif); font-size: 25px; font-weight: 900; line-height: 1.4; color: var(--white); }
.thinking-fast-and-slow-notes .tfs-subtitle { margin: 34px 0 12px; font-size: 17px; font-weight: 700; color: var(--white); letter-spacing: .04em; }

.thinking-fast-and-slow-notes .tfs-items { list-style: none; display: grid; gap: 12px; margin: 0 0 1.1em; }
.thinking-fast-and-slow-notes .tfs-items li { padding-left: 16px; border-left: 2px solid var(--lightest-navy); }

/* 系统1／系统2 对照卡 */
.thinking-fast-and-slow-notes .tfs-systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 1.4em; }
.thinking-fast-and-slow-notes .tfs-sys { padding: 18px 18px 16px; border: 1px solid var(--lightest-navy); border-radius: 10px; background: var(--light-navy); }
.thinking-fast-and-slow-notes .tfs-sys-head { margin: 0 0 10px; line-height: 1.5; }
.thinking-fast-and-slow-notes .tfs-sys-head b { display: block; font-size: 20px; }
.thinking-fast-and-slow-notes .tfs-sys-head span { font-size: 13px; color: var(--slate); }
.thinking-fast-and-slow-notes .tfs-sys-1 .tfs-sys-head b { color: var(--green); }
.thinking-fast-and-slow-notes .tfs-sys-2 .tfs-sys-head b { color: var(--tfs-slow); }
.thinking-fast-and-slow-notes .tfs-sys-list { display: grid; gap: 10px; }
.thinking-fast-and-slow-notes .tfs-sys-list dt { font-size: 12px; letter-spacing: .14em; color: var(--slate); }
.thinking-fast-and-slow-notes .tfs-sys-list dd { font-size: 15.5px; line-height: 1.8; }

/* 七种偏见 */
.thinking-fast-and-slow-notes .tfs-biases { display: grid; margin: 4px 0 0; }
.thinking-fast-and-slow-notes .tfs-bias {
  display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--lightest-navy);
}
.thinking-fast-and-slow-notes .tfs-bias:last-child { border-bottom: 1px solid var(--lightest-navy); }
.thinking-fast-and-slow-notes .tfs-bias-name { font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--white); }
.thinking-fast-and-slow-notes .tfs-bias-body p { margin: 0; }
.thinking-fast-and-slow-notes .tfs-case { margin-top: 8px !important; font-size: 15px; line-height: 1.85; color: var(--slate); }
.thinking-fast-and-slow-notes .tfs-case-tag {
  display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 4px;
  font-size: 12px; letter-spacing: .1em; line-height: 1.6; color: var(--green); background: var(--green-tint); border: 1px solid rgba(100, 255, 218, .25);
}

/* 专家直觉两个条件 */
.thinking-fast-and-slow-notes .tfs-conds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 1.1em; }
.thinking-fast-and-slow-notes .tfs-cond { padding: 14px 16px; border: 1px solid var(--lightest-navy); border-radius: 10px; background: var(--light-navy); line-height: 1.6; }
.thinking-fast-and-slow-notes .tfs-cond-no { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .14em; color: var(--green); }

/* 内部／外部意见、经验／记忆自我 */
.thinking-fast-and-slow-notes .tfs-vs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--lightest-navy); border-radius: 10px; overflow: hidden; margin: 0 0 1.2em;
}
.thinking-fast-and-slow-notes .tfs-vs-side { padding: 14px 16px; }
.thinking-fast-and-slow-notes .tfs-vs-side + .tfs-vs-side { border-left: 1px solid var(--lightest-navy); }
.thinking-fast-and-slow-notes .tfs-vs-good { background: var(--green-tint); }
.thinking-fast-and-slow-notes .tfs-vs-side strong { display: block; margin-bottom: 4px; }
.thinking-fast-and-slow-notes .tfs-vs-side p { margin: 0; font-size: 15.5px; line-height: 1.8; }

.thinking-fast-and-slow-notes .tfs-quote {
  margin: 0 0 1.3em; padding: 4px 0 4px 18px; border-left: 3px solid var(--green);
  font-family: var(--tfs-serif); color: var(--white); line-height: 1.85;
}
.thinking-fast-and-slow-notes .tfs-quote p { margin: 0; }
.thinking-fast-and-slow-notes .tfs-quote cite { display: block; margin-top: 6px; font-family: inherit; font-style: normal; font-size: 13px; color: var(--slate); }

/* 编号规律（前景理论三规律、记忆自我两定律） */
.thinking-fast-and-slow-notes .tfs-rules { display: grid; gap: 12px; margin: 0 0 1.1em; }
.thinking-fast-and-slow-notes .tfs-rule { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: 8px; }
.thinking-fast-and-slow-notes .tfs-rule-no { font-family: var(--tfs-serif); font-weight: 900; font-size: 26px; line-height: 1.25; color: var(--green); }
.thinking-fast-and-slow-notes .tfs-rule p { margin: 0; }

/* 两张示意图 */
.thinking-fast-and-slow-notes .tfs-figure { margin: 26px 0 28px; }
.thinking-fast-and-slow-notes .tfs-chart { display: block; width: 100%; max-width: 520px; height: auto; }
.thinking-fast-and-slow-notes figcaption { margin-top: 10px; font-size: 14px; line-height: 1.8; color: var(--slate); }
.thinking-fast-and-slow-notes figcaption strong { color: var(--light-slate); }
.thinking-fast-and-slow-notes .tfs-ax { stroke: var(--slate); stroke-width: 1; fill: none; }
.thinking-fast-and-slow-notes .tfs-gain { stroke: var(--green); stroke-width: 3; fill: none; stroke-linecap: round; }
.thinking-fast-and-slow-notes .tfs-loss { stroke: var(--tfs-slow); stroke-width: 3; fill: none; stroke-linecap: round; }
.thinking-fast-and-slow-notes .tfs-dot { fill: var(--white); }
.thinking-fast-and-slow-notes .tfs-lbl { fill: var(--slate); font-size: 12px; }
.thinking-fast-and-slow-notes .tfs-lbl-g { fill: var(--green); font-size: 13px; }
.thinking-fast-and-slow-notes .tfs-lbl-l { fill: var(--tfs-slow); font-size: 13px; }
.thinking-fast-and-slow-notes .tfs-bar-short { fill: var(--tfs-slow); }
.thinking-fast-and-slow-notes .tfs-bar-long { fill: url(#tfs-fade); }

/* 四重模式 2×2 */
.thinking-fast-and-slow-notes .tfs-four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 1.4em; }
.thinking-fast-and-slow-notes .tfs-four-cell { padding: 12px 14px; border: 1px solid var(--lightest-navy); border-radius: 10px; line-height: 1.6; }
.thinking-fast-and-slow-notes .tfs-four-cell small { display: block; font-size: 12px; letter-spacing: .1em; color: var(--slate); }
.thinking-fast-and-slow-notes .tfs-four-cell strong { display: block; font-size: 16px; }
.thinking-fast-and-slow-notes .tfs-four-cell p { margin: 0; font-size: 14.5px; }
.thinking-fast-and-slow-notes .tfs-avoid strong { color: var(--green); }
.thinking-fast-and-slow-notes .tfs-seek { background: var(--tfs-slow-tint); }
.thinking-fast-and-slow-notes .tfs-seek strong { color: var(--tfs-slow); }

/* 结语三条启示 */
.thinking-fast-and-slow-notes .tfs-lessons { display: grid; gap: 20px; }
.thinking-fast-and-slow-notes .tfs-lesson { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 10px; }
.thinking-fast-and-slow-notes .tfs-lesson-no { font-family: var(--tfs-serif); font-weight: 900; font-size: 30px; line-height: 1.15; color: var(--green); opacity: .85; font-variant-numeric: tabular-nums; }
.thinking-fast-and-slow-notes .tfs-lesson-title { margin: 0 0 2px; font-size: 16.5px; font-weight: 700; color: var(--white); }
.thinking-fast-and-slow-notes .tfs-lesson p { margin: 0; }

@media (max-width: 900px) {
  .thinking-fast-and-slow-notes .tfs-overview { grid-template-columns: 1fr; }
  .thinking-fast-and-slow-notes .tfs-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .thinking-fast-and-slow-notes { font-size: 16px; }
  .thinking-fast-and-slow-notes .tfs-overview { padding: 20px 18px; gap: 18px; }
  .thinking-fast-and-slow-notes .tfs-eq { grid-template-columns: 1fr; row-gap: 4px; padding: 10px 12px; }
  .thinking-fast-and-slow-notes .tfs-eq b { font-size: 18px; text-align: left; }
  .thinking-fast-and-slow-notes .tfs-pair-list,
  .thinking-fast-and-slow-notes .tfs-systems,
  .thinking-fast-and-slow-notes .tfs-conds { grid-template-columns: 1fr; }
  .thinking-fast-and-slow-notes .tfs-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thinking-fast-and-slow-notes .tfs-part-title { font-size: 22px; }
  .thinking-fast-and-slow-notes .tfs-bias { grid-template-columns: 1fr; gap: 6px; }
  .thinking-fast-and-slow-notes .tfs-vs { grid-template-columns: 1fr; }
  .thinking-fast-and-slow-notes .tfs-vs-side + .tfs-vs-side { border-left: 0; border-top: 1px solid var(--lightest-navy); }
  .thinking-fast-and-slow-notes .tfs-four-cell { padding: 10px 12px; }
  .thinking-fast-and-slow-notes .tfs-lesson { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .thinking-fast-and-slow-notes .tfs-lesson-no { font-size: 24px; }
}
