/*! Spica theme · © 2026 织星 / Astraea · https://github.com/misterrabbit0w0/misterrabbit0w0.github.io · MIT */
/* ── page.css — 各页面专属样式合集（home/archive/post/projects/about）── */

/* ===== HOME (index) ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 48px;
  row-gap: 24px;
  align-items: center;
  padding: 108px 0 64px;
  position: relative;
}
.hero-text h1 { font-size: 36px; font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
.hero-text .handle { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 14px; font-weight: 500; } /* deslop-ignore 34 */
.hero-text .bio { font-size: 15px; line-height: 1.85; color: var(--muted); max-width: 440px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.home-writing { margin-top: 8px; }

/* ===== WRITING LAYOUT ===== */
.writing-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 24px;
}
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: start;
}
.home-main { min-width: 0; }
.home-widgets { position: sticky; top: 24px; min-width: 0; }
.filter-panel { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.filter-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
}
.filter-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.filter-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--input-bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.filter-select:focus { border-color: var(--pink); }
.topic-list { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow: auto; }
.topic-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); cursor: pointer;
}
.topic-item input { accent-color: var(--pink); }
.writing-main { min-width: 0; }
.widgets-column { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.widget-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  min-width: 0;
  max-width: 100%;
}
.widget-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}

.stats-widget-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats-widget-item { text-align: center; }
.stats-widget-num {
  font-family: var(--font-mono); /* deslop-ignore 34 */
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--pink);
}
.stats-widget-label { font-size: 11px; color: var(--muted); margin-top: 4px; }
.stats-widget-meta {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 11px; color: var(--muted);
}
.contrib-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.contrib-stat { text-align: center; }
.contrib-stat-num {
  display: block;
  font-family: var(--font-mono); /* deslop-ignore 34 */
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--pink);
}
.contrib-stat-label { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.contrib-widget { overflow: hidden; }
.contrib-sparkline {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 12px;
}
.contrib-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
}
.contrib-item {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contrib-item:last-child { border-bottom: none; padding-bottom: 0; }
.contrib-item a {
  display: block;
  max-width: 100%;
  color: var(--pink);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contrib-item a:hover { text-decoration: underline; } /* deslop-ignore 09 */
.contrib-item span {
  display: block;
  max-width: 100%;
  margin-top: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contrib-item time { display: block; font-size: 11px; margin-top: 3px; opacity: .85; }
.contrib-placeholder { font-style: normal; color: var(--muted); }
.contrib-error { color: var(--muted); }
.stat-sparkline { margin-top: 8px; width: 100%; height: 24px; opacity: .85; }
/* 手绘 sparkline 需要更高的画布让涂鸦笔触有呼吸空间 */
.contrib-widget .contrib-sparkline { height: 46px; opacity: .95; margin-bottom: 14px; }

.article-list { display: flex; flex-direction: column; }
.article-list-home { margin-bottom: 8px; }

.article-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: flex-start;
  border-radius: var(--r-sm);
  padding: 16px 12px;
  text-decoration: none;
  color: inherit;
  transition: background .2s ease;
}
.article-row + .article-row {
  border-top: 1px solid var(--border);
}
.article-row:hover { background: color-mix(in oklab, var(--pink) 7%, transparent); }
.article-row:hover .article-row-title { color: var(--pink); }
.article-row-body { min-width: 0; }
.article-row-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.45; transition: color .2s ease; }
.article-row-excerpt { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 10px; }
.article-row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.article-row-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.article-row-right { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; padding-top: 2px; }
.read-time { font-size: 12px; color: var(--muted); white-space: nowrap; }

.search-wrap { position: relative; }
.search-wrap-compact input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--input-bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.search-wrap-compact input:focus { border-color: var(--pink); }
.search-wrap-compact .search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}

.page-hero-compact { padding: 0 0 24px; margin-bottom: 4px; }
.post-card {
  background: var(--card); border-radius: var(--r);
  border: 1.5px solid var(--border);
  padding: 22px;
  transition: border-color .2s ease;
  text-decoration: none; color: inherit; display: block;
  position: relative;
}
.post-card:hover {
  border-color: var(--pink);
}
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.post-cat {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px;
  letter-spacing: 0;
}
.post-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-title { font-size: 15px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; }
.post-excerpt { font-size: 13px; color: var(--muted); line-height: 1.7; font-weight: 400; }
.post-card-featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 200px;
  gap: 24px; align-items: stretch;
  overflow: hidden;
  padding: 0;
}
.post-card-featured > div:first-child {
  padding: 26px 24px 24px;
}
.post-card-featured .post-title { font-size: 19px; }
.post-card-featured .post-excerpt { max-width: 480px; }
.post-img-placeholder {
  height: 100%;
  min-height: 140px;
  background: var(--bg2) center/cover no-repeat;
  border-left: 1.5px solid var(--border);
}

.repos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.repo-card {
  background: var(--card); border-radius: var(--r);
  border: 1.5px solid var(--border);
  padding: 18px; cursor: pointer;
  transition: border-color .2s ease;
  text-decoration: none; color: inherit; display: block;
}
.repo-card:hover { border-color: var(--pink); }
.repo-name { font-size: 14px; font-weight: 700; color: var(--pink); margin-bottom: 6px; }
.repo-desc { font-size: 12px; color: var(--muted); line-height: 1.6; font-weight: 400; margin-bottom: 12px; }
.repo-stats { display: flex; gap: 14px; }
.repo-stat { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.lang-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; } /* deslop-ignore 19 */

/* ===== ARCHIVE (文章列表) ===== */
.page-hero {
  padding: 52px 0 40px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.page-hero-left h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.page-hero-left p  { font-size: 14px; color: var(--muted); font-weight: 400; }
.article-count {
  font-size: 48px; font-weight: 700; line-height: 1;
  color: var(--pink);
}
.article-count span { font-size: 16px; font-weight: 400; color: var(--muted); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
  font-size: 13px; font-weight: 500; padding: 6px 16px; border-radius: 99px;
  border: 1.5px solid var(--border); background: var(--card); color: var(--muted);
  cursor: pointer; font-family: inherit;
}
.filter-btn:hover { border-color: var(--pink); color: var(--pink); }
.filter-btn.active {
  background: transparent;
  border-color: color-mix(in oklch, var(--pink) 45%, transparent);
  color: var(--pink);
}

.search-wrap input {
  width: 100%; padding: 12px 16px 12px 42px;
  border-radius: 99px; border: 1.5px solid var(--border);
  background: var(--input-bg); color: var(--fg); font-family: inherit; font-size: 14px;
  outline: none; transition: border-color .2s;
}
.search-wrap input:focus { border-color: var(--pink); }
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap:not(.search-wrap-compact) { margin-bottom: 28px; }
.search-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}

.year-group { margin-bottom: 36px; }
.year-label {
  font-size: 13px; font-weight: 700; color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
  font-variant-numeric: tabular-nums;
}
.year-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.article-row-date {
  font-size: 12px; color: var(--muted); flex-shrink: 0;
  width: auto; padding-top: 0; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.article-row-body { flex: 1; min-width: 0; }
.article-row-title { font-size: 15px; font-weight: 700; margin-bottom: 5px; line-height: 1.45; }
.article-row-excerpt { font-size: 13px; color: var(--muted); font-weight: 400; line-height: 1.7; }
.article-row-meta { display: flex; align-items: center; gap: 10px; margin-top: 0; flex-wrap: wrap; }
.article-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.read-time { font-size: 12px; color: var(--muted); }
.pinned-badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px;
  background: var(--pink-light); color: var(--pink); border: 1px solid var(--pink-light);
}

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.page-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm); border: 1.5px solid var(--border);
  background: var(--card); color: var(--muted); font-family: inherit; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  text-decoration: none; padding: 0 10px;
}
.page-btn:hover { border-color: var(--pink); color: var(--pink); }
.page-btn.active {
  background: var(--pink);
  border-color: transparent; color: white; font-weight: 700;
}
.page-btn.disabled { opacity: .45; pointer-events: none; }

/* ===== POST ===== */
.post-layout {
  --post-main-width: 760px;
  display: grid;
  grid-template-columns: minmax(0, var(--post-main-width)) 260px;
  justify-content: center;
  gap: 40px;
  padding-top: 32px;
  align-items: start;
}
.post-layout > article {
  min-width: 0;
  max-width: var(--post-main-width);
}
@media (max-width: 980px) {
  .writing-layout { grid-template-columns: 1fr; }
  .home-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .home-widgets { position: static; order: -1; }
}
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-layout > article { max-width: min(100%, var(--post-main-width)); }
  .post-sidebar { position: static; }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; padding: 64px 0 40px; }
  .hero-home::before { display: none; }
}
.post-header { margin-bottom: 36px; }
.post-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.post-breadcrumb a { color: var(--pink); text-decoration: none; }
.post-header h1 {
  font-size: 28px; font-weight: 700; line-height: 1.35;
  margin-bottom: 16px;
}
.post-info { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.post-info-item { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.post-view-counter .counter-value {
  color: var(--pink);
  font-weight: 600;
}
.post-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r);
  margin-bottom: 36px;
  border: 1.5px solid var(--border);
}
/* 星图封面：无框无界——星座直接浮在页面上，底缘渐隐融入正文 */
.post-cover-star-wrap { position: relative; }
/* 环境辉光：独立的 CSS 层，不在 SVG 内——不被视口裁切、不被 mask 横切。
   向上/两侧/向下溢出封面，靠自身渐变在各方向衰减到 0，光穿过 mask 融入正文。
   光心由生成器经 --gx/--gy 传入；挂在指针视差层（shared.js）。 */
.post-cover-star-wrap .cover-glow {
  position: absolute;
  inset: -45% -18% -90px;
  background: radial-gradient(circle closest-side at var(--gx, 50%) var(--gy, 45%),
    color-mix(in oklch, var(--pink-light) 42%, transparent) 0%, transparent 88%);
  pointer-events: none;
}
.post-cover-star {
  position: relative; /* 星座压过辉光层 */
  border: none;
  border-radius: 0;
  background: none;
  -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 98%); /* deslop-ignore 06 */
  mask-image: linear-gradient(180deg, #000 68%, transparent 98%); /* deslop-ignore 06 */
}
/* 远景小星：颜色走 --star-dot（浅色带彩度、不似灰尘），大小/明度个性在生成器里 */
.post-cover-star .cover-dot { fill: var(--star-dot); }
/* 出生动画（一次性仪式，非循环）：线先自我描绘，星点沿路径依次绽出 */
.post-cover-star .star-link {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: star-draw 1.1s cubic-bezier(.5,0,.2,1) forwards;
  animation-delay: var(--d, .15s);
}
@keyframes star-draw { to { stroke-dashoffset: 0; } }
.post-cover-star .star-node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: star-node-in .5s ease-out forwards;
  animation-delay: var(--d, .8s);
}
@keyframes star-node-in {
  from { opacity: 0; transform: scale(.3); }
  to   { opacity: 1; transform: scale(1); }
}
.post-cover-star .star-bright {
  animation: star-twinkle 3.2s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes star-twinkle {
  from { opacity: 0.65; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .post-cover-star .star-link { animation: none; stroke-dashoffset: 0; }
  .post-cover-star .star-node { animation: none; opacity: 1; }
  .post-cover-star .star-bright { animation: none; }
}
.post-body {
  font-size: 15px;
  line-height: 1.95;
  font-weight: 400;
  color: var(--article-text);
  overflow-wrap: break-word;
  font-kerning: none;
}
.post-body > :first-child { margin-top: 0; }
.post-body > :last-child { margin-bottom: 0; }
.post-body h1 { font-size: 24px; font-weight: 700; color: var(--article-heading); margin: 42px 0 16px; }
.post-body h2 {
  font-size: 20px; font-weight: 700; color: var(--article-heading);
  margin: 42px 0 16px; padding-bottom: 9px;
  border-bottom: 1.5px solid var(--article-surface-border);
  display: flex; align-items: center; gap: 8px;
}
.post-body h3 { font-size: 16px; font-weight: 700; color: var(--article-heading); margin: 30px 0 12px; }
.post-body h4 { font-size: 15px; font-weight: 700; color: var(--article-heading); margin: 24px 0 10px; }
.post-body p { margin-bottom: 18px; }
.post-body strong { font-weight: 700; color: var(--article-emphasis); }
.post-body em { font-style: italic; }
.post-body a {
  color: var(--article-link);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklch, var(--article-link) 40%, transparent);
  background-image: linear-gradient(transparent calc(100% - .42em), var(--article-link-bg) 0);
  background-size: 100% 100%;
  transition: border-color .18s ease, background-size .18s ease;
}
.post-body a:hover {
  border-bottom-color: var(--article-link);
  background-size: 100% 115%;
}
.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  margin: 24px auto;
  border: 1.5px solid var(--article-surface-border);
  background: var(--article-surface);
}
.post-body figure {
  margin: 28px 0;
}
.post-body figure img {
  margin-bottom: 10px;
}
.post-body figcaption {
  max-width: 92%;
  margin: 0 auto;
  color: var(--article-muted);
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}
.post-body a:has(> img) {
  border-bottom: none;
  background-image: none;
}
html:not(.has-theme-cursor) img.post-cover.img-zoomable,
html:not(.has-theme-cursor) .post-body img.img-zoomable {
  cursor: zoom-in;
}
html:not(.has-theme-cursor) .post-body a:has(> img.img-zoomable) {
  cursor: zoom-in;
  border-bottom: none;
}
/* inline code */
.post-body :not(pre) > code,
.post-body p code,
.post-body li code,
.post-body td code {
  font-family: var(--font-mono); /* deslop-ignore 34 */
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 8px;
  background: var(--article-code-bg);
  color: var(--article-code-inline-fg);
  border: 1px solid var(--article-code-border);
}

/* fenced code blocks */
.post-body .code-block-wrap {
  position: relative;
  margin: 26px 0;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--article-code-border);
  background: var(--article-code-bg);
  overflow: hidden;
}

.post-body .code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 36px;
  padding: 0 12px 0 14px;
  border-bottom: 1px solid var(--article-code-border);
  background: var(--article-code-header);
}

.post-body .code-block-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.post-body .code-block-lang {
  font-family: var(--font-mono); /* deslop-ignore 34 */
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-body .code-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--article-code-border);
  border-radius: var(--r-sm);
  background: var(--article-code-bg);
  color: var(--muted);
  font-family: var(--font-mono); /* deslop-ignore 34 */
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.post-body .code-copy-btn:hover {
  color: var(--fg);
  border-color: var(--pink-light);
  background: var(--article-surface);
}

.post-body .code-copy-btn.copied {
  color: var(--mint);
  border-color: var(--mint-border);
}

.post-body .code-block-wrap pre {
  margin: 0;
  padding: 0;
  overflow-x: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  font-family: var(--font-mono); /* deslop-ignore 34 */
  font-size: 13px;
  line-height: 1.7;
}

.post-body .code-block-wrap pre code,
.post-body .code-block-wrap figure.highlight code {
  display: block;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--article-code-fg);
  background: none;
  border: none;
  padding: 15px 18px;
  tab-size: 2;
  overflow-x: auto;
  white-space: pre;
  font-variant-ligatures: none;
}

.post-body .code-block-wrap figure.highlight {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-mono); /* deslop-ignore 34 */
  font-size: 13px;
  line-height: 1.7;
}

.post-body .code-block-wrap figure.highlight pre {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.post-body .code-block-wrap .line {
  display: block;
  line-height: inherit;
}

.post-body .code-block-wrap code br {
  display: none;
}

/* plain pre fallback (outside wrap) */
.post-body > pre:not(.code-block-wrap pre) {
  margin: 26px 0;
  padding: 15px 18px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--article-code-border);
  background: var(--article-code-bg);
  overflow-x: auto;
  font-family: var(--font-mono); /* deslop-ignore 34 */
  font-size: 13px;
  line-height: 1.7;
}

.post-body > pre:not(.code-block-wrap pre) code {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--article-code-fg);
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
}

/* highlight.js token colors */
.post-body .code-block-wrap .comment,
.post-body .code-block-wrap .quote {
  color: oklch(58% 0.03 290);
  font-style: italic;
}
[data-color-mode="dark"] .post-body .code-block-wrap .comment,
[data-color-mode="dark"] .post-body .code-block-wrap .quote {
  color: oklch(68% 0.03 290);
}
.post-body .code-block-wrap .keyword,
.post-body .code-block-wrap .selector-tag,
.post-body .code-block-wrap .literal {
  color: var(--lavender);
  font-weight: 600;
}
.post-body .code-block-wrap .string,
.post-body .code-block-wrap .regexp,
.post-body .code-block-wrap .addition {
  color: var(--mint);
}
.post-body .code-block-wrap .number,
.post-body .code-block-wrap .built_in,
.post-body .code-block-wrap .type {
  color: var(--gold);
}
.post-body .code-block-wrap .title,
.post-body .code-block-wrap .section,
.post-body .code-block-wrap .function .title {
  color: var(--pink);
}
.post-body .code-block-wrap .params,
.post-body .code-block-wrap .variable,
.post-body .code-block-wrap .attr,
.post-body .code-block-wrap .attribute {
  color: var(--article-code-fg);
}
.post-body .code-block-wrap .meta,
.post-body .code-block-wrap .link {
  color: oklch(62% 0.12 290);
}
/* 两种引用按语义分流（用 :has(footer) 区分，无需改文章）：
   - markdown `>`（旁注/随想/释义）：引导靠「换声」而非装饰——中文排印传统里
     引文与随想换楷体排，与全站圆润的 Maple Mono CN 形成一眼可辨的字体对比，
     再辅以双侧缩进与柔和字色。不加引号、底色或左边条：装饰符号会谎报语义。
   - {% blockquote %}（带署名的真正引文）：添一枚收敛的引号——
     小号、常规字重、半透明，装饰即指事。 */
.post-body blockquote {
  margin: 30px 0;
  padding: 0 1.5em;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "BiauKai", "TW-Kai", serif;
  color: var(--article-text-soft);
  font-size: 1em; /* 楷体字面小、笔画细，不再缩字号 */
  line-height: 1.9;
}
.post-body blockquote p { margin-bottom: 10px; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body blockquote:has(footer) {
  position: relative;
  padding-left: 2.3em;
}
.post-body blockquote:has(footer)::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 1.8em;
  line-height: 1;
  font-weight: 400;
  color: color-mix(in oklch, var(--pink) 55%, transparent);
  pointer-events: none;
}
/* {% blockquote %} 的署名行：出处是元信息，换回站点的 mono 元信息声音 */
.post-body blockquote footer {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--article-muted);
  text-align: right;
}

/* ================= 文章组件（scripts/post-tags.js） ================= */

/* 剧透条：毛玻璃模糊，hover / 聚焦显形，未显形时不可选中 */
.post-body .spoiler {
  border-radius: 5px;
  background: color-mix(in oklch, var(--article-text-soft) 13%, transparent);
  filter: blur(5px);
  cursor: pointer;
  user-select: none;
  transition: filter .22s ease;
}
.post-body .spoiler:hover,
.post-body .spoiler:focus-visible {
  filter: blur(0);
  user-select: text;
}
.post-body .spoiler:focus-visible {
  outline: 1.5px solid var(--pink);
  outline-offset: 2px;
}

/* 台词：粉色角色签 + 正文，基线对齐，连续对话自然堆叠 */
.post-body .dialogue {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 14px 0;
}
.post-body .dialogue-speaker {
  flex-shrink: 0;
  padding: 1px 9px;
  border-radius: 99px;
  background: var(--pink-light);
  color: var(--pink);
  font-size: 12.5px;
  font-weight: 700;
}
.post-body .dialogue-line { flex: 1; min-width: 0; }
.post-body .dialogue-line p { margin-bottom: 6px; }
.post-body .dialogue-line > :last-child { margin-bottom: 0; }

/* 评分：空星轨道 + 实心星按宽度裁切，星形与星图封面的闪星同一枚 */
.post-body .rating {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.post-body .rating-track { position: relative; display: inline-flex; }
.post-body .rating svg {
  width: 17px;
  height: 17px;
  margin-right: 3px;
  fill: var(--article-surface-border);
}
.post-body .rating-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  display: inline-flex;
}
.post-body .rating-fill svg { fill: var(--gold); flex-shrink: 0; }
.post-body .rating-num { font-size: 13px; color: var(--article-muted); }

/* 外链书签卡：标题 + 描述 + 域名，箭头表示出站 */
.post-body .linkcard {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 26px 0;
  padding: 15px 18px;
  background: var(--article-surface);
  border: 1.5px solid var(--article-surface-border);
  border-radius: var(--r-sm);
  background-image: none; /* 覆盖 .post-body a 的链接底色 */
  color: var(--article-text);
  transition: border-color .18s ease;
}
.post-body .linkcard:hover { border-color: var(--pink); }
.post-body .linkcard-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.post-body .linkcard-title { font-weight: 700; font-size: 15px; color: var(--article-emphasis); }
.post-body .linkcard-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--article-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-body .linkcard-domain { font-size: 12px; color: var(--article-muted); }
.post-body .linkcard-arrow { color: var(--article-muted); font-size: 15px; transition: color .18s ease; }
.post-body .linkcard:hover .linkcard-arrow { color: var(--pink); }

/* 图组：2/3 列网格，图片保留灯箱放大，移动端降列 */
.post-body .gallery { margin: 26px 0; }
.post-body .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.post-body .gallery-cols-3 .gallery-grid { grid-template-columns: repeat(3, 1fr); }
/* marked 会把连续图片包进同一个 <p>：display:contents 让 <img> 直接成为网格项，
   换行的 <br> 会白占一个格子，顺手消掉 */
.post-body .gallery-grid p { display: contents; margin: 0; }
.post-body .gallery-grid br { display: none; }
.post-body .gallery-grid img { margin: 0; width: 100%; }

/* 按键帽：加厚的底边框模拟键帽侧面 */
.post-body kbd {
  font-size: .82em;
  padding: 1px 7px 2px;
  border-radius: 6px;
  background: var(--article-surface);
  border: 1px solid var(--article-surface-border);
  border-bottom-width: 2.5px;
  color: var(--article-emphasis);
  white-space: nowrap;
}

/* 折叠块：原生 details，chevron 旋转表示开合 */
.post-body details {
  margin: 26px 0;
  padding: 0 18px;
  background: var(--article-surface);
  border: 1.5px solid var(--article-surface-border);
  border-radius: var(--r-sm);
}
.post-body details summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--article-emphasis);
  user-select: none;
}
.post-body details summary::-webkit-details-marker { display: none; }
.post-body details summary::before {
  content: '\203A';
  color: var(--pink);
  font-weight: 700;
  transition: transform .18s ease;
}
.post-body details[open] summary {
  margin-bottom: 14px;
  border-bottom: 1px solid var(--article-surface-border);
}
.post-body details[open] summary::before { transform: rotate(90deg); }
.post-body ul, .post-body ol {
  padding-left: 1.45em;
  margin: 0 0 18px;
}
.post-body li {
  margin-bottom: 8px;
  padding-left: 2px;
}
.post-body li::marker {
  color: var(--pink);
  font-weight: 700;
}
.post-body li > :last-child { margin-bottom: 0; }
.post-body table {
  display: block;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: separate;
  border-spacing: 0;
  margin: 26px 0;
  font-size: 14px;
  background: var(--article-surface);
  border-radius: var(--r-sm);
  border: 1.5px solid var(--article-surface-border);
}
.post-body table :where(thead, tbody) { min-width: 100%; }
.post-body th,
.post-body td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--article-surface-border);
  border-right: 1px solid color-mix(in oklch, var(--article-surface-border) 70%, transparent);
  vertical-align: top;
  min-width: 8rem;
  white-space: normal;
}
.post-body th:last-child,
.post-body td:last-child { border-right: none; }
.post-body th {
  background: var(--article-code-header);
  font-weight: 700;
  color: var(--fg);
}
.post-body tbody tr:nth-child(even) { background: var(--article-table-stripe); }
.post-body tr:last-child td { border-bottom: none; }
.post-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--article-surface-border), transparent);
  margin: 36px 0;
}

.post-sidebar { position: sticky; top: 24px; }
.sidebar-card {
  background: var(--card); border-radius: var(--r);
  border: 1.5px solid var(--border); padding: 18px;
  margin-bottom: 16px;
}
.sidebar-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--muted); }
.toc-item {
  --toc-rail-left: 0px;
  position: relative;
  display: block; font-size: 13px; color: var(--muted); text-decoration: none;
  padding: 5px 0 5px calc(var(--toc-rail-left) + 12px);
  margin-bottom: 2px;
  transition: color .2s ease; font-weight: 400;
  overflow-wrap: anywhere;
}
.toc-item::before {
  content: '';
  position: absolute;
  left: var(--toc-rail-left);
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--border);
  transition: background .2s ease, opacity .2s ease;
}
.toc-item:hover { color: var(--pink); }
.toc-item:hover::before { background: var(--pink); }
/* 高亮是一枚液体弹丸：静止时与原来的胶囊指示条完全一致；
   液体感只在运动里——弹丸整体旅行（不跨越拉伸），流速最快时体积守恒地
   拉长变细（.flow 动画，时长 = 飞行时长），到达时位置过冲回稳；
   transition 时长随距离伸缩（恒定流速），打断时天然从中断处续流。 */
.toc-item.active { color: var(--pink); }
.toc-item.active::before { opacity: 0; }
.toc { position: relative; }
.toc-slug {
  position: absolute; left: 0; top: 0;
  width: 3px; height: 0;
  margin-left: -0.5px; /* 与 2px 轨道同轴 */
  opacity: 0;
  transition: left .5s cubic-bezier(.3,1.2,.35,1),
              transform .5s cubic-bezier(.3,1.2,.35,1),
              height .3s ease,
              opacity .2s ease;
  pointer-events: none;
  z-index: 1;
}
.toc-slug.on { opacity: 1; }
.toc-slug.instant { transition: none; }
.toc-slug-body {
  display: block; width: 100%; height: 100%;
  border-radius: 99px;
  background: var(--pink);
  transform-origin: center;
}
/* 流动形变：拉长变细（体积守恒）→ 到达前回弹 → 归位 */
.toc-slug.flow .toc-slug-body {
  animation: toc-slug-flow var(--flow-dur, .5s) cubic-bezier(.4,0,.3,1);
}
@keyframes toc-slug-flow {
  0%   { transform: scale(1, 1); }
  35%  { transform: scale(.72, 1.5); }
  70%  { transform: scale(1.06, .94); }
  100% { transform: scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .toc-slug { transition: none; }
  .toc-slug.flow .toc-slug-body { animation: none; }
}
.toc-h3 { --toc-rail-left: 12px; font-size: 12px; }
.toc-h4 { --toc-rail-left: 24px; font-size: 11px; }
.author-card { display: flex; gap: 12px; align-items: center; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%; /* deslop-ignore 19 */
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 2px solid var(--border);
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-avatar span {
  font-size: 20px; color: var(--muted); line-height: 1;
}
.author-name { font-size: 14px; font-weight: 700; }
.author-handle { font-size: 12px; color: var(--muted); }
.author-widget-bio {
  font-size: 12px; color: var(--muted); line-height: 1.65;
  margin: 12px 0 0; font-weight: 400;
}
.author-actions {
  display: flex; flex-direction: column; gap: 8px;
}
.author-actions-inline {
  flex-direction: row; flex-wrap: nowrap; gap: 6px;
}
.author-actions-icon-only .author-action-btn {
  flex: 1 1 0;
  padding: 9px;
  box-shadow: none;
}
.author-widget-inner .author-actions-inline { margin-top: 14px; }
.author-action-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 6px 10px;
  border-radius: 99px; border: 1.5px solid var(--border);
  background: var(--card); color: var(--muted);
  text-decoration: none;
  transition: transform .18s ease, color .2s ease, border-color .2s ease, filter .2s ease;
  min-width: 0;
}
.author-action-label { white-space: nowrap; }
.author-action-btn:hover {
  border-color: var(--pink); color: var(--pink); transform: translateY(-1px);
}
.author-action-btn.primary {
  background: transparent;
  border-color: color-mix(in oklch, var(--pink) 45%, transparent);
  color: var(--pink);
}
.author-action-btn.primary:hover {
  border-color: var(--pink); color: var(--pink);
}
.author-action-icon { flex-shrink: 0; }
.author-widget-minimal { padding: 14px 16px; }

.post-footer-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px;
}
.nav-card {
  background: var(--card); border-radius: var(--r);
  border: 1.5px solid var(--border); padding: 18px 20px;
  text-decoration: none; color: inherit;
}
.nav-card:hover { border-color: var(--pink-light); }
.nav-card-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.nav-card-title { font-size: 14px; font-weight: 700; line-height: 1.4; }
.nav-card.next { text-align: right; }
.nav-card.placeholder { opacity: .5; pointer-events: none; }

#read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--pink);
  z-index: 999; transition: width .1s; /* deslop-ignore 26 */
}

/* ===== PROJECTS ===== */
.project-featured {
  background: var(--card); border-radius: var(--r);
  border: 1.5px solid var(--border); padding: 32px;
  margin-bottom: 32px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: center;
  position: relative; overflow: hidden;
}
.project-featured-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px;
  background: var(--pink);
  color: white; display: inline-block; margin-bottom: 12px;
}
.project-featured h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.project-featured p { font-size: 14px; color: var(--muted); line-height: 1.7; font-weight: 400; max-width: 480px; margin-bottom: 16px; }
.project-icon-big {
  width: 120px; height: 120px; border-radius: var(--r);
  background: var(--bg2) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1.5px solid var(--border);
  overflow: hidden;
}
.project-icon-big span {
  font-size: 56px; font-weight: 500; color: var(--muted); /* deslop-ignore 11 */
  line-height: 1;
}

.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.project-card {
  background: var(--card); border-radius: var(--r);
  border: 1.5px solid var(--border); padding: 24px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.project-card:hover { border-color: var(--pink); }
.project-card-header { display: flex; align-items: center; gap: 12px; }
.project-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--bg2) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1.5px solid var(--border);
  overflow: hidden;
}
.project-icon span {
  font-size: 22px; font-weight: 500; color: var(--muted);
  line-height: 1;
}
.project-name { font-size: 16px; font-weight: 700; }
.project-desc { font-size: 13px; color: var(--muted); line-height: 1.65; font-weight: 400; flex: 1; }
.project-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; flex-wrap: wrap; gap: 8px; }
.project-stats { display: flex; gap: 14px; }
.project-stat { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.project-links { display: flex; gap: 8px; }
.project-link {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px;
  border: 1.5px solid var(--border); color: var(--muted); text-decoration: none;
  transition: all .2s;
}
.project-link:hover { border-color: var(--pink); color: var(--pink); }

.archive-title {
  font-size: 14px; font-weight: 700; color: var(--muted);
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.archive-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.archive-card {
  background: var(--card); border-radius: var(--r);
  border: 1.5px solid var(--border); padding: 16px;
  cursor: pointer;
  text-decoration: none; color: inherit; display: block;
}
.archive-card:hover { border-color: var(--pink); }
.archive-card-name { font-size: 13px; font-weight: 700; color: var(--pink); margin-bottom: 4px; }
.archive-card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; font-weight: 400; }

.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 99px;
  background: transparent;
  color: var(--pink); text-decoration: none; transition: border-color .2s ease;
  border: 1.5px solid color-mix(in oklch, var(--pink) 45%, transparent);
  cursor: pointer; font-family: inherit;
}
.link-btn:hover { border-color: var(--pink); }
.link-btn-ghost {
  background: none; border: 1.5px solid var(--border); color: var(--muted);
}
.link-btn-ghost:hover { border-color: var(--pink); color: var(--pink); opacity: 1; }

/* ===== ABOUT ===== */
.about-hero {
  padding: 56px 0 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.about-hero > div:last-child {
  min-width: 0;
}
.about-hero .social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.about-avatar-wrap { position: relative; }
.about-avatar-ring {
  width: 120px; height: 120px; border-radius: 50%; /* deslop-ignore 19 */
  background: conic-gradient(var(--pink), var(--pink-light), var(--pink));
  padding: 3px;
}
.about-avatar-inner {
  width: 100%; height: 100%; border-radius: 50%; /* deslop-ignore 19 */
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.about-avatar-inner img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; } /* deslop-ignore 19 */
.about-avatar-inner span {
  font-size: 54px; color: var(--muted); line-height: 1; /* deslop-ignore 11 */
}
.about-hero-name { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.about-hero-handle { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.about-hero-bio { font-size: 15px; line-height: 1.8; color: var(--fg-soft); font-weight: 400; max-width: 480px; }
.about-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.social-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.about-section { margin-bottom: 48px; }
.about-section h2 {
  font-size: 20px; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px; border-bottom: 1.5px solid var(--border);
}
.about-section p { font-size: 15px; line-height: 1.9; color: var(--body-text); font-weight: 400; margin-bottom: 14px; }
.about-section a { color: var(--pink); text-decoration: none; border-bottom: 1px dashed var(--pink-light); }
.about-section a:hover { border-bottom-style: solid; }

.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skill-card {
  background: var(--card); border-radius: var(--r);
  border: 1.5px solid var(--border); padding: 18px;
}
.skill-card:hover { border-color: var(--pink-light); }
.skill-category { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-pill {
  font-size: 12px; padding: 3px 10px; border-radius: 99px;
  background: var(--bg2); border: 1px solid var(--border); color: var(--fg); font-weight: 400;
}

.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px;
  background: linear-gradient(180deg, var(--pink), transparent); /* deslop-ignore 06 */
  border-radius: 99px;
}
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-dot {
  position: absolute; left: -20px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%; /* deslop-ignore 19 */
  background: var(--pink);
  border: 2px solid var(--bg); box-shadow: 0 0 0 2px var(--pink-light);
}
.timeline-year { font-size: 12px; font-weight: 700; color: var(--pink); margin-bottom: 4px; }
.timeline-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.timeline-desc { font-size: 13px; color: var(--muted); line-height: 1.6; font-weight: 400; }

.contact-card {
  background: var(--pink-light);
  border-radius: var(--r); padding: 32px; text-align: center;
  border: 1.5px solid var(--border);
}
.contact-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--muted); margin-bottom: 20px; font-weight: 400; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 24px; border-radius: 99px;
  background: var(--pink);
  color: white; font-family: inherit; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none;
  transition: opacity .2s;
}
.contact-btn:hover { opacity: .85; }

.skills-grid-compact { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.about-content { max-width: 640px; }

/* ===== 404 ===== */
.notfound {
  text-align: center;
  padding: 72px 20px 40px;
  max-width: 520px;
  margin: 0 auto;
}
.notfound-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px; border-radius: 99px;
  background: var(--card); color: var(--muted);
  border: 1.5px solid var(--border);
  margin-bottom: 24px;
}
.notfound-num {
  font-size: clamp(72px, 14vw, 120px);
  font-weight: 700; line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 12px;
  color: var(--fg);
}
.notfound-title {
  font-size: 22px; font-weight: 700; line-height: 1.4;
  margin-bottom: 12px;
}
.notfound-bio {
  font-size: 15px; line-height: 1.8; color: var(--muted);
  margin-bottom: 24px;
}
.notfound-actions {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.notfound-hint { font-size: 13px; color: var(--muted); }
.notfound-hint a { color: var(--pink); text-decoration: none; }
.notfound-hint a:hover { text-decoration: underline; } /* deslop-ignore 09 */

/* ===== STATUS / WIDGET ===== */
.status-card { width: 100%; font-family: inherit; }
.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.status-identity { min-width: 0; flex: 1; }
.status-name-row {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.status-name {
  font-size: 14px; font-weight: 700; color: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.status-handle {
  font-size: 11px; color: var(--muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.status-links {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.status-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.status-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%; /* deslop-ignore 19 */
  object-fit: cover;
  display: block;
  border: 1.5px solid var(--border);
}
.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--status-color, var(--mint));
  border-radius: 50%; /* deslop-ignore 19 */
  position: absolute;
  bottom: -1px;
  right: -1px;
  border: 2px solid var(--card);
  box-sizing: content-box;
  flex-shrink: 0;
}
.status-body { display: flex; flex-direction: column; gap: 8px; }
.status-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; }
.status-icon {
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.status-svg { width: 14px; height: 14px; color: var(--muted); display: block; }
.status-val { color: var(--fg-soft); line-height: 1.45; word-break: break-word; }
.status-val strong { font-weight: 600; color: var(--pink); }

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .repos-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .project-featured { grid-template-columns: 1fr; }
  .project-icon-big { display: none; }
  .about-hero { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .post-footer-nav { grid-template-columns: 1fr; }
  .post-body .gallery-cols-2 .gallery-grid { grid-template-columns: 1fr; }
  .post-body .gallery-cols-3 .gallery-grid { grid-template-columns: 1fr 1fr; }
  /* 窄屏上压缩引用缩进，保住行长 */
  .post-body blockquote { padding: 0 0.8em; }
  .post-body blockquote:has(footer) { padding-left: 1.9em; }
}

/* ── 微交互：hover 的动态感交给光标柔光（js-card-glow），可点击性交给边框变色；
   按下时轻微回缩，给出实体般的触感。不再做 hover 抬升与阴影生长。 */
.project-card, .project-featured, .nav-card, .archive-card,
.skill-card, .widget-card, .filter-card, .sidebar-card,
.post-card, .repo-card {
  transition: transform .18s ease, border-color .3s ease;
}
.project-card:active, .nav-card:active, .archive-card:active,
.skill-card:active, .post-card:active, .repo-card:active {
  transform: scale(.99);
  transition-duration: .1s;
}

/* 光标柔光：鼠标在卡面上时，光标附近一圈极淡柔光（位置由 JS 写入 --glow-x/y）。
   这是卡片 hover 的主反馈——星光追随光标，动态感由它一个承担；
   触屏 / 减弱动画时不挂载 JS，无此层。 */
@media (hover: hover) and (pointer: fine) {
  html.js-card-glow .project-card,
  html.js-card-glow .project-featured,
  html.js-card-glow .nav-card,
  html.js-card-glow .archive-card,
  html.js-card-glow .skill-card,
  html.js-card-glow .widget-card,
  html.js-card-glow .filter-card,
  html.js-card-glow .sidebar-card,
  html.js-card-glow .post-card,
  html.js-card-glow .repo-card {
    position: relative;
    --glow-x: 50%;
    --glow-y: 50%;
  }
  html.js-card-glow .project-card::after,
  html.js-card-glow .project-featured::after,
  html.js-card-glow .nav-card::after,
  html.js-card-glow .archive-card::after,
  html.js-card-glow .skill-card::after,
  html.js-card-glow .widget-card::after,
  html.js-card-glow .filter-card::after,
  html.js-card-glow .sidebar-card::after,
  html.js-card-glow .post-card::after,
  html.js-card-glow .repo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .62s cubic-bezier(.22, 1, .36, 1);
    background: radial-gradient( /* deslop-ignore 06 — 指向光标的柔光，hover 主反馈 */
      200px circle at var(--glow-x) var(--glow-y),
      color-mix(in oklch, var(--pink) 10%, transparent) 0%,
      color-mix(in oklch, var(--pink) 3%, transparent) 42%,
      transparent 68%
    );
  }
  html[data-color-mode="dark"].js-card-glow :is(.project-card, .project-featured, .nav-card, .archive-card, .skill-card, .widget-card, .filter-card, .sidebar-card, .post-card, .repo-card)::after {
    background: radial-gradient( /* deslop-ignore 06 */
      200px circle at var(--glow-x) var(--glow-y),
      color-mix(in oklch, var(--pink) 14%, transparent) 0%,
      color-mix(in oklch, var(--pink) 5%, transparent) 40%,
      transparent 70%
    );
  }
  html.js-card-glow :is(.project-card, .project-featured, .nav-card, .archive-card, .skill-card, .widget-card, .filter-card, .sidebar-card, .post-card, .repo-card).card-glow-on::after {
    opacity: 1;
  }
}
/* 文章行：悬停整行轻移、标题变色（已有），按下回缩 */
.article-row { transition: background .2s ease, transform .18s ease; }
.article-row:hover { transform: translateX(3px); }
.article-row:active { transform: translateX(1px) scale(.997); transition-duration: .1s; }

/* 小药丸 / 按钮：悬停即时跟手 + 按压回缩 */
.filter-btn, .page-btn, .link-btn, .nav-pill, .social-btn, .footer-pill, .theme-switch-btn {
  transition: transform .18s ease, color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.filter-btn:active, .page-btn:active, .link-btn:active,
.nav-pill:active, .social-btn:active, .footer-pill:active, .theme-switch-btn:active {
  transform: scale(.94);
  transition-duration: .1s;
}
.contact-btn:active, .link-btn:active { transform: scale(.96); }
