/* 单篇文章页 */
.article-wrap {
  max-width: 720px; margin: 0 auto;
  padding: 64px 32px 100px;
  position: relative; z-index: 1;
}

.back-link {
  display: inline-flex; align-items: center;
  font-family: var(--body);
  font-size: 13px; color: var(--t2);
  text-decoration: none;
  margin-bottom: 36px;
  transition: color .15s;
}
.back-link:hover { color: var(--red); }

.article-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--t3);
  margin-bottom: 20px;
}
.article-cat {
  color: var(--red); font-size: 10px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; font-style: italic;
}
.article-sep { opacity: .45; }

.article-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -.5px; margin-bottom: 16px;
}

.article-excerpt {
  font-size: 16px; color: var(--t2);
  line-height: 1.75; font-style: italic;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

/* cover image */
.article-cover {
  width: 100%; border-radius: 8px; overflow: hidden;
  margin-bottom: 40px;
}
.article-cover img { width: 100%; display: block; }

/* prose body */
.article-body { font-size: 16px; line-height: 1.85; color: var(--t1); }
.article-body h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -.3px;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 18px; font-weight: 700;
  margin: 32px 0 10px;
}
.article-body p { margin-bottom: 20px; }
.article-body strong { font-weight: 500; }
.article-body em { font-style: italic; color: var(--t2); }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol {
  padding-left: 24px; margin-bottom: 20px;
}
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 3px solid var(--red);
  padding: 12px 20px;
  margin: 28px 0;
  background: rgba(200,16,46,0.04);
  border-radius: 0 6px 6px 0;
}
.article-body blockquote p { margin: 0; font-style: italic; color: var(--t2); }
.article-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: rgba(0,0,0,0.07);
  padding: 2px 5px; border-radius: 3px;
}
.article-body pre {
  background: var(--t1); color: #e8e0d4;
  padding: 20px; border-radius: 8px;
  overflow-x: auto; margin: 24px 0;
}
.article-body pre code {
  background: none; color: inherit; padding: 0; font-size: 13px;
}
.article-body img {
  width: 100%; border-radius: 8px;
  margin: 8px 0 24px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: opacity .15s;
}
.article-body img:hover { opacity: .92; }

/* lightbox overlay */
.lb-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 1000;
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lb-overlay.open { display: flex; }
.lb-overlay img {
  max-width: 100%; max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
  cursor: zoom-out;
}

.article-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 14px;
}
.article-body th {
  text-align: left; font-weight: 500;
  padding: 10px 14px;
  border-bottom: 2px solid var(--line);
  color: var(--t2);
}
.article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.article-body tr:last-child td { border-bottom: none; }

/* slides embed */
.slides-embed {
  margin-top: 56px;
}
.slides-embed-label {
  font-family: var(--body);
  font-size: 9px; font-weight: 500; font-style: italic;
  color: var(--t3); letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 12px;
}
.slides-frame-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.slides-frame-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.slides-fullscreen {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px; color: var(--t3);
  text-decoration: none; font-style: italic;
  transition: color .15s;
}
.slides-fullscreen:hover { color: var(--red); }
