/* ============================================================
   S5 内容样式：文章列表 / 拼贴墙 / 关于
   ============================================================ */

/* —— 文章列表（访达风） —— */
.notes-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.notes-list a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-md);
  text-decoration: none; color: var(--label);
  transition: background var(--dur-fast);
}
.notes-list a:hover { background: rgba(0, 122, 255, 0.08); }
.notes-list .n-date {
  font-family: var(--font-mono); font-size: 12px; color: var(--label-3);
  flex-shrink: 0; width: 86px;
}
.notes-list .n-title { font-size: 16px; font-weight: 500; }
.notes-list .n-desc {
  display: block; font-size: 13px; color: var(--label-2);
  margin-top: 2px; font-weight: 400;
}

/* —— 文章阅读 —— */
.article-head { margin-bottom: 28px; }
.article-head h1 {
  font-size: 32px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 8px; line-height: 1.25;
}
.article-head time {
  font-family: var(--font-mono); font-size: 13px; color: var(--label-3);
}
.article-body { font-size: 17px; line-height: 1.85; }
.article-body p { margin-bottom: 1.2em; }
.article-body h2 { font-size: 22px; margin: 1.6em 0 0.6em; }
.article-body img { max-width: 100%; border-radius: var(--r-md); }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--sys-blue); text-decoration: none;
  font-size: 15px; font-weight: 500; margin-bottom: 20px;
}

/* —— 拼贴墙（照片 App 风） —— */
.photos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.photos-grid figure {
  margin: 0; border-radius: var(--r-md); overflow: hidden;
  background: var(--sys-gray-5); aspect-ratio: 4/3;
  position: relative;
}
.photos-grid img, .photos-grid video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.photos-grid figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 10px 8px; font-size: 12px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
}

/* —— Bao To 式嵌入边缘（拼贴墙画面容器） ——
   手法：底层是同一张图的模糊放大版（羽化），顶层是清晰原图（边缘羽化透明）。
   主体保持清晰，模糊与透明过渡集中在边缘，自然融进卡片底色。
   参考：baothiento.com/bench 的画面边缘处理（只借鉴边缘手法，不碰其美术资产）。
   mask 是 alpha 运算，深浅主题自适应；纯静态 CSS，reduced-motion 无影响。 */
.cl-frame { position: relative; }
.cl-frame::before {
  content: ""; position: absolute; inset: -12px; pointer-events: none;
  background-size: cover; background-position: center;
  background-image: var(--ph, radial-gradient(ellipse at center, rgba(169,124,79,.38), rgba(169,124,79,0) 70%));
  filter: blur(14px) saturate(1.2);
  opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 50%, transparent 100%);
}
.cl-frame > img, .cl-frame > video {
  position: relative; z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 60%, transparent 97%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 60%, transparent 97%);
}
/* 移动端：figure 裁圆角，光晕收进框内 */
.photos-grid .cl-frame { height: 100%; }
.photos-grid .cl-frame::before { inset: 0; }
.photos-grid .cl-frame > img, .photos-grid .cl-frame > video { height: 100%; object-fit: cover; }

/* —— 关于 —— */
.about-body { font-size: 16px; line-height: 1.8; }
.about-body h2 { font-size: 20px; margin: 1.4em 0 0.5em; }
.about-body p { margin-bottom: 1em; }
.about-body ul { padding-left: 1.2em; margin-bottom: 1em; }

/* —— 内容页容器（list/single 共用壳内布局） —— */
.content-shell {
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: 24px 20px 120px;
}
.content-card {
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-edge-hi), var(--shadow-card);
  padding: 28px;
}
[data-theme="dark"] .content-card { background: rgba(28,28,30,0.72); }

/* —— 文章阅读 · 柔化 —— */
.article-head h1 { font-weight: 600; letter-spacing: 0.01em; color: #2e2b28; }
.article-body { font-size: 17px; line-height: 1.95; color: #3a3733; }
.article-body p { margin-bottom: 1.4em; }
.article-body h2 { font-size: 21px; font-weight: 600; margin: 1.8em 0 0.8em; color: #2e2b28; }
.article-body h3 { font-size: 18px; font-weight: 600; margin: 1.6em 0 0.7em; color: #2e2b28; }
.article-body a { color: #2f6fb2; text-decoration: none; border-bottom: 1px solid rgba(47, 111, 178, 0.25); transition: border-color 0.2s, background 0.2s; }
.article-body a:hover { border-bottom-color: rgba(47, 111, 178, 0.6); background: rgba(47, 111, 178, 0.06); }
.article-body blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 3px solid rgba(180, 140, 90, 0.4); background: rgba(180, 140, 90, 0.06); border-radius: 0 12px 12px 0; color: #5a544d; }
.article-body blockquote p { margin-bottom: 0; }
.article-body ul, .article-body ol { margin: 0 0 1.4em 1.2em; }
.article-body li { margin-bottom: 0.5em; }
.article-body hr { border: none; border-top: 1px solid rgba(0, 0, 0, 0.08); margin: 2em auto; width: 60%; }
.article-body img { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }
.article-body code { font-family: var(--font-mono); font-size: 0.9em; background: rgba(0, 0, 0, 0.05); padding: 2px 6px; border-radius: 6px; }
.article-body pre { background: rgba(0, 0, 0, 0.04); border-radius: 12px; padding: 16px; overflow-x: auto; margin-bottom: 1.4em; }
.article-body pre code { background: none; padding: 0; }
[data-theme="dark"] .article-body { color: #d8d4cf; }
[data-theme="dark"] .article-head h1, [data-theme="dark"] .article-body h2, [data-theme="dark"] .article-body h3 { color: #ece9e4; }
[data-theme="dark"] .article-body blockquote { background: rgba(255, 255, 255, 0.04); color: #b8b3ac; }
[data-theme="dark"] .article-body code { background: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .article-body pre { background: rgba(255, 255, 255, 0.05); }
[data-theme="dark"] .article-body hr { border-top-color: rgba(255, 255, 255, 0.1); }

/* —— 拼贴墙杂志（移动端）：一地一块，先纯照片 E 网格 → 后日志文字 —— */
.m-mag { margin-bottom:30px; }
.m-egrid { display:grid; gap:10px; grid-template-columns:repeat(12, 1fr); margin-bottom:14px; }
.m-egrid .m-ecell { position:relative; overflow:hidden; border-radius:14px; background:var(--sys-gray-5); }
.m-egrid .m-ecell img, .m-egrid .m-ecell video { width:100%; height:100%; object-fit:cover; display:block; }
.m-e1 .m-ecell { grid-column:1 / 13; aspect-ratio:4 / 3; }
.m-e2 .m-ecell:nth-child(1) { grid-column:1 / 8; aspect-ratio:3 / 4; }
.m-e2 .m-ecell:nth-child(2) { grid-column:8 / 13; aspect-ratio:3 / 4; }
.m-e3 .m-ecell:nth-child(1) { grid-column:1 / 8; aspect-ratio:4 / 3; }
.m-e3 .m-ecell:nth-child(2) { grid-column:8 / 13; aspect-ratio:4 / 3; }
.m-e3 .m-ecell:nth-child(3) { grid-column:1 / 13; aspect-ratio:16 / 9; }
.m-e4 .m-ecell:nth-child(1) { grid-column:1 / 8; aspect-ratio:4 / 3; }
.m-e4 .m-ecell:nth-child(2) { grid-column:8 / 13; aspect-ratio:4 / 3; }
.m-e4 .m-ecell:nth-child(3) { grid-column:1 / 6; aspect-ratio:4 / 3; }
.m-e4 .m-ecell:nth-child(4) { grid-column:6 / 13; aspect-ratio:4 / 3; }
.m-egrid.mx { grid-template-columns:1fr; }
.m-exrow { display:grid; gap:10px; grid-template-columns:7fr 5fr; }
.m-exrow.f57 { grid-template-columns:5fr 7fr; }
.m-exrow .m-ecell { aspect-ratio:4 / 3; }
.m-exrow .m-ecell:only-child { grid-column:1 / -1; }
.m-journal h3 { font-size:18px; font-weight:700; letter-spacing:-.01em; margin:0 0 6px; }
.m-journal .m-meta { font-size:12px; color:var(--label-3); margin-bottom:10px; }
.m-journal .m-body { font-size:14.5px; line-height:1.8; color:var(--label-1); margin:0 0 10px; }
.m-journal .m-quote { font-size:15px; font-weight:600; line-height:1.6; margin:0;
  padding-left:10px; border-left:3px solid var(--sys-gray-5); }
