/* 手记：列表页 /notes/ 和文章页 /notes/<slug>（页面由 scripts/sync-notes.mjs 从飞书生成）。
   参考 jackyangmiao.com/blog：列表一行一篇（日期、标题、摘要、分类、篇幅），文章页左栏元信息、右栏正文。
   列表照首页「案卷索引」的做法，纯字、悬停红线右移、其余压灰，不配缩略图（10-09 本人：列表不要再配大图）。
   样板期两套底色：默认黑底；<html data-theme="light"> 是白底（白不偏黄，2026-08 本人多次说过做旧纸色太黄）。
   正文用系统字体：站上的普惠体是按页面用字裁过的子集，文章里的生僻字会一个字一个字地掉到别的字体上。 */

.notes {
  --nv-body: #d2d2d2;
  --nv-panel: rgba(255, 255, 255, 0.03);
  --nv-panel-strong: #0d0d0d;
  --nv-read: -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --nv-title: 'Baskerville', 'Songti SC', 'STSongti-SC', 'DW Serif SC', 'Noto Serif SC', 'SimSun', Georgia, serif;
  padding: 108px 60px 140px calc(var(--rail-w) + 60px);
  max-width: 1360px;
  margin: 0 auto;
}

/* ── 白底 ── */
[data-theme="light"] {
  --bg: #fafafa;
  --bg-2: #f2f2f2;
  --panel-solid: #ffffff;
  --text: #141414;
  --text-dim: #5c5c5c;
  --text-faint: #8f8f8f;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.18);
  --accent: #e0241b;
  --accent-line: rgba(224, 36, 27, 0.45);
  --accent-soft: rgba(224, 36, 27, 0.08);
}
[data-theme="light"] .notes {
  --nv-body: #2b2b2b;
  --nv-panel: rgba(0, 0, 0, 0.025);
  --nv-panel-strong: #f0f0f0;
}
/* render.js 会按后台设置把 --bg 写进 <html> 的行内样式，压过上面的变量，底色直接写在 body 上 */
[data-theme="light"] body { background: #fafafa; }
[data-theme="light"] body::after { display: none; }       /* 暗角压在白底上四角发灰 */
[data-theme="light"] .rail__honors { color: var(--text); } /* 竖排「作品」在 base.css 里写死了白色 */
[data-theme="light"]::before { opacity: 0.025; }           /* 胶片颗粒减半 */

/* ── 通用 ── */
.nv-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.22em;
  color: var(--text-faint);
}
.nv-kicker::before { content: ''; width: 7px; height: 7px; background: var(--accent); flex: none; }
.nv-hud-link:hover, .nv-hud-link.is-here { color: var(--text); }
/* 「【草稿】」开头的文章只出现在预览站，标出来免得看漏 */
.nv-draft {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--accent-line);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.4;
  color: var(--accent);
  vertical-align: middle;
}

/* ══════════ 列表页 ══════════ */
.nv-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px 40px;
}
.nv-head .nv-kicker { grid-column: 1 / -1; }
.nv-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.nv-title .slash {
  display: inline-block;
  width: 4px; height: 0.66em;
  background: var(--accent);
  margin: 0 0 -0.02em 0.32em;
  transform: rotate(20deg);
}
.nv-lede {
  grid-column: 1;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-dim);
}
.nv-meta {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: end;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  line-height: 1.9;
  color: var(--text-dim);
  text-align: right;
}
.nv-rule { height: 1px; margin: 40px 0 28px; background: var(--border); }

.nv-filter { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 18px; }
.nv-filter button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.16));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  transition: color .25s, border-color .25s, background-color .25s;
}
.nv-filter button + button { border-left: none; }
.nv-filter button i { font-style: normal; color: var(--text-faint); }
.nv-filter button:hover { color: var(--text); }
.nv-filter button.is-active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.nv-filter button.is-active + button { border-left: 1px solid var(--accent-line); }
.nv-filter button.is-active i { color: var(--accent); }

.nv-list { border-top: 1px solid var(--border); }
.nv-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px 104px minmax(0, 1fr) 150px 96px 24px;
  align-items: baseline;
  column-gap: 20px;
  padding: 26px 0 26px 14px;
  border-bottom: 1px solid var(--border);
  transition: opacity .35s ease;
}
.nv-row[hidden] { display: none; }
.nv-row::before {
  content: '';
  position: absolute;
  left: 0; top: 22px; bottom: 22px;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--ease-inout, ease);
}
.nv-row__no, .nv-row__date, .nv-row__cat, .nv-row__read {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}
.nv-row__cat { color: var(--accent); }
.nv-row__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nv-row__title {
  font-family: var(--nv-title);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.nv-row__sum {
  font-family: var(--nv-read);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nv-row__arr { color: var(--text-faint); transition: transform .35s var(--ease-inout, ease), color .25s; }
.nv-list:hover .nv-row:not(:hover) { opacity: 0.38; }
.nv-row:hover::before { transform: scaleY(1); }
.nv-row:hover .nv-row__arr { color: var(--accent); transform: translateX(6px); }
.nv-empty { padding: 48px 0; color: var(--text-faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; }

/* ══════════ 文章页 ══════════ */
.nv-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  transition: color .25s;
}
.nv-back:hover { color: var(--accent); }
.nv-back .arr { transition: transform .35s; }
.nv-back:hover .arr { transform: translateX(-6px); }

.nv-post {
  display: grid;
  grid-template-columns: 200px minmax(0, 760px);
  column-gap: 72px;
  justify-content: start;
}
.nv-post__meta { position: relative; }
.nv-post__sticky { position: sticky; top: 120px; }
.nv-post__meta dl {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

/* 文章目录（参考 felixrieseberg.com 文章页左栏的 CONTENTS）：读到哪节哪节亮，标题行显示「第几节 / 共几节」 */
.nv-toc { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.nv-toc__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}
.nv-toc__part b { font-weight: 400; color: var(--accent); }
.nv-toc ol { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 420px); overflow-y: auto; scrollbar-width: none; }
.nv-toc ol::-webkit-scrollbar { display: none; }
.nv-toc li a {
  position: relative;
  display: block;
  padding: 5px 0 5px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .25s;
}
.nv-toc li.is-sub a { padding-left: 24px; font-size: 12px; }
.nv-toc li a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 1px;
  background: currentColor;
  opacity: .5;
}
.nv-toc li a:hover { color: var(--text); }
.nv-toc li a.is-on { color: var(--text); }
.nv-toc li a.is-on::before { width: 8px; background: var(--accent); opacity: 1; }
.notes .nv-body [id^="s"] { scroll-margin-top: 110px; }
.nv-post__meta dt {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}
.nv-post__meta dd { font-size: 13px; color: var(--text); line-height: 1.6; }
.nv-post__meta dd a { border-bottom: 1px solid var(--accent-line); transition: color .25s, border-color .25s; }
.nv-post__meta dd a:hover { color: var(--accent); border-color: var(--accent); }

.nv-post__head { margin-bottom: 44px; }
.nv-post__head .nv-kicker { margin-bottom: 20px; }
.nv-post__title {
  font-family: var(--nv-title);
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--text);
  text-wrap: balance;
}

/* 正文排版：以好读为先 */
.nv-body {
  font-family: var(--nv-read);
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--nv-body);
  overflow-wrap: anywhere;
}
.nv-body > :first-child { margin-top: 0; }
.nv-body p { margin: 0 0 1.15em; }
.nv-body h2, .nv-body h3, .nv-body h4, .nv-body h5 { color: var(--text); line-height: 1.4; }
.nv-body h2 {
  margin: 2.4em 0 0.9em;
  padding-top: 1.1em;
  border-top: 1px solid var(--border);
  font-family: var(--nv-title);
  font-size: 27px;
  font-weight: 600;
}
.nv-body h3 { margin: 2em 0 0.7em; font-size: 20px; font-weight: 600; }
.nv-body h4 { margin: 1.8em 0 0.6em; font-size: 17px; font-weight: 600; }
.nv-body h5, .nv-body h6 { margin: 1.4em 0 0.5em; font-size: 15px; font-weight: 600; color: var(--text-dim); }
.nv-body strong, .nv-body b { color: var(--text); font-weight: 600; }
.nv-body a { color: var(--text); border-bottom: 1px solid var(--accent-line); transition: color .25s, border-color .25s; }
.nv-body a:hover { color: var(--accent); border-color: var(--accent); }
/* 单独一行的链接（来源、推文）：压小、压灰，不和正文抢 */
.nv-body p > a:only-child {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  border-bottom-color: var(--border);
}
.nv-body ul, .nv-body ol { margin: 0 0 1.15em; padding-left: 1.5em; }
.nv-body li { margin: 0.35em 0; }
.nv-body li::marker { color: var(--accent); }
.nv-body blockquote {
  margin: 1.4em 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--accent);
  color: var(--text-dim);
}
.nv-body hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--border); }
.nv-body code {
  padding: 0.12em 0.4em;
  border-radius: 2px;
  background: var(--nv-panel);
  font-family: var(--font-mono);
  font-size: 0.86em;
}
.nv-body pre {
  margin: 1.4em 0;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--nv-panel-strong);
  font-size: 13px;
  line-height: 1.7;
}
.nv-body pre code { padding: 0; background: none; font-size: inherit; }
.nv-body table { width: 100%; margin: 1.4em 0; border-collapse: collapse; font-size: 14px; }
/* 飞书里嵌的表格（sync-notes.mjs 导出成 CSV 排的）：列多时横向滚，不撑破正文栏 */
.nv-table { margin: 1.4em 0; overflow-x: auto; border: 1px solid var(--border); }
.nv-table table { margin: 0; line-height: 1.7; }
.nv-table th { background: var(--nv-panel); white-space: nowrap; }
.nv-table td:first-child { color: var(--text); font-weight: 600; min-width: 6em; }
.nv-table tr:last-child td { border-bottom: 0; }
.nv-body th, .nv-body td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.nv-body th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--text-faint); font-weight: 400; }
.nv-body img {
  width: 100%;
  height: auto;
  margin: 1.6em 0;
  border: 1px solid var(--border);
  background: var(--nv-panel);
}

/* 飞书的分栏：几张图并排 */
.nv-grid { display: flex; gap: 12px; margin: 1.6em 0; align-items: flex-start; }
.nv-grid__col { min-width: 0; }
.nv-grid__col > :first-child { margin-top: 0; }
.nv-grid__col > :last-child { margin-bottom: 0; }
.nv-grid__col img { margin: 0; }

/* 飞书的提示框 */
.nv-callout {
  display: flex;
  gap: 14px;
  margin: 1.6em 0;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  background: var(--nv-panel);
}
.nv-callout__mark { flex: none; line-height: 1.95; }
.nv-callout__body { min-width: 0; }
.nv-callout__body p:last-child { margin-bottom: 0; }

/* 书签 / 附件卡片 */
.nv-card {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  margin: 1.2em 0;
  padding: 14px 18px;
  border: 1px solid var(--border) !important;
  background: var(--nv-panel);
  transition: border-color .25s;
}
.nv-card:hover { border-color: var(--accent-line) !important; }
.nv-card__name { color: var(--text); font-size: 15px; line-height: 1.5; }
.nv-card__host { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--text-faint); }

/* 视频：先放一条窄的播放条，点了才展开成播放器（js/notes.js）。
   拿不到封面（B 站接口拦服务器端请求），一期周报十几二十个空的 16:9 框会把页面拉得很长；标题就写在播放条上面一行 */
.nv-video {
  position: relative;
  height: 60px;
  margin: 0.6em 0 1.6em;
  border: 1px solid var(--border);
  background: var(--nv-panel);
  overflow: hidden;
  transition: border-color .25s;
}
.nv-video:hover { border-color: var(--accent-line); }
.nv-video.is-playing { height: auto; aspect-ratio: 16 / 9; background: #000; }
.nv-video--douyin.is-playing { aspect-ratio: 9 / 16; max-width: 340px; }
.nv-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nv-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
.nv-video__play i {
  position: relative;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .35s var(--ease-inout, ease);
}
.nv-video__play i::after {
  content: '';
  position: absolute;
  left: 12px; top: 9px;
  border-left: 11px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.nv-video__play:hover { color: var(--text); }
.nv-video__play:hover i { transform: scale(1.1); }
.nv-video__out {
  position: absolute;
  right: 18px; top: 50%;
  translate: 0 -50%;
  border: 0 !important;
  font-family: var(--font-mono);
  font-size: 10px !important;
  letter-spacing: 0.16em;
  color: var(--text-faint) !important;
}
.nv-video__out:hover { color: var(--accent) !important; }
.nv-video.is-playing .nv-video__play, .nv-video.is-playing .nv-video__out { display: none; }

/* 点图放大：小红书的长图四张一排时字看不清，放大后按原宽铺开、可以上下滚 */
.nv-body img { cursor: zoom-in; }
.nv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 5vh 4vw;
  overflow: auto;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}
.nv-lightbox img { width: auto; max-width: min(92vw, 1100px); height: auto; margin: auto 0; border: 0; }

/* 上下篇 */
.nv-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.nv-pager__item { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid var(--border); transition: border-color .25s; }
.nv-pager__item:hover { border-color: var(--accent-line); }
.nv-pager__item.is-older { text-align: right; }
.nv-pager__item small { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: var(--text-faint); }
.nv-pager__item span { font-family: var(--nv-title); font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--text); }

/* 黑 / 白切换：和吊灯开关（css/lamp.css，top 106px）同一套样子，排在它正下方；手机上吊灯开关不显示，就挪到它的位置 */
.nv-theme-switch {
  position: fixed;
  right: var(--hud-pad);
  top: 140px;
  z-index: 60;
  width: 30px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  transition: border-color .25s, color .25s, background-color .25s;
}
.nv-theme-switch svg { width: 14px; height: 14px; transition: rotate .45s var(--ease-inout, ease); }
.nv-theme-switch:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="light"] .nv-theme-switch svg { rotate: 180deg; }
[data-theme="light"] .nv-theme-switch,
[data-theme="light"] .dw-lamp-switch { border-color: rgba(0, 0, 0, 0.35); background: rgba(255, 255, 255, 0.8); color: #141414; }
[data-theme="light"] .nv-theme-switch:hover,
[data-theme="light"] .dw-lamp-switch:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 860px), (hover: none) {
  .nv-theme-switch { top: 106px; }
}
@media (max-width: 720px) {
  .nv-theme-switch { top: 88px; }   /* 语言切换在手机上上移到 52px */
}

/* ══════════ 手帐目录 /notes/contents ══════════
   参考 felixrieseberg.com Work 那本便签本：横线纸、红色页边线、顶上一条胶带、手写字。纸偏白不偏黄。
   黑底白底都是同一张纸，只换页面底色 */
@font-face {
  font-family: 'Notes Hand Latin';
  src: url('/fonts/notes-hand-latin.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00B7, U+2014, U+2018-201D, U+2026, U+2190-2193;
}
.nv-kicker--pad { justify-content: center; margin-bottom: 28px; }
.nv-pad-stage { display: flex; justify-content: center; padding: 8px 0 40px; }
.nv-pad {
  --line: 38px;
  --ink: #1f1f1f;
  --ink-dim: #6f6f6f;
  --red: #d42f26;
  position: relative;
  width: min(640px, 100%);
  padding: 34px 40px 46px 92px;
  rotate: -0.8deg;
  color: var(--ink);
  font-family: 'Notes Hand Latin', 'Notes Hand', 'Kaiti SC', 'STKaiti', cursive;
  font-size: 23px;
  line-height: var(--line);
  background:
    linear-gradient(90deg, transparent 63px, rgba(212, 47, 38, 0.55) 63px 65px, transparent 65px),
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--line) - 1px), rgba(84, 126, 170, 0.22) calc(var(--line) - 1px) var(--line)),
    #f4f3ef;
  background-position: 0 0, 0 26px, 0 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 22px 60px rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .nv-pad { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 18px 44px rgba(0, 0, 0, 0.12); outline: 1px solid rgba(0, 0, 0, 0.06); }
.nv-pad__tape {
  position: absolute;
  top: -14px; left: 50%;
  translate: -50% 0;
  rotate: 2deg;
  padding: 2px 22px;
  background: rgba(226, 222, 210, 0.82);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  font-size: 17px;
  line-height: 26px;
  color: var(--ink-dim);
  white-space: nowrap;
}
.nv-pad a { color: inherit; }
.nv-pad__top { display: flex; align-items: baseline; justify-content: space-between; height: calc(var(--line) * 2); }
.nv-pad__title { font-size: 52px; font-weight: 400; line-height: calc(var(--line) * 2); }
.nv-pad__stamp { font-size: 20px; color: var(--ink-dim); }
.nv-pad__latest { position: relative; display: block; margin-bottom: var(--line); }
.nv-pad__circle {
  position: absolute;
  left: -50px; top: 4px;
  width: 34px; height: 30px;
  border: 1.5px solid var(--red);
  border-radius: 50% 46% 52% 48%;
  font-size: 17px;
  line-height: 27px;
  text-align: center;
  color: var(--red);
  rotate: -6deg;
}
.nv-pad__latest-title { display: block; font-size: 31px; line-height: var(--line); }
.nv-pad__latest-sum { display: block; color: var(--ink-dim); font-size: 21px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nv-pad__go { display: block; color: var(--red); font-size: 20px; }
.nv-pad__latest:hover .nv-pad__latest-title { text-decoration: underline wavy var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
.nv-pad__sec { font-size: 25px; font-weight: 400; line-height: var(--line); color: var(--red); }
.nv-pad__list { list-style: none; margin: 0 0 var(--line); padding: 0; }
.nv-pad__list a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline; transition: color .2s; }
.nv-pad__list .no { margin-left: -50px; width: 34px; font-size: 18px; color: var(--ink-dim); text-align: right; padding-right: 6px; }
.nv-pad__list .name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nv-pad__list .n { font-size: 19px; color: var(--ink-dim); }
.nv-pad__list a:hover .name { color: var(--red); text-decoration: underline wavy var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
.nv-pad__list--recent { font-size: 21px; }
.nv-pad__all { display: inline-block; color: var(--red); font-size: 23px; }
.nv-pad__all:hover { text-decoration: underline wavy var(--red); text-underline-offset: 7px; }
.nv-meta__link { display: inline-block; margin-top: 6px; color: var(--text-dim); border-bottom: 1px solid var(--accent-line); transition: color .25s; }
.nv-meta__link:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .notes { padding: 96px 32px 120px calc(var(--rail-w) + 28px); }
  .nv-row { grid-template-columns: 96px minmax(0, 1fr) 110px 24px; }
  .nv-row__no, .nv-row__read { display: none; }
  .nv-post { grid-template-columns: minmax(0, 1fr); }
  .nv-post__meta dl { position: static; flex-direction: row; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 36px; padding: 18px 0; border-bottom: 1px solid var(--border); }
  .nv-post__sticky { position: static; }
  .nv-toc { display: none; }   /* 窄屏左栏挪到正文上方，目录不放 */
  .nv-post__meta { order: 2; }
  .nv-post__main { order: 3; }
}
@media (max-width: 720px) {
  .nv-pad { padding: 28px 18px 36px 58px; font-size: 20px; rotate: 0deg; --line: 34px; background-position: 0 0, 0 22px, 0 0; }
  .nv-pad { background: linear-gradient(90deg, transparent 41px, rgba(212, 47, 38, 0.55) 41px 43px, transparent 43px), repeating-linear-gradient(to bottom, transparent 0 calc(var(--line) - 1px), rgba(84, 126, 170, 0.22) calc(var(--line) - 1px) var(--line)), #f4f3ef; }
  .nv-pad__title { font-size: 42px; }
  .nv-pad__latest-title { font-size: 25px; }
  .nv-pad__circle, .nv-pad__list .no { display: none; }
  .nv-pad__list a { grid-template-columns: minmax(0, 1fr) auto; }
  .notes { padding: 84px 16px 110px calc(var(--rail-w) + 8px); }
  .nv-head { grid-template-columns: 1fr; }
  .nv-meta { grid-column: 1; grid-row: auto; text-align: left; }
  .nv-row { grid-template-columns: minmax(0, 1fr) 20px; row-gap: 8px; padding-left: 12px; }
  .nv-row__date { grid-column: 1; grid-row: 1; }
  .nv-row__main { grid-column: 1; grid-row: 2; }
  .nv-row__cat { display: none; }
  .nv-row__arr { grid-column: 2; grid-row: 2; }
  .nv-row__title { font-size: 19px; }
  .nv-body { font-size: 16px; }
  .nv-grid { flex-wrap: wrap; }
  .nv-grid__col { flex: 1 1 calc(50% - 6px) !important; }
  .nv-pager { grid-template-columns: 1fr; }
  .nv-pager__item.is-older { text-align: left; }
}
