/* ========================================
   components.css — Shared UI components
   ======================================== */

/* ---- Site nav ---- */

.site-nav {
  display: flex;
  align-items: baseline;
  width: 100%;
  padding-top: clamp(10px, 1.5vh, 20px);
  position: relative;
  z-index: 10;
}

.site-nav__brand {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 20px);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.site-nav__mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--verm);
  transform: rotate(45deg);
  transition: transform 0.4s;
  position: relative;
  top: -2px;
}

.site-nav__meta {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--mist);
  margin-left: var(--space-3);
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav__links {
  display: flex;
  gap: clamp(20px, 2.4vw, 36px);
  margin-left: auto;
}

.site-nav__links a {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.13em;
  color: var(--lead);
  text-decoration: none;
  position: relative;
  text-transform: lowercase;
}

.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--verm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-ink);
}

.site-nav__links a:hover {
  color: var(--verm);
}

.site-nav__links a:hover::after {
  transform: scaleX(1);
}

.site-nav__github {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.13em;
  color: var(--lead);
  text-decoration: none;
  position: relative;
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: clamp(20px, 2.4vw, 36px);
}

.site-nav__github-mobile {
  display: none;
  color: var(--lead);
  text-decoration: none;
}

.site-nav__github-icon {
  display: none;
  flex: 0 0 auto;
}

.site-nav__github-arrow,
.site-nav__github-arrow-text {
  flex: 0 0 auto;
}

.site-nav__github::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--verm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-ink);
}

.site-nav__github:hover {
  color: var(--verm);
}

.site-nav__github:hover::after {
  transform: scaleX(1);
}

.site-nav__rule {
  height: 1px;
  width: 100%;
  min-height: 1px;
  background: var(--verm);
  margin-top: 8px;
  transform: scaleX(1);
  transform-origin: left;
  position: relative;
  z-index: 10;
  opacity: 1;
  display: block;
}

/* ---- Hero title ---- */

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(50px, 5vw, 90px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 9.5em;
  text-wrap: balance;
  word-break: keep-all;
  margin-top: clamp(24px, 4.5vh, 60px);
}

.hero-title__line {
  display: block;
  white-space: nowrap;
}

.hero-title__mark {
  position: relative;
  display: inline-block;
}

.hero-title__mark::after {
  content: none;
}

.hero-title__cursor {
  display: inline-block;
  width: 5px;
  height: 0.9em;
  margin-left: 0.08em;
  background: var(--verm);
  vertical-align: -0.08em;
  opacity: 1;
  animation: caret-blink 1.6s step-end infinite;
  will-change: opacity;
}

.hero-title__caret {
  display: none;
}

/* ---- Hero supporting text ---- */

.hero-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-quote);
  color: var(--lead);
  margin-top: var(--space-3);
}

.hero-focus {
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.18vw, 19px);
  color: var(--lead);
  margin-top: var(--space-3);
  max-width: 35em;
  line-height: 1.9;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.14em;
  color: var(--mist);
  text-transform: uppercase;
}

.hero-tags span {
  position: relative;
}

.hero-tags span + span::before {
  content: "/";
  position: absolute;
  left: -13px;
  color: var(--hair);
}

/* ---- Project rail ---- */

.project-rail {
  list-style: none;
  padding: 0;
  margin-top: var(--space-5);
}

.project-entry {
  border-top: 1px solid var(--line-strong);
  padding-block: var(--space-4);
  transition: background 0.2s;
}

.project-entry__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-entry__meta {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  color: var(--mist);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-entry__title {
  font-family: var(--font-display);
  font-size: var(--text-lede);
  font-weight: 600;
  color: var(--ink);
  margin-top: var(--space-2);
  transition: color 0.2s;
}

.project-entry__link:hover .project-entry__title {
  color: var(--verm);
}

.project-entry__desc {
  font-size: var(--text-body);
  color: var(--lead);
  margin-top: var(--space-1);
  line-height: 1.6;
}

/* ---- Hero actions ---- */

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: clamp(24px, 4.5vh, 60px);
}

/* ---- CTAs ---- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--ink);
  padding: 17px 30px;
  text-decoration: none;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 1px 0 rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
  transition:
    box-shadow 0.3s ease,
    transform 0.15s ease,
    letter-spacing 0.4s ease,
    color 0.3s ease;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 130% 70% at 50% 50%, var(--verm) 0%, var(--verm-deep) 100%);
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 0;
  border-radius: inherit;
}

.cta:hover {
  box-shadow: 0 10px 30px rgba(var(--verm-rgb),0.34), 0 2px 8px rgba(var(--verm-rgb),0.20), 0 1px 0 rgba(0,0,0,0.4);
  letter-spacing: 0.02em;
  color: #FFF8EC;
}

.cta:hover::before {
  transform: translateX(0);
}

.cta:active {
  transform: translateY(1px);
}

.cta > span:not(.cta-corner) {
  position: relative;
  z-index: 1;
}

.cta > svg {
  position: relative;
  z-index: 1;
}

.cta-ornament {
  width: 8px;
  height: 8px;
  background: var(--verm);
  transform: rotate(45deg);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.cta:hover .cta-ornament {
  background: var(--paper);
  transform: rotate(225deg) scale(1.12);
}

.cta-corner {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--paper);
  opacity: 0.45;
  transition: width 0.28s var(--ease-ink), height 0.28s var(--ease-ink), opacity 0.28s var(--ease-ink);
}

.cta-corner--tl {
  top: 7px;
  left: 7px;
  border-right: 0;
  border-bottom: 0;
}

.cta-corner--br {
  right: 7px;
  bottom: 7px;
  border-left: 0;
  border-top: 0;
}

.cta:hover .cta-corner {
  width: 14px;
  height: 14px;
  opacity: 0.86;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--lead);
  text-decoration: none;
}

.cta-secondary:hover {
  color: var(--ink);
  text-decoration: none;
}

.cta-secondary::after {
  content: "";
  height: 1px;
  width: 0;
  background: var(--ink);
  position: absolute;
  left: 0;
  bottom: -2px;
  transition: width 0.25s var(--ease-brush);
}

.cta-secondary {
  position: relative;
}

.cta-secondary:hover::after {
  width: 100%;
}

.cta svg {
  transition: transform 0.3s;
}

.cta:hover svg {
  transform: translateX(6px);
}

/* ---- Plate ---- */

.plate {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: min(100%, 620px);
  margin-inline: auto;
}

.plate-pane::before {
  content: none;
  position: absolute;
  left: calc(clamp(20px, 3.1vw, 48px) * -1);
  top: clamp(2px, 0.8vh, 10px);
  bottom: clamp(92px, 12vh, 134px);
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-strong) 10%, var(--line-strong) 92%, transparent);
  pointer-events: none;
}

/* ---- Plate Head ---- */
.plate__head {
  display: flex;
  align-items: center;
  margin-bottom: clamp(12px, 1.7vh, 18px);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.14em;
  color: var(--mist);
  text-transform: uppercase;
}

.plate__head-num {
  color: var(--lead);
  font-weight: 500;
  margin-right: 10px;
}

.plate__head-rule {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

/* 卷首行置于左栏时：缩短横线至约“千颜的博客”宽度 */
.plate__head--hero {
  width: 34vw;
  min-width: 300px;
  margin-bottom: clamp(14px, 2vh, 22px);
}

/* 文章页右栏：QY.02 纪要行在上、ledger 方块在下，撑满行高使 QY.02 顶部对齐左侧 Knowledge Base */
.articles-hero__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  gap: clamp(24px, 5vh, 72px);
  min-width: 0;
}

.plate__head--articles {
  width: 100%;
  margin: 0;
}

.plate__head-meta {
  white-space: nowrap;
  margin-left: clamp(8px, 1vw, 14px);
}

/* ---- Plate Title ---- */
.plate__title {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  margin-bottom: clamp(12px, 1.8vh, 22px); /* 缩减间距，优化紧凑感 */
  font-size: clamp(13px, 1.1vw, 17px);
  color: var(--ink);
  flex-wrap: wrap;
  text-wrap: balance;
}

.plate__title-cn {
  font-family: var(--font-ui);
  font-style: italic;
  font-weight: 600;
}

.plate__title-sep,
.plate__title-en {
  color: var(--lead);
}

.plate__title-en {
  font-family: var(--font-display);
  font-style: italic;
}

/* ---- Plate Frame ---- */
.plate__frame-wrap {
  position: relative;
  width: 100%;
  max-width: clamp(280px, 24vw, 340px);
  margin: 0;
  flex-shrink: 0;
}

.plate__frame {
  width: 100%;
  background: transparent;
  position: relative;
  overflow: visible;
  cursor: default;
  line-height: 0;
}

.plate__art {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.04) grayscale(1) sepia(0.16) brightness(0.98);
  opacity: 1;
  will-change: transform;
  transition: opacity 0.3s var(--ease-ink),
              transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.plate__art:hover {
  opacity: 1;
}

.plate:hover .plate__art {
  opacity: 1;
  transform: none;
}

/* ---- Plate frame 四角裁切角标 ---- */
.plate__frame-wrap::before,
.plate__frame-wrap::after,
.plate__frame::before,
.plate__frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid var(--mist);
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
}

.plate__frame-wrap::before {
  top: -8px;
  left: -8px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.plate__frame-wrap::after {
  top: -8px;
  right: -8px;
  border-top-width: 1px;
  border-right-width: 1px;
}

.plate__frame::before {
  bottom: -8px;
  left: -8px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.plate__frame::after {
  bottom: -8px;
  right: -8px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

/* ---- Plate Figure（人物 + 右侧竖排 FIG 说明）---- */
.plate__figure {
  display: flex;
  align-items: stretch;
  gap: clamp(12px, 1.4vw, 22px);
}

/* ---- Plate Caption（竖排，位于人物右侧）---- */
.plate__caption {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: clamp(20px, 3vh, 32px);
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--lead);
  white-space: nowrap;
  text-transform: uppercase;
}

.plate__caption-num {
  color: var(--lead);
  letter-spacing: 0.12em;
}

.plate__caption-text {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  font-size: 11px;
}

/* ---- Plate Prop ---- */
.plate__prop {
  flex-shrink: 0;
  margin-top: clamp(20px, 2.6vh, 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 0.9vh, 9px);
}

.prop__eyebrow {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--mist);
  text-transform: uppercase;
  white-space: nowrap;
}

.prop__eyebrow-num {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.16em;
}

.prop__body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.78;
  color: var(--lead);
  font-style: normal;
  text-wrap: pretty;
}

.prop__body::after {
  content: "\00a0■";
  color: var(--ink);
  font-size: 0.92em;
  letter-spacing: 0;
  white-space: nowrap;
}

.prop__end {
  display: none;
}

/* ---- Site footer ---- */

.site-footer {
  flex: 0 0 auto;
  padding-bottom: clamp(12px, 1.8vh, 20px);
  z-index: 10;
}

.site-footer__rule {
  height: 1px;
  width: 100%;
  background: var(--verm);
  transform-origin: left;
}

/* ---- Status bar ---- */

.status-bar {
  display: flex;
  align-items: center;
  gap: 0 clamp(1em, 1.8vw, 2.2em);
  padding-top: clamp(8px, 1.2vh, 13px);
  font-family: var(--font-mono);
  font-size: clamp(7px, 0.65vw, 9px);
  letter-spacing: 0.10em;
  color: var(--lead);
  text-transform: uppercase;
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}

.status-spacer {
  flex: 1 1 auto;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest);
  position: relative;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--forest);
  opacity: 0;
  animation: pulse-dot 2.4s ease-out infinite;
}

@keyframes pulse-dot {
  0%   { opacity: 0.4; transform: scale(0.8); }
  50%  { opacity: 0;   transform: scale(2.0); }
  100% { opacity: 0;   transform: scale(2.0); }
}

/* ---- Corner marks ---- */

.corner-mark {
  position: fixed;
  z-index: 5;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0.5;
}

.corner-mark::before,
.corner-mark::after {
  content: "";
  position: absolute;
  background: var(--mist);
}

.corner-mark::before {
  width: 100%;
  height: 1px;
}

.corner-mark::after {
  width: 1px;
  height: 100%;
}

.cm-tl {
  top: clamp(12px, 1.4vh, 18px);
  left: clamp(12px, 1.4vw, 22px);
}

.cm-tl::before { top: 0; left: 0; }
.cm-tl::after  { top: 0; left: 0; }

.cm-tr {
  top: clamp(12px, 1.4vh, 18px);
  right: clamp(12px, 1.4vw, 22px);
}

.cm-tr::before { top: 0; right: 0; }
.cm-tr::after  { top: 0; right: 0; }

.cm-bl {
  bottom: clamp(12px, 1.4vh, 18px);
  left: clamp(12px, 1.4vw, 22px);
}

.cm-bl::before { bottom: 0; left: 0; }
.cm-bl::after  { bottom: 0; left: 0; }

.cm-br {
  bottom: clamp(12px, 1.4vh, 18px);
  right: clamp(12px, 1.4vw, 22px);
}

.cm-br::before { bottom: 0; right: 0; }
.cm-br::after  { bottom: 0; right: 0; }

/* ---- Responsive: Mobile nav ---- */

@media (max-width: 720px) {
  .site-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 12px;
    position: relative;
  }

  .site-nav__brand {
    grid-column: 1;
    font-size: clamp(13px, 4.4vw, 17px);
    gap: 6px;
    order: 0;
  }

  .site-nav__meta {
    grid-column: 2;
    margin-left: 0;
    min-width: 0;
    font-size: clamp(5px, 1.7vw, 7px);
    letter-spacing: 0.08em;
    white-space: nowrap;
    text-align: center;
    order: 0;
  }

  .site-nav__github {
    display: none;
  }

  .site-nav__github-mobile {
    display: inline-flex;
    grid-column: 3;
    position: static;
    width: 24px;
    height: 24px;
    line-height: 0;
    z-index: 24;
    color: var(--ink);
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 999px;
  }

  .site-nav__rule {
    height: 3px;
    margin-top: 10px;
  }

  .site-nav__links {
    grid-column: 1 / -1;
    margin-left: 0;
    gap: clamp(16px, 5vw, 26px);
    order: 1;
  }

  .site-nav__github-label,
  .site-nav__github-arrow,
  .site-nav__github-arrow-text {
    display: none;
  }

  .site-nav__github-icon {
    display: none;
  }

  .status-bar {
    flex-wrap: wrap;
  }

  .plate {
    max-width: min(430px, 88vw);
    margin-inline: auto;
  }

  .hero-title {
    font-size: clamp(34px, 11.2vw, 48px);
    letter-spacing: -0.015em;
    line-height: 1.18;
    max-width: 100%;
    margin-top: clamp(14px, 2vh, 22px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: clamp(20px, 3vh, 28px);
  }

  /* QY.01 卷首行：移动端占满宽度（桌面端 34vw 在窄屏太窄） */
  .plate__head--hero {
    width: 100%;
    min-width: 0;
  }

  /* 人物图移动端居中、限制宽度 */
  .plate__frame-wrap {
    margin-inline: auto;
    max-width: min(340px, 78vw);
  }

  .plate-pane__head {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .plate-pane__meta {
    white-space: normal;
  }

  .plate-pane::before {
    display: none;
  }
}

/* ---- 文章展示页 ---- */

.page--articles .site-nav__links a[aria-current="page"] {
  color: var(--ink);
}

.page-main--articles {
  padding-top: clamp(42px, 7vh, 82px);
}

.articles-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 34vw);
  gap: clamp(36px, 6vw, 98px);
  align-items: end;
  position: relative;
}

.articles-hero::after {
  content: "";
  position: absolute;
  left: calc(66% + clamp(16px, 2vw, 38px));
  top: 12%;
  bottom: -18%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-strong) 28%, var(--line-strong) 72%, transparent);
  pointer-events: none;
}

.articles-hero__copy {
  max-width: 780px;
}

.articles-title {
  font-family: var(--font-display);
  font-size: clamp(50px, 5vw, 90px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: clamp(28px, 4vh, 52px);
  max-width: 9em;
  text-wrap: wrap;
  word-break: auto-phrase;
  overflow-wrap: normal;
}

.articles-title > span {
  display: block;
}


.articles-lede {
  max-width: 39em;
  margin-top: clamp(28px, 4vh, 52px);
  color: var(--lead);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.9;
}

.articles-ledger {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(var(--glow-rgb), 0.16), rgba(var(--paper-rgb), 0.06)),
    rgba(var(--paper-rgb), 0.28);
  box-shadow: 0 24px 70px rgba(var(--shadow-rgb), 0.055);
  transition: box-shadow 0.35s var(--ease-ink);
  overflow: hidden;
}

.articles-ledger::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at var(--mx, 30%) var(--my, 70%), rgba(var(--glow-rgb), 0.34), transparent 36%),
    radial-gradient(circle at var(--mx, 30%) var(--my, 70%), rgba(var(--verm-rgb), 0.12), transparent 56%);
  opacity: 0;
  mix-blend-mode: soft-light;
  transition: opacity 0.35s var(--ease-ink), transform 0.45s var(--ease-ink);
  pointer-events: none;
}

.articles-ledger:hover {
  box-shadow: 0 30px 86px rgba(var(--shadow-rgb), 0.09);
}

.articles-ledger:hover::before {
  opacity: 1;
  transform: scale(1.02);
}

.articles-ledger__head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.16em;
  color: var(--mist);
  text-transform: uppercase;
}

.articles-ledger__title {
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2vw, 32px);
  color: var(--ink);
}

.articles-ledger__body {
  margin-top: var(--space-3);
  color: var(--lead);
  line-height: 1.85;
}

.articles-ledger__rule {
  height: 1px;
  background: var(--line-strong);
  margin-top: var(--space-5);
}

.articles-ledger__meta {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.14em;
  color: var(--mist);
  text-transform: uppercase;
}

.article-board {
  margin-top: clamp(56px, 8vh, 110px);
  border-top: 1px solid var(--line-strong);
  padding-top: 54px;
}

.article-board__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  position: relative;
}

.article-board__title-wrapper {
  position: relative;
}

.article-board__kicker {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin: 0;
  padding-bottom: 20px;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.16em;
  color: var(--mist);
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.article-board h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  line-height: 1;
}

.article-board__controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.article-search {
  display: block;
  position: relative;
  width: 38px;
  height: 32px;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: width 0.22s var(--ease-ink);
  overflow: hidden;
  cursor: pointer;
}

.article-search.is-open,
.article-search:focus-within {
  width: 320px;
  cursor: default;
  transition: width 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-search__field {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  background: rgba(var(--paper-rgb), 0.28);
  box-sizing: border-box;
  transition: 
    border-color 0.3s var(--ease-ink),
    background-color 0.3s var(--ease-ink),
    box-shadow 0.3s var(--ease-ink);
}

.article-search.is-open .article-search__field,
.article-search:focus-within .article-search__field {
  border-color: var(--verm);
  background: var(--paper-glow);
  box-shadow: 0 6px 20px rgba(var(--verm-rgb), 0.05);
}

.article-search__icon {
  flex-shrink: 0;
  color: var(--lead);
  transition: color 0.3s var(--ease-ink);
}

.article-search.is-open .article-search__icon,
.article-search:focus-within .article-search__icon {
  color: var(--verm);
}

.article-search input {
  flex: 1;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-ui);
  font-size: 13px;
  outline: none;
  padding: 0;
  margin: 0 0 0 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-ink);
}

.article-search.is-open input,
.article-search:focus-within input {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0.1s;
}

.article-search input::placeholder {
  color: var(--mist);
  transition: color 0.3s var(--ease-ink);
}

.article-search:focus-within input::placeholder {
  color: var(--hair);
}

.article-search__hotkey {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--mist);
  background: rgba(var(--ink-rgb), 0.04);
  border: 1px solid var(--line-soft);
  padding: 1px 5px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease-ink);
  margin-left: 6px;
}

.article-search.is-open .article-search__hotkey {
  opacity: 1;
}

.article-search:focus-within .article-search__hotkey,
.article-search input:not(:placeholder-shown) ~ .article-search__hotkey {
  opacity: 0 !important;
}

.article-search__clear {
  border: 0;
  background: rgba(var(--ink-rgb), 0.05);
  color: var(--lead);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  transition: 
    background-color 0.25s var(--ease-ink),
    color 0.25s var(--ease-ink),
    transform 0.25s var(--ease-ink);
  padding: 0;
  user-select: none;
  margin-left: 6px;
  opacity: 0;
  pointer-events: none;
}

.article-search.is-open .article-search__clear,
.article-search:focus-within .article-search__clear {
  pointer-events: auto;
  opacity: 1;
}

.article-search__clear:hover {
  background: var(--verm);
  color: var(--paper);
  transform: rotate(90deg);
}

.article-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  opacity: 1;
  max-width: 500px;
  overflow: hidden;
  white-space: nowrap;
  transition: 
    opacity 0.22s var(--ease-ink) 0.08s,
    max-width 0.28s var(--ease-ink) 0.04s,
    transform 0.22s var(--ease-ink) 0.08s;
  transform: translateX(0);
}

.article-search.is-open + .article-filters,
.article-search:focus-within + .article-filters {
  opacity: 0;
  max-width: 0;
  transform: translateX(15px);
  pointer-events: none;
  transition: 
    opacity 0.15s ease-out,
    max-width 0.22s var(--ease-ink),
    transform 0.18s ease-out;
}

.article-filter {
  border: 1px solid var(--line-strong);
  background: rgba(var(--paper-rgb), 0.28);
  color: var(--lead);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.12em;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.25s var(--ease-ink), border-color 0.25s var(--ease-ink), background 0.25s var(--ease-ink), transform 0.25s var(--ease-ink);
}

.article-filter:hover,
.article-filter.is-active {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
  transform: translateY(-1px);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  margin-top: var(--space-5);
}

.article-card {
  grid-column: span 4;
  min-height: 260px;
  border-top: 1px solid var(--line-strong);
  background: rgba(var(--paper-rgb), 0.13);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-rise 520ms var(--ease-ink) forwards;
  animation-delay: calc(80ms * var(--card-index, 0));
}

.article-card--featured {
  grid-column: span 8;
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--mx, 30%) var(--my, 70%), rgba(var(--glow-rgb), 0.36), transparent 35%),
    radial-gradient(circle at var(--mx, 30%) var(--my, 70%), rgba(var(--verm-rgb), 0.13), transparent 58%),
    linear-gradient(90deg, rgba(var(--verm-rgb), 0.08), transparent 44%);
  opacity: 0;
  transform: translateX(-8px);
  mix-blend-mode: soft-light;
  transition: opacity 0.35s var(--ease-ink), transform 0.35s var(--ease-ink);
  pointer-events: none;
}

.article-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 14px;
  height: 14px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transition: width 0.3s var(--ease-ink), height 0.3s var(--ease-ink), border-color 0.3s var(--ease-ink);
}

.article-card:hover::before {
  opacity: 0.95;
  transform: translateX(0);
}

.article-card:hover::after {
  width: 24px;
  height: 24px;
  border-color: rgba(var(--verm-rgb), 0.6);
}

.article-card__link {
  min-height: 260px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 34px);
  color: inherit;
  position: relative;
  z-index: 1;
}

.article-card__topline {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.13em;
  color: var(--mist);
  text-transform: uppercase;
}

.article-card h3 {
  margin-top: var(--space-4);
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 1.9vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.25s var(--ease-ink), transform 0.35s var(--ease-ink);
  text-wrap: wrap;
  word-break: normal;
  overflow-wrap: anywhere;
}

.article-card--featured h3 {
  font-size: clamp(34px, 3.8vw, 64px);
  max-width: 100%;
}

.article-card p {
  margin-top: var(--space-3);
  max-width: 43em;
  color: var(--lead);
  line-height: 1.85;
}

.article-card:hover h3 {
  color: var(--verm);
  transform: translateX(4px);
}

.article-card__foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-5);
}

.article-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.12em;
  color: var(--mist);
  text-transform: uppercase;
}

.article-card__tags span + span {
  position: relative;
}

.article-card__tags span + span::before {
  content: "/";
  position: absolute;
  left: -10px;
  color: var(--hair);
}

.article-card__read {
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--lead);
  transition: color 0.25s var(--ease-ink), transform 0.25s var(--ease-ink);
}

.article-card:hover .article-card__read {
  color: var(--ink);
  transform: translateX(4px);
}

.article-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--line-strong);
  color: var(--lead);
}

.article-empty code {
  font-family: var(--font-mono);
  color: var(--ink);
}

.article-load-status {
  margin-top: 18px;
  min-height: 1.6em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--mist);
}

.article-sentinel {
  height: 1px;
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .articles-hero {
    grid-template-columns: 1fr;
  }

  .articles-hero::after {
    display: none;
  }

  /* 单列时右栏正常堆叠，取消撑高与两端分布 */
  .articles-hero__side {
    align-self: start;
    justify-content: flex-start;
    gap: clamp(18px, 4vw, 30px);
  }

  .article-card,
  .article-card--featured {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .articles-title {
    font-size: clamp(34px, 12vw, 54px);
    line-height: 1.16;
    letter-spacing: -0.015em;
  }

  .articles-lede {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.8;
  }

  .article-board__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-board__controls {
    width: 100%;
    justify-content: flex-start;
  }

  .article-search.is-open,
  .article-search:focus-within {
    width: 100%;
  }

  .article-filters {
    justify-content: flex-start;
  }

  .article-card,
  .article-card--featured {
    grid-column: 1 / -1;
  }

  .article-card {
    min-height: 220px;
  }

  .article-card__link {
    min-height: 220px;
    padding: 20px 4px 18px;
  }

  .article-card__topline,
  .article-card__foot {
    gap: 12px;
  }

  .article-card__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-card--featured h3 {
    font-size: clamp(26px, 9.4vw, 40px);
  }
}

/* ---- 同步生成的文章正文 ---- */

.post-shell {
  max-width: min(1180px, 100%);
  margin-inline: auto;
  padding-bottom: var(--space-8);
}

.post-back {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.13em;
  color: var(--lead);
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.post-back:hover {
  color: var(--verm);
}

.post-kicker {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.16em;
  color: var(--mist);
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.post-body {
  border-top: 1px solid var(--line-strong);
  padding-top: var(--space-5);
}

.post-body h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 100%;
  text-wrap: wrap;
  word-break: auto-phrase;
  overflow-wrap: normal;
}

.post-meta {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.14em;
  color: var(--mist);
  text-transform: uppercase;
}

.post-content {
  margin-top: var(--space-6);
  max-width: 860px;
  color: var(--lead);
  font-size: clamp(16px, 1.16vw, 19px);
  line-height: 2;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.post-content h2 {
  font-size: clamp(28px, 3vw, 44px);
}

.post-content h3,
.post-content h4 {
  font-size: clamp(22px, 2vw, 30px);
}

.post-content h5 {
  font-size: clamp(18px, 1.45vw, 24px);
}

.post-content h6 {
  font-size: clamp(16px, 1.2vw, 20px);
  letter-spacing: 0.02em;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content dl {
  margin-top: var(--space-3);
}

.post-content blockquote {
  margin-left: 0;
  padding-left: var(--space-3);
  border-left: 2px solid var(--verm);
  color: var(--lead);
  font-family: var(--font-display);
  font-style: italic;
}

.post-content hr {
  margin: var(--space-5) 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
}

.post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: var(--space-4);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

/* 块级公式：横向可滚；行内公式不做滚动容器（否则手机端基线错位） */
.post-content mjx-container[display="true"] {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
}

.post-content mjx-container:not([display="true"]) {
  overflow: visible;
  max-width: none;
  vertical-align: baseline;
}

.post-content mjx-container svg {
  max-width: 100%;
}

.post-content mjx-container[display="true"] svg {
  max-width: none;
}

.post-content ul {
  padding-left: 1.2em;
}

.post-content ol {
  margin-top: var(--space-3);
  padding-left: 1.4em;
}

.post-content dl {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 10px 18px;
}

.post-content dt {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}

.post-content dd {
  margin: 0;
  color: var(--lead);
}

.post-content li + li {
  margin-top: var(--space-2);
}

.post-content input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  accent-color: var(--verm);
}

.post-content .task-list-item {
  list-style: none;
}

.post-content .task-list-item label {
  display: inline-flex;
  align-items: center;
}

.post-content mark {
  background: rgba(var(--verm-rgb), 0.14);
  color: inherit;
  padding: 0 0.2em;
}

.post-content sup,
.post-content sub {
  font-size: 0.74em;
}

.post-content .footnotes {
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-strong);
}

.post-content .footnotes ol {
  margin-top: var(--space-2);
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--ink);
  background: rgba(var(--ink-rgb), 0.055);
  padding: 0.12em 0.35em;
}

.post-content pre {
  margin-top: var(--space-4);
  padding: var(--space-4);
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
  background: rgba(var(--ink-rgb), 0.055);
}

/* 横向滚动条统一为纤细宣纸色，替代原生白色滑轨 */
.post-content pre,
.post-table-wrap,
.post-content mjx-container[display="true"],
.post-toc__inner {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--ink-rgb), 0.22) transparent;
}

.post-content pre::-webkit-scrollbar,
.post-table-wrap::-webkit-scrollbar,
.post-content mjx-container[display="true"]::-webkit-scrollbar,
.post-toc__inner::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.post-content pre::-webkit-scrollbar-track,
.post-table-wrap::-webkit-scrollbar-track,
.post-content mjx-container[display="true"]::-webkit-scrollbar-track,
.post-toc__inner::-webkit-scrollbar-track {
  background: transparent;
}

.post-content pre::-webkit-scrollbar-thumb,
.post-table-wrap::-webkit-scrollbar-thumb,
.post-content mjx-container[display="true"]::-webkit-scrollbar-thumb,
.post-toc__inner::-webkit-scrollbar-thumb {
  background: rgba(var(--ink-rgb), 0.22);
  border-radius: 3px;
}

.post-content pre::-webkit-scrollbar-thumb:hover,
.post-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--ink-rgb), 0.34);
}

.post-content pre code {
  background: transparent;
  padding: 0;
}

.post-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: var(--space-4);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.94em;
}

.post-content th,
.post-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.post-content th {
  font-family: var(--font-mono);
  font-size: 0.78em;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
  background: rgba(var(--ink-rgb), 0.035);
}

.post-content tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 720px) {
  .post-body h1 {
    font-size: clamp(32px, 10.4vw, 46px);
    line-height: 1.12;
    max-width: 100%;
  }

  .post-meta {
    flex-wrap: wrap;
  }

  .post-content {
    font-size: 16px;
  }
}

/* ============================================================
   文章阅读页增强 — 进度条 · 目录 · 代码块 · 返回顶部
   ============================================================ */

/* ---- 阅读进度条 ---- */

.post-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: transparent;
}

.post-progress span {
  display: block;
  height: 100%;
  background: var(--verm);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---- 返回顶部 ---- */

.post-top {
  position: fixed;
  right: clamp(16px, 2.5vw, 40px);
  bottom: clamp(20px, 4vh, 48px);
  width: 40px;
  height: 40px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--lead);
  background: var(--paper-glow);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease-ink), transform 0.3s var(--ease-ink),
              color 0.2s, border-color 0.2s, visibility 0.3s;
}

.post-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.post-top:hover {
  color: var(--verm);
  border-color: var(--verm);
}

/* ---- 代码块：高亮容器 + 复制按钮 ---- */

.code-block {
  position: relative;
  margin-top: var(--space-4);
}

.code-block .post-content pre,
.code-block pre {
  margin-top: 0;
  -webkit-overflow-scrolling: touch;
}

.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
  background: var(--paper-glow);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}

.code-block:hover .code-copy,
.code-copy:focus-visible,
.code-copy.is-copied {
  opacity: 1;
}

.code-copy:hover {
  color: var(--verm);
  border-color: var(--verm);
}

.code-copy.is-copied {
  color: var(--forest);
  border-color: var(--forest);
}

@media (hover: none) {
  .code-copy {
    opacity: 1;
  }
}

/* ---- 代码高亮 — 宣纸墨色系（明暗自适应） ---- */

.post-content .hljs {
  color: var(--ink-soft);
  background: transparent;
}

.hljs-comment,
.hljs-quote {
  color: var(--mist);
  font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-deletion,
.hljs-meta {
  color: var(--verm);
}

.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-attribute,
.hljs-template-tag {
  color: var(--forest);
}

.hljs-title,
.hljs-title.function_,
.hljs-title.class_,
.hljs-section,
.hljs-name {
  color: var(--ink);
  font-weight: 600;
}

.hljs-number,
.hljs-symbol,
.hljs-bullet,
.hljs-link,
.hljs-variable,
.hljs-template-variable,
.hljs-built_in,
.hljs-builtin-name,
.hljs-type,
.hljs-attr,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id,
.hljs-selector-pseudo {
  color: var(--lead);
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: 700;
}

/* ---- 目录：桌面右侧悬浮栏 ---- */

.post-shell {
  position: relative;
}

.post-toc {
  display: none;
}

@media (min-width: 1340px) {
  /* 给右栏目录让位，正文与大标题都不会再压到目录下面 */
  .post-shell--with-toc {
    padding-right: 296px;
  }

  .post-toc {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 232px;
  }

  .post-toc__inner {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .post-toc__label {
    margin: 0 0 var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--text-micro);
    letter-spacing: 0.16em;
    color: var(--mist);
    text-transform: uppercase;
  }

  .post-toc__list {
    margin: 0;
    padding: 0 0 0 var(--space-2);
    list-style: none;
    border-left: 1px solid var(--line-soft);
  }

  .post-toc__item {
    margin: 0;
  }

  .post-toc__item + .post-toc__item {
    margin-top: 8px;
  }

  .post-toc__item--h3 {
    padding-left: 14px;
  }

  .post-toc__item a {
    display: block;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--mist);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s;
  }

  .post-toc__item a:hover {
    color: var(--ink);
  }

  .post-toc__item a.is-active {
    color: var(--verm);
  }
}

/* ---- 目录：移动端折叠抽屉 ---- */

.post-toc-mobile {
  margin-top: var(--space-5);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-soft);
}

@media (min-width: 1340px) {
  .post-toc-mobile {
    display: none;
  }
}

.post-toc-mobile summary {
  padding: 12px 2px;
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  letter-spacing: 0.16em;
  color: var(--lead);
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-toc-mobile summary::-webkit-details-marker {
  display: none;
}

.post-toc-mobile summary::after {
  content: "+";
  font-size: 14px;
  color: var(--mist);
  transition: transform 0.25s var(--ease-ink);
}

.post-toc-mobile[open] summary::after {
  transform: rotate(45deg);
}

.post-toc-mobile .post-toc__list {
  margin: 0;
  padding: 0 2px 14px;
  list-style: none;
}

.post-toc-mobile .post-toc__item + .post-toc__item {
  margin-top: 8px;
}

.post-toc-mobile .post-toc__item--h3 {
  padding-left: 16px;
}

.post-toc-mobile .post-toc__item a {
  font-size: 14px;
  color: var(--lead);
}

.post-toc-mobile .post-toc__item a:active,
.post-toc-mobile .post-toc__item a:hover {
  color: var(--verm);
}

/* 锚点跳转预留导航高度 */
.post-content h2,
.post-content h3 {
  scroll-margin-top: 84px;
}
