@layer thinking-craft {
/* ===== 015 · 沉思（Thinking）· 编年流 =======================================
   来源：`/Users/fred/Documents/site-design-explorations/concept-refined-craft/`
         thinking.html + style.css 的 3810–4175 行（THINKING 专属样式系统）。
   Fred 2026-08-22：「复制过来 原封不动。不过漫游沉思那种视图就直接用现成的。」

   这份表管**编年流（TIMELINE）**：页头、分类标签、时间线本体。
   ⚠️ 2026-09-12 起沉思页**只有这一个视图**。Fred：「把漫游沉思给去掉。整个 UI 给去掉
   切换入口什么的也去掉。然后 编年 不支持点击查看详情。点击查看详情的旧样式删干净。」
   删掉的：漫游沉思整套（`public/css/meditation-concept.css` 整个文件）、
   TIMELINE / CANVAS 切换键（`.thinking-view-switcher/-btn`，含手机两档里的）、
   可点的正文按钮 `.figma-entry-open` 和 96 字摘要 `.figma-entry-more`、
   「打开阅读浮层时编年流退到景深之外」那组 `.is-reading` 模糊、浮层里的来源卡
   `.note-source-card/-host`。每条现在直接画全文 —— 见下面的 `.figma-entry-body`。

   三处对齐（不是改设计，是把参考稿里写死的值换成站里同义的令牌）：
    · `--bg-paper`  → 站里叫 `--bg-page`（014 定义，深浅两套都有）；
    · 参考稿里 `ui-monospace, SFMono-Regular, …` 的字面量 → `var(--font-mono)`，
      全站等宽只有一处权威（现在是 Google Sans Code）；
    · `.thinking-figma-tab.active` 等处参考稿写了 `!important` —— 那是它自己
      一份表里防串味用的。这里整份在 `thinking-craft` 层内、选择器又都带
      `body.page-notes`，不需要 `!important`，去掉。

   ⚠️ 作用域一律带 `body.page-notes`：`.figma-*` 这种名字太通用，
   不圈住迟早会咬到别的页面。
   ⚠️ 底盘（`.grand-container` / 排印令牌）在 012 里，靠路由传的
   `bodyClass: 'craft-collection'` 挂上 —— 那一条不能删，删了整页裸奔。
   ========================================================================== */

body.public-body.page-notes {
  /* 参考稿的 --bg-paper 就是站里的 --bg-page（014 里定义，随主题翻）。 */
  --bg-paper: var(--bg-page);
}

/* ── 页头：只剩最大的那行字 + 一条控制栏 ───────────────────────────────── */

body.page-notes .thinking-header-hero {
  margin-bottom: 28px;
  padding-bottom: 24px;
}

/* 和 `.gal-main-title` / `.archive-main-title` / `.public-page-title` 逐字相同。
   参考稿 concept-refined-craft 里这一条本来是 400 / clamp(48px,6vw,76px) / -0.02em，
   而拾遗和文稿是 700 / clamp(38px,5.2vw,64px) / -0.025em —— 三个页头两套写法。
   2026-08-24 Fred 拿三张标题并排看完：「沉思好像也不太对劲。用 gallery 和 writing
   那边的样子。」全站四个页头至此是同一个字面。
   （参考稿那边是它自己的探索稿，不是圣旨；站里要的是一致。） */
body.page-notes .thinking-main-title {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
  color: var(--ink-main);
  margin: 0 0 28px;
  letter-spacing: -0.025em;
}

body.page-notes .thinking-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 36px;
}

body.page-notes .thinking-figma-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

body.page-notes .thinking-figma-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.page-notes .thinking-figma-tab:hover {
  border-color: var(--ink-main);
  color: var(--ink-main);
}

body.page-notes .thinking-figma-tab.active {
  background: var(--ink-main);
  border-color: var(--ink-main);
  color: var(--c-porcelain, #EDE7DE);
}

html[data-theme="dark"] body.page-notes .thinking-figma-tab.active {
  background: var(--ink-main);
  border-color: var(--ink-main);
  color: var(--bg-page);
}

/* ── 编年流 ──────────────────────────────────────────────────────────────── */

body.page-notes .figma-timeline-stage {
  max-width: 820px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

body.page-notes .figma-date-group {
  position: relative;
}

body.page-notes .figma-date-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

body.page-notes .figma-date-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-main);
  letter-spacing: -0.01em;
}

body.page-notes .figma-date-sub {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

body.page-notes .figma-date-sub.today {
  color: var(--topic-sierra);
  font-weight: 600;
}

body.page-notes .figma-entries-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 90px;
  /* 同上：容器自己也得让得动，否则子元素断了词、这一层的 min-content 还卡着。 */
  min-width: 0;
}

body.page-notes .figma-entries-list::before {
  content: '';
  position: absolute;
  left: 64px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--ink-line);
}

body.page-notes .figma-entry-item {
  position: relative;
  /* ⚠️ **沉思的正文是原样的手记，里面会有断不开的长串**（贴进来的链接、
     `[spotify]https://open.spotify.com/track/26I8Se3pMUKf56A2NAL9va?si=…`）。
     默认 `overflow-wrap: normal` 下，那一整串就是一个不可分割的词：
     min-content 宽度被它顶到 478px，一路往上传到时间轴容器（504px），
     而 viewport meta 是 `width=device-width, initial-scale=1` ——
     浏览器为了容下它把**布局视口整个撑大**（375 的屏实测 innerWidth = 524）。
     症状不是「有一行超出去」，是**整页被缩小**，全站的字跟着一起变小。
     Fred 2026-08-30：「如果那个沉思字太多了，可以缩放整个页面。无语。」
     `anywhere`（不是 `break-word`）才会同时把它计进 min-content ——
     `break-word` 只在**实际排版**时断，min-content 仍按整词算，撑大照旧发生。
     `min-width: 0` 是另一半：这些块在 flex 容器里，默认最小尺寸是内容的
     min-content，不许收缩。两条缺一不可。 */
  min-width: 0;
  overflow-wrap: anywhere;
}

body.page-notes .figma-entry-time {
  position: absolute;
  left: -90px;
  top: 2px;
  width: 50px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

body.page-notes .figma-entry-dot {
  position: absolute;
  left: -29px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-line);
  border: 1px solid var(--bg-paper);
  transition: transform 0.2s ease, background 0.2s ease;
}

body.page-notes .figma-entry-dot.accent-dot {
  background: #a9afe0;
}

body.page-notes .figma-entry-dot.hollow-dot {
  background: var(--bg-paper);
  border: 1.5px solid var(--ink-muted);
}

body.page-notes .figma-entry-dot.green-dot {
  background: #dfe3b0;
}

body.page-notes .figma-entry-item:hover .figma-entry-dot {
  transform: scale(1.3);
  background: var(--ink-main);
}

body.page-notes .figma-entry-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

body.page-notes .figma-entry-tag-highlight {
  color: var(--topic-sierra);
  font-weight: 500;
}

body.page-notes .figma-entry-content {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-main);
  margin: 0;
}

body.page-notes .figma-entry-content.quote-text {
  font-style: italic;
  font-size: 19px;
  line-height: 1.7;
}

body.page-notes .figma-quote-author {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ink-muted);
  margin-top: 6px;
}

body.page-notes .figma-entry-photo {
  margin-top: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--ink-line);
  overflow: hidden;
  max-width: 580px;
}

body.page-notes .figma-entry-photo img {
  width: 100%;
  height: auto;
  display: block;
}

body.page-notes .figma-photo-foot {
  display: flex;
  align-items: center;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-muted);
}

body.page-notes .figma-link-pill-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid var(--ink-line);
  background: rgba(0, 0, 0, 0.015);
  text-decoration: none;
  color: var(--ink-main);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  max-width: 580px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

html[data-theme="dark"] body.page-notes .figma-link-pill-box {
  background: rgba(255, 255, 255, 0.02);
}

body.page-notes .figma-link-pill-box:hover {
  border-color: var(--ink-main);
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] body.page-notes .figma-link-pill-box:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.page-notes .figma-heart-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-muted);
  cursor: pointer;
  margin-top: 8px;
  padding: 2px 0;
  transition: color 0.2s ease;
}

body.page-notes .figma-heart-btn:hover,
body.page-notes .figma-heart-btn.liked {
  color: var(--c-peony);
}

body.page-notes .figma-heart-btn[disabled] {
  cursor: default;
  opacity: 0.6;
}

body.page-notes .figma-entry-end-item {
  margin-top: 8px;
}

body.page-notes .figma-entry-end-item .figma-entry-dot {
  width: 5px;
  height: 5px;
  left: -28px;
  top: 6px;
  background: var(--ink-line);
}

body.page-notes .figma-entry-end-text {
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* ── 站里补的三样（参考稿没有，但真数据需要） ──────────────────────────── */

/* ── 一条沉思的全文（2026-09-12）───────────────────────────────────────
   原来这里是可点的正文按钮 + 96 字摘要，全文在阅读浮层里；浮层删了，全文直接画在这。
   这块同时挂着全站通用的 `.prose`（003）—— 图片、代码块、脚注、链接那些富内容的处理
   都从那儿来；这里只把它的「文章尺度」收成「一条沉思的尺度」：
     · 有标题时，正文接在标题下面，用次一级的颜色（和原来那行摘要一样的层级）；
       没标题时正文自己就是那句念头，用主色、和标题同字号；
     · 段距从文章的 1.25em 收到 0.6em，首尾不留外边距；
     · 小标题压回正文大小（`.prose h2` 是 28–38px 的展示字，放在一条沉思里太吵）；
     · 引用块去掉 `.prose` 那块圆角底色（Fred 09-11：「不要任何气泡」），只留左边一条墨色竖线；
     · 链接、代码、表格、分割线的**样子**和文章页共用 012 那一段（「元素语汇」），这里只管尺度。 */
body.page-notes .figma-entry-body {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-main);
  overflow-wrap: anywhere;
}
body.page-notes .figma-entry-content + .figma-entry-body {
  margin-top: 6px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-secondary);
}
body.page-notes .figma-entry-body > :first-child { margin-top: 0; }
body.page-notes .figma-entry-body > :last-child { margin-bottom: 0; }
body.page-notes .figma-entry-body :is(p, ul, ol, pre, table, figure, .table-scroll) { margin: 0.6em 0; }
body.page-notes .figma-entry-body :is(h1, h2, h3, h4, h5, h6) {
  margin: 1em 0 0.35em;
  font-family: var(--font-serif);
  font-size: 1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-main);
}
/* 引用块跟文章页同一个语汇：一条墨色竖线、不倾斜。原来这里写了 italic ——
   中文没有斜体字形，浏览器是把字硬拧斜的；竖线还是 003 那条淡紫。 */
body.page-notes .figma-entry-body blockquote {
  margin: 0.8em 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--ink-main);
  border-radius: 0;
  background: none;
  font-style: normal;
  color: inherit;
}
body.page-notes .figma-entry-body blockquote::before {
  content: none;
  display: none;
}
body.page-notes .figma-entry-body li > :is(ul, ol) { margin: 0.3em 0 0; }
body.page-notes .figma-entry-body li > p { margin: 0; }
/* 代码块 13px，里面的 code 不再乘 003 的 0.9em —— 那样是 11.7px，低于手机上的 12px 下限。 */
body.page-notes .figma-entry-body pre { font-size: 13px; }
body.page-notes .figma-entry-body pre code { font-size: inherit; }
body.page-notes .figma-entry-body hr { margin: 1.2em 0; }
body.page-notes .figma-entry-body img {
  max-width: 100%;
  height: auto;
  margin: 0.8em auto;
}

/* 分类筛完一条不剩时的提示。平时 display:none —— 所以要 no-reveal，
   否则渐进显示的观察器碰不到它，打开时还停在 opacity:0（等于没提示）。 */
body.page-notes .figma-timeline-empty {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-muted);
  padding: 40px 0 60px;
  text-align: center;
}

/* 翻页 */
body.page-notes .thinking-pager {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding-bottom: 60px;
}

body.page-notes .thinking-pager a,
body.page-notes .thinking-pager span {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-secondary);
  border: 1px solid var(--ink-line);
  padding: 8px 18px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

body.page-notes .thinking-pager a:hover {
  border-color: var(--ink-main);
  color: var(--ink-main);
}

body.page-notes .thinking-pager span {
  color: var(--ink-muted);
  border-color: transparent;
}

/* ⚠️ 分类筛选会把整组 `hidden` 掉，而 `.figma-date-group` 自己写了 display ——
   **作者的 display 压得过 UA 那条 `[hidden] { display: none }`**，不补这一条筛不掉。
   （原来这里还有 `.figma-timeline-stage[hidden]` / `.thinking-pager[hidden]`，
   是切到漫游视图时藏编年流用的；漫游视图删了，没有东西再把它们藏起来。） */
body.page-notes .figma-date-group[hidden] {
  display: none;
}

/* ── 手机 ──────────────────────────────────────────────────────────────
   参考稿这一段没有响应式（它只按桌面画）。时间刻度绝对定位在 -90px 上，
   375px 宽的屏幕上左边根本放不下这 90px 的槽 —— 所以手机上把时间挪进
   meta 那一行，竖线和圆点跟着往左收。 */
@media (max-width: 640px) {
  body.page-notes .figma-entries-list {
    padding-left: 26px;
    gap: 24px;
  }

  body.page-notes .figma-entries-list::before {
    left: 3px;
  }

  body.page-notes .figma-entry-dot,
  body.page-notes .figma-entry-end-item .figma-entry-dot {
    left: -26px;
  }

  body.page-notes .figma-entry-time {
    position: static;
    display: inline-block;
    width: auto;
    text-align: left;
    margin-bottom: 4px;
  }

  body.page-notes .thinking-controls-row {
    gap: 12px;
  }
}

/* ── 手机端的点击手感（2026-08-28，scripts/mobile-probe.js 量出来的）────────
   桌面用鼠标，几像素的误差无所谓；手指的接触面是 8–10mm，两个小目标挨在一起
   就一定会点错。这里只动**盒子**，字号、颜色、边框一个都没碰。
     · 分类 chip 原来 65×35、彼此 6px       → 高 44、间距 8
     （原来还有 TIMELINE / CANVAS 切换键那一条，2026-09-12 随漫游视图一起删了。） */
@media (max-width: 768px) {
  body.page-notes .thinking-figma-tabs { gap: 8px; }
  body.page-notes .thinking-figma-tab { min-height: 44px; }
}
}
