/* =========================================================
   pages.css — 页面专属样式
   · 首页 SITE PULSE
   · 工具箱列表页（卡片网格）
   · 工具子页通用（返回链接 + 占位）
   · 空页面
   ========================================================= */

/* =========================================================
   0. 首页 — 个人介绍（Hero）
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-glass);
  padding: clamp(24px, 4vw, 36px);
  margin-bottom: var(--space-5);
}
.hero::before {
  content: '';
  position: absolute;
  top: -65%;
  right: -6%;
  width: 48%;
  height: 170%;
  background: radial-gradient(closest-side, var(--morandi-blue), transparent 72%);
  opacity: 0.3;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -85%;
  left: -18%;
  width: 40%;
  height: 150%;
  background: radial-gradient(closest-side, var(--morandi-green), transparent 72%);
  opacity: 0.22;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}
.hero__avatar-wrap {
  width: clamp(96px, 13vw, 132px);
  height: clamp(96px, 13vw, 132px);
  padding: 3px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--brand), var(--morandi-green));
  box-shadow: 0 18px 36px -16px rgba(60, 55, 48, 0.55);
}
.hero__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 29px;
}
.hero__avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 29px;
  background: var(--bg);
  font-size: clamp(34px, 4.6vw, 50px);
  font-weight: 700;
  color: var(--brand-ink);
  letter-spacing: -0.02em;
}
.hero__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero__name {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.hero__tagline {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--brand-bg);
  border: 1px solid var(--brand-glow);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 600;
}
.hero__bio {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 68ch;
  white-space: pre-line;
}
.hero__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.hero__skills span {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s;
}
.hero__skills span:hover {
  color: var(--ink-2);
  border-color: var(--brand-glow);
}
.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.hero__link:hover {
  border-color: var(--brand-glow);
  color: var(--brand-ink);
  transform: translateY(-1px);
}
.hero__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(20px, 3vw, 28px);
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid var(--line-soft);
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  transition: transform 0.25s, border-color 0.25s;
}
.hero__stat:hover {
  transform: translateY(-2px);
  border-color: var(--brand-glow);
}
.hero__stat b {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.hero__stat i {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-2);
}
@media (max-width: 720px) {
  .hero__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero__body { align-items: center; }
  .hero__bio { max-width: none; }
  .hero__links,
  .hero__skills,
  .hero__cta { justify-content: center; }
  .hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__stat { padding: 12px; }
  .hero__tagline { align-self: center; }
}

/* ---------- 首页：最近更新 ---------- */
.recent {
  margin-top: var(--space-5);
}
.recent__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.recent__title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.recent__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.recent-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  color: var(--ink);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.recent-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-glow);
  box-shadow:
    0 16px 36px -10px rgba(60, 55, 48, 0.28),
    0 4px 10px -4px rgba(60, 55, 48, 0.12);
}
.recent-card__type {
  align-self: flex-start;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  font-weight: 600;
  background: var(--brand-ink);
  color: #fff;
}
.recent-card__type--post {
  background: #5c7a65;
}
.recent-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.recent-card__date {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
}
@media (max-width: 720px) {
  .recent__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   1. 首页 — SITE PULSE
   ========================================================= */
.pulse {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-5);
  align-items: center;
  box-shadow: var(--shadow-glass);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.pulse__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--space-3);
}
.pulse__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.25);
}
[data-theme="dark"] .pulse__dot {
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.3);
}
.pulse__title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}
.pulse__note {
  font-size: 14px;
  color: var(--ink-3);
  max-width: 40ch;
  line-height: 1.55;
}

.pulse__stats {
  background: var(--bg-sunk);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.pulse__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.pulse__stat-num {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pulse__stat-label {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.pulse__divider {
  width: 1px;
  height: 44px;
  background: var(--line);
}
.pulse__stat:last-child {
  margin-left: auto;
}
.pulse__verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-ink);
  background: var(--brand-bg);
  padding: 8px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--brand-glow);
  white-space: nowrap;
  align-self: center;
}

/* 移动端：放在基础规则之后，避免被 layout.css 中更早的同名媒体规则覆盖 */
@media (max-width: 720px) {
  .pulse { grid-template-columns: 1fr; }
  .pulse__stats { flex-wrap: wrap; }
  .pulse__divider { display: none; }
  .pulse__stat:last-child { margin-left: 0; flex-basis: 100%; }
}

/* =========================================================
   2. 工具箱列表页（卡片网格）
   ========================================================= */
.page--tools-list {
  padding-top: 8px;
}

.tools-list__header {
  margin-bottom: 32px;
}
.tools-list__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.tools-list__title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.tools-list__desc {
  font-size: 15px;
  color: var(--ink-3);
  max-width: 50ch;
  line-height: 1.6;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  transition: box-shadow 0.3s ease;
  color: var(--ink);
}
.tool-card:hover {
  box-shadow:
    0 16px 36px -10px rgba(60, 55, 48, 0.28),
    0 4px 10px -4px rgba(60, 55, 48, 0.12);
}
[data-theme="dark"] .tool-card:hover {
  box-shadow:
    0 16px 36px -10px rgba(0, 0, 0, 0.5),
    0 4px 10px -4px rgba(0, 0, 0, 0.3);
}

.tool-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  margin-bottom: 4px;
}
.tool-card__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tool-card__desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  flex: 1;
}
.tool-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tool-card__tags span {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-sunk);
  color: var(--ink-3);
  border: 1px solid var(--line-soft);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.tool-card:hover .tool-card__tags span {
  background: rgba(107, 130, 148, 0.14);
  color: var(--ink-2);
  border-color: rgba(107, 130, 148, 0.3);
}
.tool-card__open {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  align-self: flex-start;
  transition: transform 0.4s var(--ease-out-quart), color 0.3s;
}
.tool-card:hover .tool-card__open {
  color: var(--brand-ink);
  transform: translateX(6px);
}

/* =========================================================
   3. 工具子页通用（返回链接 + 占位）
   ========================================================= */
.tool-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.2s;
}
.tool-back:hover { color: var(--ink); }

.tool-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.tool-empty__icon {
  font-size: 56px;
  margin-bottom: 16px;
}
.tool-empty__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.tool-empty__desc {
  font-size: 14px;
  color: var(--ink-3);
  max-width: 40ch;
  margin: 0 auto 16px;
}
.tool-empty__hint {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-sunk);
  color: var(--ink-3);
  font-size: 12px;
  font-family: var(--font-mono);
}

/* =========================================================
   4. 空页面（已废弃，保留以防引用）
   ========================================================= */
.page--empty {
  text-align: center;
  padding-top: 100px;
}
.page__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.page__hint {
  font-size: 14px;
  color: var(--ink-3);
}

/* =========================================================
   5. 列表页头部（博文 + 作品集通用）
   ========================================================= */
.list-header {
  margin-bottom: 32px;
}
.list-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.list-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.list-desc {
  font-size: 15px;
  color: var(--ink-3);
  max-width: 50ch;
  line-height: 1.6;
}

/* 博文专栏筛选 */
.blog-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 20px;
}
.blog-column-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg-glass);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.blog-column-chip:hover {
  border-color: var(--brand-glow);
  color: var(--brand-ink);
}
.blog-column-chip.is-active {
  background: var(--brand-bg);
  border-color: var(--brand-glow);
  color: var(--brand-ink);
}
.post-entry__column {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 6px;
  padding: 2px 10px;
  font-size: 12px;
  font-family: inherit;
  border-radius: var(--r-pill);
  border: none;
  background: var(--brand-bg);
  color: var(--brand-ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.post-entry__column:hover {
  background: var(--brand-glow);
  color: var(--brand-ink);
}

/* =========================================================
   6. 博文列表 — 纵向列表
   ========================================================= */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  transition: box-shadow 0.3s ease;
  color: var(--ink);
}
.post-entry:hover {
  box-shadow:
    0 16px 36px -10px rgba(60, 55, 48, 0.28),
    0 4px 10px -4px rgba(60, 55, 48, 0.12);
}
[data-theme="dark"] .post-entry:hover {
  box-shadow:
    0 16px 36px -10px rgba(0, 0, 0, 0.5),
    0 4px 10px -4px rgba(0, 0, 0, 0.3);
}
.post-entry__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.post-entry__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.post-entry__excerpt {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}
.post-entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.post-entry__tags span {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-sunk);
  color: var(--ink-3);
  border: 1px solid var(--line-soft);
}

/* =========================================================
   7. 作品集列表 — 卡片网格
   ========================================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  transition: box-shadow 0.3s ease;
  color: var(--ink);
}
.work-card:hover {
  box-shadow:
    0 16px 36px -10px rgba(60, 55, 48, 0.28),
    0 4px 10px -4px rgba(60, 55, 48, 0.12);
}
[data-theme="dark"] .work-card:hover {
  box-shadow:
    0 16px 36px -10px rgba(0, 0, 0, 0.5),
    0 4px 10px -4px rgba(0, 0, 0, 0.3);
}
.work-card__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-sunk);
}
.work-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-card__cover--placeholder {
  display: grid;
  place-items: center;
  font-size: 40px;
  color: var(--ink-4);
}
.work-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.work-card__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.work-card__type {
  display: inline-block;
  margin: 2px 0 8px;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: var(--r-pill);
  background: var(--brand-bg);
  color: var(--brand-ink);
}
.work-card__desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  flex: 1;
}
.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.work-card__tags span {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-sunk);
  color: var(--ink-3);
  border: 1px solid var(--line-soft);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.work-card:hover .work-card__tags span {
  background: rgba(107, 130, 148, 0.14);
  color: var(--ink-2);
  border-color: rgba(107, 130, 148, 0.3);
}
.work-card__open {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  align-self: flex-start;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
}
.work-card:hover .work-card__open {
  color: var(--brand-ink);
  transform: translateX(6px);
}

/* =========================================================
   8. 详情页（博文 + 作品集通用）
   ========================================================= */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.2s;
}
.back-link:hover { color: var(--ink); }

.post-detail {
  max-width: 720px;
  margin: 0 auto;
}
.post-detail__header {
  margin-bottom: 32px;
}
.post-detail__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.post-detail__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.post-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.post-detail__tags span {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-sunk);
  color: var(--ink-3);
  border: 1px solid var(--line-soft);
}
.post-detail__type {
  display: inline-block;
  margin: 12px 0 4px;
  padding: 3px 12px;
  font-size: 13px;
  border-radius: var(--r-pill);
  background: var(--brand-bg);
  color: var(--brand-ink);
}
.post-detail__cover {
  margin-bottom: 24px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.post-detail__cover img {
  width: 100%;
  display: block;
}
.post-detail__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.post-detail__gallery img,
.post-detail__gallery video {
  width: 100%;
  border-radius: var(--r-md);
  display: block;
  background: var(--bg-sunk);
}
.post-detail__gallery video { aspect-ratio: 16 / 9; }
.post-detail__content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
}
.post-detail__content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.5em 0 0.6em;
}
.post-detail__content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.2em 0 0.5em;
}
.post-detail__content p {
  margin: 0.8em 0;
}
.post-detail__content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-detail__content a:hover {
  color: var(--brand-ink);
}
.post-detail__content ul,
.post-detail__content ol {
  padding-left: 1.5em;
  margin: 0.8em 0;
}
.post-detail__content li {
  margin: 0.3em 0;
}
.post-detail__content blockquote {
  border-left: 3px solid var(--brand);
  padding: 4px 16px;
  margin: 1em 0;
  color: var(--ink-3);
  background: var(--bg-sunk);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.post-detail__content pre {
  background: var(--bg-sunk);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 1em 0;
}
.post-detail__content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}
.post-detail__content pre code {
  background: none;
  padding: 0;
}
.post-detail__content :not(pre) > code {
  background: var(--bg-sunk);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}
.post-detail__content img {
  max-width: 100%;
  border-radius: var(--r-md);
  margin: 1em 0;
}
.post-detail__link {
  margin-top: 24px;
}

/* =========================================================
   9. 空状态（博文 + 作品集通用）
   ========================================================= */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.empty-state__icon {
  font-size: 56px;
  margin-bottom: 16px;
}
.empty-state__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.empty-state__desc {
  font-size: 14px;
  color: var(--ink-3);
  max-width: 40ch;
  margin: 0 auto 16px;
}
.empty-state__btn {
  margin-top: 16px;
}
