@layer collection-craft {

/* ==========================================================================
   拾遗三页 + 文稿全集 —— 2026-08-21 按 Fred 的设计稿 concept-refined-craft
   原样搬过来。**这份 CSS 是从参考稿 style.css 逐条复制的，不是我重写的**，
   和 011 / 012 一样：行距、字号、线粗、留白全按原值。

   页面对应关系：
     archive.html       → /articles      （文稿全集，body.page-articles）
     gallery.html       → /shiyi         （相册总览，body.page-gallery）
                        → /shiyi/all     （全部单张，body.page-gallery-all）
     gallery-story.html → /shiyi/:slug   （相册详情，body.page-album）

   来源行号（参考稿 style.css，2026-08-21 那份 3760 行的版本 ——
   HANDOFF 里写的「2509 行」是 Fred 加进相册与归档两节之前的旧数字）：
     2198–2207  右侧 sticky 侧栏
     2416–3060  文稿全集（看板 / 筛选条 / 封面特辑 / 编年流 / 热度条 / 三个侧栏组件）
     3062–3197  响应式
     3199–3760  拾遗（双视图 / hover 遮罩 / 灯箱 / 相册详情 / 印样 / 照片目录）

   **作用域是 body.craft-collection**（路由传 bodyClass，见 partials/header.ejs）。
   底盘 —— .grand-container / .article-nav-top / .grand-article-layout /
   .grand-article-header / .grand-article-title / .article-meta-plain /
   .prose-grand / .grand-browse-* / .article-end-palette 与那一整块设计令牌 ——
   **不在这份表里**：它们在 012-article-craft.css，那边的作用域 2026-08-21 扩成了
   `:is(body.page-article, body.craft-collection)`。参考稿里这些本来就是五个页面
   共用的全局件，所以是扩作用域，不是抄第二份。改底盘 = 同时改文章页，先想清楚。

   层排在 comment-craft 之后、rail 之前：要压得过 003-listing-pages.css 与
   006-article-pages.css 的旧列表样式，但压不过全站 chrome（竖栏 / 菜单）。
   ========================================================================== */

/* ============================================================
   STICKY ASIDE  (concept-refined-craft/style.css 2198–2207)
   ============================================================ */

/* ==========================================================================
   STICKY TOC (TABLE OF CONTENTS)
   ========================================================================== */

/* ============================================================
   ARCHIVE & WRITINGS COLLECTION  (concept-refined-craft/style.css 2416–3060)
   ============================================================ */

/* ==========================================================================
   🌟 ARCHIVE & WRITINGS COLLECTION (文稿全集与编年史高密度杂志排印)
   ========================================================================== */
/* 头部看板与导引。
   2026-08-22：`.archive-kicker`（含 .cat-dot）和 `.archive-lead-desc` 三条规则一起删了
   —— /articles 的页头改成只留 h1 之后它们零消费者。翻译键 `archive.lead` 同时下架。 */
body.craft-collection .archive-header-hero {
  margin-bottom: 32px;
}
body.craft-collection .archive-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);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
/* 出版级高密度数据看板 (4 格直角墨线网格) */
body.craft-collection .archive-meta-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  margin-bottom: 36px;
}
body.craft-collection .archive-stat-box {
  background: var(--bg-page);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.craft-collection .archive-stat-num {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink-main);
}
body.craft-collection .archive-stat-label {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
/* 分类筛选工具栏 (调色盘色块 + 直角 Hover 纯黑边框) */
body.craft-collection .archive-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 16px;
  border-top: 1px solid var(--ink-main);
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
body.craft-collection .archive-filter-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
body.craft-collection .archive-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  border-radius: 0;
  transition: all 0.2s ease;
}
body.craft-collection .filter-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 0;
  flex-shrink: 0;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(30, 28, 25, 0.16);
}
html[data-theme="dark"] body.craft-collection .filter-chip-dot,
body.craft-collection.dark-mode .filter-chip-dot {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
body.craft-collection .archive-filter-btn:hover {
  border-color: var(--ink-main);
  color: var(--ink-main);
}
body.craft-collection .archive-filter-btn.active {
  background: var(--ink-main);
  color: var(--c-porcelain);
  border-color: var(--ink-main);
}
body.craft-collection .archive-filter-btn.active .filter-chip-dot {
  box-shadow: 0 0 0 1px var(--c-porcelain);
}
/* 🌟 封面特辑 (Featured Cover Story) */
body.craft-collection .archive-featured-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  padding: 24px;
  border: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, 0.45);
  margin-bottom: 44px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
html[data-theme="dark"] body.craft-collection .archive-featured-card,
body.dark-mode body.craft-collection .archive-featured-card {
  background: rgba(255, 255, 255, 0.03);
}
body.craft-collection .archive-featured-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink-main);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}
body.craft-collection .archive-featured-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
body.craft-collection .archive-featured-thumb img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  max-height: 220px;
  object-fit: cover;
  display: block;
}
body.craft-collection .archive-featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink-main);
  color: var(--ink-inverse);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  text-transform: uppercase;
}
body.craft-collection .archive-featured-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
body.craft-collection .archive-featured-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
body.craft-collection .archive-featured-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-main);
  line-height: 1.25;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
body.craft-collection .archive-featured-card:hover .archive-featured-title {
  color: var(--topic-sierra);
}
body.craft-collection .archive-featured-desc {
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}
body.craft-collection .archive-featured-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
/* 🌟 年度编年流 (Year Stream Title) */
body.craft-collection .archive-year-group {
  margin-bottom: 48px;
}
body.craft-collection .archive-year-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 12px;
  margin-top: 24px;
}
body.craft-collection .archive-year-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--ink-main);
  letter-spacing: -0.02em;
  line-height: 1;
}
body.craft-collection .archive-year-count {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
/* 🌟 文章行条目 (Flexible Thumbnail + Content) */
body.craft-collection .archive-dense-stream {
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.craft-collection .archive-story-row {
  display: flex;
  gap: 24px;
  padding: 22px 12px;
  border-bottom: 1px solid var(--ink-line);
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
  position: relative;
  transition: background 0.2s ease, padding-left 0.2s ease;
}
body.craft-collection .archive-story-row:hover {
  background: rgba(30, 28, 25, 0.025);
  padding-left: 18px;
}
html[data-theme="dark"] body.craft-collection .archive-story-row:hover,
body.dark-mode body.craft-collection .archive-story-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
body.craft-collection .archive-story-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ink-main);
  opacity: 0;
  transition: opacity 0.2s ease;
}
body.craft-collection .archive-story-row:hover::before {
  opacity: 1;
}
/* 日期列 */
body.craft-collection .story-date {
  width: 68px;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  padding-top: 3px;
}
/* 可选配图 (放大尺寸，右下扩展至与底部元数据行平齐) */
body.craft-collection .story-thumb-box {
  width: 184px;
  height: 118px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink-line);
}
body.craft-collection .story-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
body.craft-collection .archive-story-row:hover .story-thumb-box img {
  transform: scale(1.05);
}
/* 内容主体 (与配图高度自适应对齐) */
body.craft-collection .story-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 118px;
}
body.craft-collection .story-category-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
body.craft-collection .category-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 0;
  flex-shrink: 0;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(30, 28, 25, 0.16);
}
html[data-theme="dark"] body.craft-collection .category-chip-dot,
body.craft-collection.dark-mode .category-chip-dot {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
body.craft-collection .story-title {
  font-family: var(--font-serif);
  font-size: 20.5px;
  font-weight: 600;
  color: var(--ink-main);
  line-height: 1.35;
  transition: color 0.2s ease;
  margin-top: 1px;
}
body.craft-collection .archive-story-row:hover .story-title {
  color: var(--topic-sierra);
}
body.craft-collection .story-dek {
  font-family: var(--font-serif);
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.58;
  margin-top: 2px;
  margin-bottom: 6px;
}
body.craft-collection .story-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-wrap: wrap;
  margin-top: auto;
}
body.craft-collection .story-heart-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-muted);
}
/* 🌟 热度进度条 + 全站中位数基准刻度线
   横条 = 这篇的阅读量 ÷ 全站最高；竖线 = 全站中位数在同一把尺上的位置。
   口径与「为什么是中位数不是平均数」写在 routes/front.js 的 buildWritingsArchive() 里。 */
body.craft-collection .heat-bar-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
}
body.craft-collection .heat-bar-track {
  width: 64px;
  height: 4px;
  background: rgba(43, 40, 35, 0.12);
  position: relative;
  border-radius: 0;
}
html[data-theme="dark"] body.craft-collection .heat-bar-track,
body.dark-mode body.craft-collection .heat-bar-track {
  background: rgba(255, 255, 255, 0.14);
}
body.craft-collection .heat-bar-fill {
  height: 100%;
  border-radius: 0;
}
body.craft-collection .heat-bar-median-marker {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 1.5px;
  background: var(--ink-main);
  opacity: 0.75;
}
/* 🌟 侧栏组件 (Aside Widgets) */
body.craft-collection .archive-widget-card {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink-line);
}
body.craft-collection .archive-widget-card:last-child {
  border-bottom: none;
}
body.craft-collection .archive-widget-title {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
/* 1. 年份 · YEARS 列表 */
body.craft-collection .sidebar-years-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.craft-collection .sidebar-year-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px dotted var(--ink-line);
  transition: padding-left 0.2s ease;
}
body.craft-collection .sidebar-year-row:hover {
  padding-left: 6px;
}
body.craft-collection .sidebar-year-row:hover .year-num {
  color: var(--topic-sierra);
}
body.craft-collection .sidebar-year-row .year-num {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-main);
  transition: color 0.2s ease;
}
body.craft-collection .sidebar-year-row .year-count {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}
/* 2. 最多阅读 · MOST READ 列表 */
body.craft-collection .sidebar-most-read-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
body.craft-collection .most-read-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}
body.craft-collection .most-read-title-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
body.craft-collection .most-read-num {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--topic-sierra);
  flex-shrink: 0;
}
body.craft-collection .most-read-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-main);
  line-height: 1.4;
  transition: color 0.2s ease;
}
body.craft-collection .most-read-item:hover .most-read-title {
  color: var(--topic-sierra);
}
body.craft-collection .most-read-meta {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 11.5px;
  color: var(--ink-muted);
  padding-left: 24px;
  letter-spacing: 0.05em;
}
/* 3. 主题 · TOPICS 进度条列表 */
body.craft-collection .sidebar-topics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.craft-collection .sidebar-topic-row {
  display: grid;
  grid-template-columns: 36px 1fr 20px;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
body.craft-collection .sidebar-topic-row:hover {
  opacity: 0.8;
}
body.craft-collection .topic-label {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-main);
}
body.craft-collection .topic-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(43, 40, 35, 0.1);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
html[data-theme="dark"] body.craft-collection .topic-bar-track,
body.dark-mode body.craft-collection .topic-bar-track {
  background: rgba(255, 255, 255, 0.12);
}
body.craft-collection .topic-bar-fill {
  height: 100%;
  border-radius: 0;
}
body.craft-collection .topic-count {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-align: right;
}

/* ============================================================
   RESPONSIVE  (concept-refined-craft/style.css 3062–3197)
   ============================================================ */

/* ==========================================================================
   🌟 彻底优化小浏览器与多断点响应式 (ROBUST RESPONSIVE DESIGN)
   ========================================================================== */
/* ⚠️ **作用域必须和 012 里那条基础规则一致。**
   `.grand-container` 的基础规则在 012 里是
   `:is(body.page-article, body.craft-collection)`，可这两条响应式**只写了
   craft-collection** —— 于是**文章详情页在任何宽度上都保持 48px 的左右留白**，
   而其余页面 1100 以下收到 36、640 以下收到 20。
   实测 390 的手机上：面包屑 `/articles` 在 x=66 / y=48，
   `/article/summer-forever` 在 **x=94 / y=72** —— 右移 28px、下沉 24px，
   而那是全站被读得最多的一页。
   这就是 HANDOFF 里那条「**把一个值对齐到别人时，要连它的媒体查询一起看**」，
   2026-08-24 作品页栽过一次，这里是同一个坑的另一半。
   `scripts/page-head-probe.js` 2026-08-28 把详情页也纳进来之后才量出来。 */
@media (max-width: 1100px) {
  :is(body.page-article, body.craft-collection) .grand-container {
      padding: 36px 36px 20px;
  }
}
@media (max-width: 960px) and (min-width: 721px) {
  body.craft-collection .archive-stat-box {
      padding: 14px 16px;
  }
  body.craft-collection .archive-featured-card {
      grid-template-columns: 220px minmax(0, 1fr);
      gap: 24px;
      padding: 20px;
  }
}
@media (max-width: 900px) and (min-width: 641px) {
  body.craft-collection .gal-albums-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 28px 20px;
  }
  body.craft-collection .gal-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
  }
}
@media (max-width: 720px) {
  body.craft-collection .archive-meta-matrix {
      grid-template-columns: repeat(2, 1fr);
  }
  body.craft-collection .archive-featured-card {
      grid-template-columns: 1fr;
      gap: 20px;
      padding: 18px;
  }
}
@media (max-width: 640px) {
  /* 同上：作用域跟 012 的基础规则走，不然文章详情页在手机上留白比别人多 28px。 */
  :is(body.page-article, body.craft-collection) .grand-container {
      padding: 24px 20px 16px;
  }
  /* ⚠️ **别再收成单列。** 四格叠成一竖条，每格 83px 高（16/20 的内边距 + 26px 的
     数字 + 11px 的标签），加边线一共 **340px** —— 一台 812 高的手机上，
     四个统计数字吃掉 42% 的首屏，正文得往下滚两屏才见得着。
     Fred 2026-08-30：「文章那边 这个占这么多 就四个小版块弄这么大 要干嘛」。
     保持 2×2，并把内边距和字号收一档：340 → 约 130px。
     不做成一行四列：`2.1K` / `2026` 这种四位数在 375 的屏上一格只有 92px，
     数字会换行，比高更难看。 */
  body.craft-collection .archive-meta-matrix {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      margin-bottom: 24px;
  }
  body.craft-collection .archive-stat-box {
      padding: 10px 12px;
      gap: 2px;
  }
  body.craft-collection .archive-stat-num {
      font-size: 21px;
  }
  body.craft-collection .archive-stat-label {
      font-size: 10px;
      letter-spacing: 0.08em;
  }
  body.craft-collection .archive-filter-bar {
      flex-direction: column;
      align-items: flex-start;
      gap: 14px;
  }
  body.craft-collection .archive-story-row {
      flex-direction: column;
      gap: 12px;
      padding: 16px 4px;
  }
  body.craft-collection .story-thumb-box {
      width: 100%;
      height: 180px;
  }
  body.craft-collection .story-date {
      width: auto;
  }
  body.craft-collection .story-meta-line {
      gap: 8px;
  }
  body.craft-collection .gal-albums-grid {
      grid-template-columns: 1fr !important;
      gap: 28px !important;
  }
  body.craft-collection .gal-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 10px !important;
  }
}

/* ============================================================
   GALLERY, LIGHTBOX, STORY DETAIL  (concept-refined-craft/style.css 3199–3760)
   ============================================================ */

/* ==========================================================================
   🌟 GALLERY (拾遗 / 摄影) 双视图、HOVER SCRIM 与全屏灯箱系统
   ========================================================================== */
body.craft-collection .gal-header-hero {
  margin-bottom: 28px;
}
body.craft-collection .gal-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);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
/* 🌟 视图切换工具栏 (View Switcher Tabs) */
body.craft-collection .gal-view-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 16px;
  border-top: 1px solid var(--ink-main);
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
body.craft-collection .gal-tabs-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
body.craft-collection .gal-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  border-radius: 0;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}
body.craft-collection .gal-tab-btn:hover {
  border-color: var(--ink-main);
  color: var(--ink-main);
}
body.craft-collection .gal-tab-btn.active {
  background: var(--ink-main);
  color: var(--c-porcelain);
  border-color: var(--ink-main);
}
body.craft-collection .gal-vitals-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* 🌟 视图 A · 相册故事流 (一行 3 个精致相册卡片) */
body.craft-collection .gal-albums-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  margin-bottom: 56px;
}
body.craft-collection .gal-album-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
body.craft-collection .gal-album-card:hover {
  transform: translateY(-2px);
}
body.craft-collection .gal-album-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--ink-line);
  background: var(--ink-line);
  border-radius: 0;
}
body.craft-collection .gal-album-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
body.craft-collection .gal-album-card:hover .gal-album-frame img {
  transform: scale(1.03);
}
/* 🌟 照片 Hover 柔和优雅遮罩 (Subtle & Silky Scrim Overlay) */
body.craft-collection .gal-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 9, 8, 0.72) 0%,
    rgba(10, 9, 8, 0.25) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
  color: #fff;
  pointer-events: none;
  will-change: opacity;
}
body.craft-collection .gal-scrim-inner {
  transform: translateY(6px);
  opacity: 0.8;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease;
  will-change: transform, opacity;
}
body.craft-collection .gal-album-frame:hover .gal-scrim,
body.craft-collection .gal-shot:hover .gal-scrim,
body.craft-collection .contact-sheet-item:hover .gal-scrim {
  opacity: 1;
}
body.craft-collection .gal-album-frame:hover .gal-scrim-inner,
body.craft-collection .gal-shot:hover .gal-scrim-inner,
body.craft-collection .contact-sheet-item:hover .gal-scrim-inner {
  transform: translateY(0);
  opacity: 1;
}
body.craft-collection .gal-scrim-meta {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 11px;
  /* 满白，不是 0.75 的白。11px 压在照片上，那 0.25 的透明度实测把对比度从
     6 点几拉到 3.6:1（量法见下面那段注释）—— 正是 Fred 说的「淡淡的灰」。
     主次已经由 11px/400 对 16px/600 分开了，不需要再靠减淡度分一次。 */
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
body.craft-collection .gal-scrim-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
}
body.craft-collection .gal-album-body {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
}
body.craft-collection .gal-album-meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 11.5px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
/* 手机上把这一行抬到 12.5px（桌面仍是 11.5px）。它不是大写字距的微标签，
   而是这张相册的**日期和张数** —— 列表页上除了标题就只有它承载信息，
   11.5px 在手机上要眯着眼看。 */
@media (max-width: 768px) {
  body.craft-collection .gal-album-meta-line { font-size: 12.5px; }
}

body.craft-collection .gal-album-meta-line .dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(30, 28, 25, 0.16);
}
html[data-theme="dark"] body.craft-collection .gal-album-meta-line .dot,
body.craft-collection.dark-mode .gal-album-meta-line .dot {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
body.craft-collection .gal-album-title {
  font-family: var(--font-heading);
  font-size: 18.5px;
  font-weight: 600;
  color: var(--ink-main);
  line-height: 1.35;
  margin-bottom: 2px;
  transition: color 0.2s ease;
}
body.craft-collection .gal-album-card:hover .gal-album-title {
  color: var(--topic-sierra);
}
/* 🌟 视图 B · 按月编年单张流 (Monthly Grid — Chase Jarvis 风格 2026 / 07 纯净排印) */
body.craft-collection .gal-month-section {
  margin-bottom: 42px;
}
body.craft-collection .gal-month-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 6px;
}
body.craft-collection .gal-month-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-main);
  letter-spacing: -0.01em;
}
body.craft-collection .gal-month-count {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
body.craft-collection .gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
body.craft-collection .gal-shot {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  cursor: pointer;
  border-radius: 0;
}
body.craft-collection .gal-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
body.craft-collection .gal-shot:hover img {
  transform: scale(1.03);
}
/* 🌟 全屏滑动灯箱 (Interactive Lightbox) */
body.craft-collection .gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 9, 8, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 36px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
body.craft-collection .gal-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
body.craft-collection .gal-lightbox-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-sans);
  font-size: 13px;
}
body.craft-collection .gal-lightbox-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
}
body.craft-collection .gal-lightbox-close:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}
body.craft-collection .gal-lightbox-stage {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 12px 0;
}
body.craft-collection .gal-lightbox-stage img {
  max-width: 90vw;
  max-height: 72vh;
  object-fit: contain;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease;
}
body.craft-collection .gal-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
body.craft-collection .gal-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}
body.craft-collection .gal-lightbox-nav.prev { left: 16px; }
body.craft-collection .gal-lightbox-nav.next { right: 16px; }
body.craft-collection .gal-lightbox-bar {
  width: 100%;
  max-width: 960px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 14px;
}
body.craft-collection .gal-lightbox-info-left h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}
body.craft-collection .gal-lightbox-info-left p {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}
body.craft-collection .gal-lightbox-exif-pill {
  display: flex;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
}
/* 🌟 相册底部的全片印样 (Contact Sheet / All Photos Grid) */
body.craft-collection .contact-sheet-section {
  margin: 48px 0 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
}
body.craft-collection .contact-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
body.craft-collection .contact-sheet-title {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
body.craft-collection .contact-sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
body.craft-collection .contact-sheet-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  cursor: pointer;
  border-radius: 0;
}
body.craft-collection .contact-sheet-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
body.craft-collection .contact-sheet-item:hover img {
  transform: scale(1.05);
}
/* 🌟 极简侧栏目录 (Clean Story Outline Aside) */
body.craft-collection .story-outline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
body.craft-collection .story-outline-item {
  display: flex;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-secondary);
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.2s ease;
}
body.craft-collection .story-outline-item:hover {
  color: var(--topic-sierra);
}
body.craft-collection .story-outline-num {
  font-weight: 600;
  color: var(--ink-muted);
  flex-shrink: 0;
}

/* ==========================================================================
   接站：参考稿是四份独立 demo 文档，下面是让它们在真站上成立所需要的东西。
   ========================================================================== */

/* 参考稿 :root 里的 `--bg-page`（= --c-porcelain / 深色 #0a0a0c）。012 的令牌块没有它
   —— 文章页没有任何一条规则用到。这里的看板格子 `.archive-stat-box` 和相册正文的说明条
   都拿它当底色，缺了就是透明，格子会整片消失在纸面上。 */
body.craft-collection {
  --bg-page: var(--c-porcelain);
}

html[data-theme="dark"] body.craft-collection,
body.craft-collection.dark-mode {
  --bg-page: #0a0a0c;
}

/* ── 缩略图是 <button> ─────────────────────────────────────────────────────
   参考稿用的是 `<div onclick>`：键盘进不去，读屏念不出。换成 button 之后要把浏览器
   自带的那身按钮外壳脱掉，并且遮罩的三层得改成块级 —— <button> 的内容模型只收
   phrasing content，里面不能放 <div>。 */
body.craft-collection button.gal-shot,
body.craft-collection button.contact-sheet-item {
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

body.craft-collection .gal-scrim-inner,
body.craft-collection .gal-scrim-meta,
body.craft-collection .gal-scrim-title {
  display: block;
}

/* 遮罩上的字压在照片上，可读性不能只靠那层 0.72 的黑 —— 亮景照片的顶部一行会糊掉。
   站里上一版的拾遗遮罩就带着这条描边（`gallery.css`，注释里写着「readability does
   not rest on opacity alone」），一起搬过来。
   注：contrast-sweep 会把这两行报成 1.23:1 —— 它往上找第一个**不透明**祖先当背景，
   找到的是纸面，量不到照片上那层渐变。那是脚本自己文件头里写着的两个坑之一。

   真要量只能**数像素**：把字设成透明、截整屏、在文字那一块里逐像素和文字色比。
   2026-08-22 这么量过一遍（拾遗三页，字影一并去掉，属于保守下界）：
     .gal-scrim-title  16px/600 满白        6.06 – 7.96:1   过 AA
     .gal-scrim-meta   11px/400 0.75 白     3.59 – 3.79:1   不过 → 已改满白
   量的时候有三个坑，一个都不能少：① 先摘 `html.js-reveal`，不然量到的是
   opacity:0 的卡片背后那张纸；② 强制 `scroll-behavior:auto`，平滑滚动会让
   scrollIntoView 之后立刻读到的坐标还是滚之前的；③ **先记下文字颜色再把字设成
   透明**，反过来读到的是 rgba(0,0,0,0)，于是拿黑色去和暗照片比，报出 1.02:1。 */
body.craft-collection .gal-scrim-meta,
body.craft-collection .gal-scrim-title {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

/* ── 灯箱：参考稿没有的三处状态 ───────────────────────────────────────────
   换图前先把旧的一帧淡出，否则慢加载的照片会把上一张按新比例拉着显示；两端到头时
   箭头要看得出点不动；相册名是灯箱里唯一一条出去的链接。 */
body.craft-collection .gal-lightbox-stage img {
  opacity: 1;
  transition: opacity 0.12s ease;
}

body.craft-collection .gal-lightbox.is-swapping .gal-lightbox-stage img {
  opacity: 0;
}

body.craft-collection .gal-lightbox-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

body.craft-collection .gal-lightbox-nav:disabled:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

body.craft-collection .gal-lightbox-album {
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

/* ── 相册正文 ─────────────────────────────────────────────────────────────
   正文是相册编辑器写出来的，本来就是「一段话、一张大图」交替：
   <figure class="story-media"><div class="story-media-frame"><img>
   <span class="story-media-short">短说明</span></div><figcaption>说明</figcaption>
   </figure> —— 恰好是参考稿 .story-photo-plate 的形状，只是多一层框。所以这里换的是
   衣服，不是标记。

   正文**刻意不带 `prose`**：带了会把 style.css 里那套 .prose .story-media 的圆角边框
   和 002-nav-article.js 的 initImageZoom（绑 `.prose img`）一起拉进来，而这一页的图
   要开的是相册灯箱。排印仍然走 .prose-grand（012 里那份，和文章页同一套）。 */
body.craft-collection .craft-story-body .story-media,
body.craft-collection .craft-story-body .story-live-photo {
  margin: 36px 0;
  border: 1px solid var(--ink-line);
  background: var(--ink-line);
  clear: both;
}

body.craft-collection .craft-story-body .story-media-frame,
body.craft-collection .craft-story-body .story-live-photo-frame {
  position: relative;
  display: block;
  line-height: 0;
}

/* 012 给正文插图配的是「2px 直角 + 一层轻投影 + 上下 30px」，那是文章页里一张图独立
   落在段落之间的样子。这一页的图是**装在图版里**的：外面那圈边框和底下的说明条就是
   图版本身，图必须齐边贴满，不然图版四周会露出一圈 --ink-line 的灰。 */
body.craft-collection .craft-story-body img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

/* 首字下沉是文章页的处理（012 把「正文第一段」并进了参考稿的 .drop-cap-p）。
   参考稿的图文见闻页没有它 —— 那一页的第一段就是普通段落。 */
body.craft-collection .craft-story-body > p:first-of-type::first-letter {
  float: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  font-weight: inherit;
}

/* 编辑器管它叫「短说明」，在参考稿里就是压在照片上那行标签：hover 才浮出来。 */
body.craft-collection .craft-story-body .story-media-short {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  max-width: calc(100% - 28px);
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.96);
  /* 紧贴的暗边 + 外面那圈柔光。原来只有 `0 2px 12px rgba(0,0,0,.55)` 一条 ——
     12px 的模糊摊得太开，紧挨着笔画的那一圈几乎没被压暗，等于这行字**全靠照片
     自己够暗**。实测（scripts/overlay-contrast.js 逐像素）：站里现有的夜景照上
     4.32:1，已经过不了 AA；换张亮的照片就是白字压白墙。
     短说明可以落在照片四个角的任意一个（data-short-position），铺不了从下往上的
     渐变 —— 只有描边跟位置无关。
     ⚠️ 同一条样式**站里有三份**：这里、public/css/style.css 的 `.prose` 一支、
     public/css/admin-editor.css 的编辑器预览。改一处要三处一起改。 */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.88), 0 0 12px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.5s ease;
  pointer-events: none;
}

body.craft-collection .craft-story-body .story-media:hover .story-media-short {
  opacity: 1;
  transform: translateY(0);
}

/* 触屏没有悬停，短说明在手机上一个字都看不到 —— 和 style.css 里文章页那份同一个处理。
   ⚠️ 罩子（下面那条 ::after）必须**一起**放出来：它是承重的，见下面那段实测数字。 */
@media (hover: none) {
  body.craft-collection .craft-story-body .story-media .story-media-short {
    opacity: 1;
    transform: translateY(0);
  }
  body.craft-collection .craft-story-body .story-media .story-media-frame::after,
  body.craft-collection .craft-story-body .story-live-photo .story-live-photo-frame::after {
    opacity: 1;
  }
}

/* 短说明浮出来的同时，图上压一层从中心往四角变暗的罩子 —— 这行白字才有底。
   **这不是新东西**：文章页 public/css/style.css 里 `.prose .story-media-frame::after`
   早就是这么做的（同一条 radial-gradient、同一个 hover 触发），相册页当初漏抄了。

   为什么非得有这层罩子，而不是把字影调狠一点：字影摊在笔画周围那一两个像素上，
   照片一亮就压不住。实测（scripts/overlay-contrast.js 逐像素、只判笔画覆盖到的点，
   把相册照片换成 #f2f0ec 的亮图）：
     只有字影 `0 2px 12px /.55`               1.30:1
     字影加粗成两层，还是只有字影              1.59:1   ← 治不了本
     只加罩子、字影用回旧的                    4.06:1   ← 差一点
     罩子 + 两层字影                           4.5:1 以上，全绿
   两处**都是承重的**，别看着差不多就删掉一个。
   站里现在的照片都是夜景，所以**这条在今天看不出来** —— 它防的是以后传一张亮照片。
   回归用 `node scripts/overlay-contrast.js --bright` 复现（把照片全换成 #f2f0ec）。 */
body.craft-collection .craft-story-body .story-media-frame::after,
body.craft-collection .craft-story-body .story-live-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(15, 23, 42, 0.10) 24%,
      rgba(15, 23, 42, 0.28) 58%,
      rgba(15, 23, 42, 0.58) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

body.craft-collection .craft-story-body .story-media:hover .story-media-frame::after,
body.craft-collection .craft-story-body .story-live-photo:hover .story-live-photo-frame::after {
  opacity: 1;
}

body.craft-collection .craft-story-body figcaption {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 12.5px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink-secondary);
  margin-top: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--ink-line);
  background: var(--bg-page);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.5;
  text-align: left;
}

/* 印样里有同一张的正文大图，点它就是从那一张开始翻。对不上的（比如正文里引的外链图）
   不绑，保持普通图片的样子。 */
body.craft-collection .craft-story-body [data-lightbox-index] .story-media-frame {
  cursor: pointer;
}

body.craft-collection .craft-story-body .story-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
}

body.craft-collection .craft-story-body .story-gallery figure {
  margin: 0;
}

/* ── 视图切换 ─────────────────────────────────────────────────────────────
   参考稿在同一份文档里用 JS 切。这里两个视图仍然是两个 URL（可分享、可抓取、刷新
   不丢 —— 这正是当初拆开的理由），所以那两个按钮是穿着按钮外衣的链接。 */
body.craft-collection a.gal-tab-btn {
  display: inline-flex;
  align-items: center;
}

/* 深色下按下态是白字白底。参考稿写的是 `background: var(--ink-main);
   color: var(--c-porcelain)` —— 深色里 --ink-main 翻成近白，而 --c-porcelain 本来就是
   浅色常量，两个都浅。跟着主题走的应该是字色。 */
html[data-theme="dark"] body.craft-collection .archive-filter-btn.active,
body.craft-collection.dark-mode .archive-filter-btn.active,
html[data-theme="dark"] body.craft-collection .gal-tab-btn.active,
body.craft-collection.dark-mode .gal-tab-btn.active {
  color: var(--bg-page);
}

html[data-theme="dark"] body.craft-collection .archive-filter-btn.active .filter-chip-dot,
body.craft-collection.dark-mode .archive-filter-btn.active .filter-chip-dot {
  box-shadow: 0 0 0 1px var(--bg-page);
}

/* ── 真数据带来的三处 ─────────────────────────────────────────────────────
   参考稿的样例值都很短，真的分类名、相机名和相册名会把这几行撑坏。 */

/* 元信息行是 flex 且 nowrap：换成真值之后每个 <span> 各自内部折行，一行变成一片
   参差的格子。 */
body.craft-collection .article-meta-plain,
body.craft-collection .article-breadcrumb-left,
body.craft-collection .gal-vitals-meta,
body.craft-collection .gal-album-meta-line,
body.craft-collection .contact-sheet-head,
body.craft-collection .archive-featured-meta,
body.craft-collection .story-meta-line {
  flex-wrap: wrap;
}

/* TOPICS 那行标签轨道参考稿写死 36px，只够两个字；「线上样本」这种四字分类会折行。
   宽度由视图按最长的那个算一次交进来，每行才对得齐（每行各自成 grid，不共享轨道）。 */
body.craft-collection .sidebar-topic-row {
  grid-template-columns: var(--topic-label-w, 36px) 1fr 20px;
  cursor: pointer;
}

body.craft-collection .topic-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 没有封面的文章做特辑卡时，左边那条 280px 轨道空着，读起来像图挂了。 */
body.craft-collection .archive-featured-card.is-coverless {
  grid-template-columns: minmax(0, 1fr);
}

/* ── 参考稿只画了「有东西」的那一版 ───────────────────────────────────────
   列表可以是空的，搜索可以没结果，筛选可以筛没了。 */
body.craft-collection .craft-empty {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--ink-muted);
  padding: 48px 0 64px;
  border-top: 1px solid var(--ink-line);
}

body.craft-collection .craft-empty a {
  color: var(--topic-sierra);
  border-bottom: 1px solid currentColor;
}

body.craft-collection .archive-search-note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

body.craft-collection .archive-search-note strong {
  color: var(--ink-main);
  font-weight: 600;
}

body.craft-collection .archive-search-note a {
  color: var(--topic-sierra);
  font-weight: 600;
}

body.craft-collection .archive-filter-empty {
  display: none;
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--ink-muted);
  padding: 40px 0;
}

body.craft-collection .archive-filter-empty.is-visible {
  display: block;
}

/* ── 分页 ─────────────────────────────────────────────────────────────────
   /shiyi/all 每页 60 张，参考稿没有对应件，按这套设计自己的标签排印搭的。 */
body.craft-collection .gal-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-line);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

body.craft-collection .gal-pagination a:hover {
  color: var(--ink-main);
}

body.craft-collection .gal-pagination-info {
  color: var(--ink-muted);
}

/* ── 减动效 ───────────────────────────────────────────────────────────────
   站点底那层宣纸水彩已经在 010 里按 prefers-reduced-motion 停了，这里只管本页的
   缩放与淡入。 */
@media (prefers-reduced-motion: reduce) {
  body.craft-collection .contact-sheet-item img,
  body.craft-collection .gal-shot img,
  body.craft-collection .gal-album-frame img,
  body.craft-collection .gal-scrim,
  body.craft-collection .gal-scrim-inner {
    transition: none;
  }
}

}
