/* =========================================================
   editorial.css — Ben's Blog 个人风格 / 编辑性排版增强
   与 index.html / subjects / articles 的 :root 变量共用
   ========================================================= */

/* 首字下沉：让开篇段落有"翻开一本书"的仪式感 */
.dropcap::first-letter {
  font-family: Georgia, 'Noto Serif SC', serif;
  font-size: 3.4rem;
  line-height: 0.8;
  font-weight: 700;
  float: left;
  margin: 0.45rem 0.65rem 0 0;
  color: var(--color-gold);
}

/* 金句大引用：居中、放大、衬线斜体，营造"被一句话击中"的停顿感 */
.pullquote {
  margin: 2.8rem auto;
  max-width: 780px;
  text-align: center;
  padding: 0.5rem 1.5rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.65;
  font-weight: 600;
  font-style: italic;
  color: var(--color-dark);
}
.pullquote::before,
.pullquote::after {
  content: '\201C';
  color: var(--color-gold);
  font-size: 2.8rem;
  font-family: Georgia, serif;
  line-height: 0;
  vertical-align: -0.35em;
  margin: 0 0.15rem;
}
.pullquote::after { content: '\201D'; }
.pullquote .attr {
  display: block;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-gold);
}

/* 旁注 / 边注：像在书页空白处写的批注 */
.sidenote {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-left: 2px solid var(--color-gold);
  padding-left: 0.9rem;
  margin: 1.5rem 0;
  font-style: italic;
  line-height: 1.7;
}
@media (min-width: 1100px) {
  .sidenote {
    float: right;
    width: 230px;
    margin: 0.6rem -250px 1rem 1.6rem;
    border-left: none;
    border-top: 2px solid var(--color-gold);
    padding: 0.7rem 0 0;
  }
}

/* "我的想法"旁注：朴素的个人标注，不拟人、不包装，只是我当下的判断 */
.ben-says {
  margin: 2rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--color-gold);
  background: rgba(201,162,39,0.05);
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--color-text);
}
.ben-says .monogram { display: none; }
.ben-says .body { font-size: 0.98rem; line-height: 1.85; color: var(--color-text); }
.ben-says .body p { margin: 0 0 0.6rem; }
.ben-says .body p:last-child { margin: 0; }
.ben-says .body .who {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* 章节引言：用"写信给读者"的语气开场 */
.letter-intro {
  max-width: 800px;
  margin: 0 auto 2.6rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--color-text-muted);
}
.letter-intro .hello {
  color: var(--color-gold);
  font-weight: 700;
}

/* 署名落款 */
.signoff {
  text-align: center;
  margin-top: 2.2rem;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.9;
}
.signoff .name {
  color: var(--color-gold);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.05em;
}

/* 卡片错落浮现：让网格有呼吸节奏，而不是整块砸下来 */
.js .stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.stagger.in-view > * { opacity: 1; transform: none; }
.stagger.in-view > *:nth-child(1) { transition-delay: 0.04s; }
.stagger.in-view > *:nth-child(2) { transition-delay: 0.11s; }
.stagger.in-view > *:nth-child(3) { transition-delay: 0.18s; }
.stagger.in-view > *:nth-child(4) { transition-delay: 0.25s; }
.stagger.in-view > *:nth-child(5) { transition-delay: 0.32s; }
.stagger.in-view > *:nth-child(6) { transition-delay: 0.39s; }

/* Hero 创作原则小注：平实、不营销 */
.hero-note {
  max-width: 660px;
  margin: 1.6rem auto 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  text-align: center;
}

/* Hero 轻微呼吸光：给深色 Hero 一点"活气"，不喧宾夺主 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(201,162,39,0.12), transparent 55%);
  animation: heroPulse 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* 尊重"减少动态"偏好 */
@media (prefers-reduced-motion: reduce) {
  .js .stagger > * { opacity: 1 !important; transform: none !important; }
  .hero::after { animation: none; }
}

/* 学科卡片 / 文章卡片的"个人开场白" */
.subject-card .hook,
.article-card .hook {
  display: block;
  color: var(--color-dark);
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

/* 板块内「已写笔记」显式联动提示 */
.linkage-note {
  margin-top: 1.9rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-gold);
  padding: 0.5rem 0 0.5rem 1.1rem;
  background: rgba(201,162,39,0.05);
}
.linkage-note a {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(201,162,39,0.4);
}
.linkage-note a:hover { border-bottom-color: var(--color-gold); }
