/* ==========================================================================
 * sections/moments.css — 02 / 散装切片：梭罗横幅 + 三联文学卡片
 * 依赖：tokens.css, base.css, components/section-header.css,
 *       components/tactile.css, components/animations.css
 * 滚动驱动逻辑见 js/modules/scroll-choreography.js
 * ========================================================================== */

.moments-section {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: linear-gradient(180deg, var(--bg-alabaster) 0%, var(--bg-sage-tint) 50%, var(--bg-alabaster) 100%);
  position: relative;
}

/* ---------- 梭罗横幅：滚动缩放展开 + 逐词聚光灯点亮 ---------- */
.thoreau-banner {
  background: var(--forest-deep);
  color: var(--surface-card);
  border-radius: 22px;
  padding: clamp(2.2rem, 4.5vw, 3.8rem);
  margin-bottom: 2.8rem;
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(30, 42, 36, 0.14);
  will-change: transform, border-radius;
}
.thoreau-banner::after {
  content: '“';
  position: absolute;
  right: 2rem;
  top: -2rem;
  font-family: var(--font-serif-en);
  font-size: 16rem;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
}
.thoreau-en-text {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-size: clamp(1.75rem, 2.8vw, 2.6rem);
  line-height: 1.32;
  color: #F5F2EB;
}
/* 单词 Span 由 js/modules/scroll-choreography.js 在启动时拆分注入 */
.thoreau-en-text .spot-word {
  display: inline-block;
  margin-right: 0.22em;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out-expo), color 0.25s ease;
}
.thoreau-meta-side {
  border-left: 1px solid rgba(250, 247, 242, 0.18);
  padding-left: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.thoreau-author {
  font-family: var(--font-serif-en);
  font-size: 1.15rem;
  color: var(--accent-ochre);
}
.thoreau-note {
  font-size: 0.88rem;
  color: rgba(250, 247, 242, 0.78);
  line-height: 1.7;
}

/* ---------- 三联文学卡片：滚动扇形发牌展开 ---------- */
.moments-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
  perspective: 1200px;
}
.moment-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 14px 36px rgba(30, 42, 36, 0.05);
  will-change: transform;
  transform-origin: center bottom;
  transition: box-shadow 0.45s ease, border-color 0.35s ease;
}
.moment-art-window {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 185px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.4rem;
  border: 1px solid var(--border-subtle);
  position: relative;
}
.moment-art-window svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.85s var(--ease-out-expo);
}
.moment-tag-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-sage);
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}
.classic-quote-box {
  font-family: var(--font-serif-zh);
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ink-main);
  margin-bottom: 0.75rem;
  position: relative;
}
.classic-quote-cite {
  display: block;
  font-family: var(--font-serif-zh);
  font-size: 0.84rem;
  color: var(--ink-muted);
  text-align: right;
  margin-bottom: 1.25rem;
}
.personal-footnote {
  padding-top: 1rem;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.88rem;
  color: var(--ink-body);
  line-height: 1.75;
}

/* ---------------------------------------------------------------------------
   悬停态：仅限有指针的设备（触屏点按会留下粘滞 hover，卡片会一直浮着）
   --------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .moment-card:hover {
    box-shadow: 0 28px 56px rgba(30, 42, 36, 0.13);
    border-color: var(--border-strong);
  }
  .moment-card:hover .moment-art-window svg {
    transform: scale(1.08);
  }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 960px) {
  .thoreau-banner,
  .moments-cards-grid {
    grid-template-columns: 1fr;
  }
  .thoreau-meta-side {
    border-left: none;
    border-top: 1px solid rgba(250, 247, 242, 0.18);
    padding-left: 0;
    padding-top: 1rem;
  }
}

@media (max-width: 640px) {
  .thoreau-banner {
    padding: 1.6rem 1.35rem;
    border-radius: 18px;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }
  .thoreau-banner::after {
    right: 0.75rem;
    top: -1rem;
    font-size: 9rem;
  }
  .thoreau-en-text {
    font-size: 1.45rem;
  }
  .thoreau-author {
    font-size: 1rem;
  }
  .thoreau-note {
    font-size: 0.82rem;
  }
  .moments-cards-grid {
    gap: 1.25rem;
  }
  .moment-card {
    padding: 1.2rem;
    border-radius: 16px;
  }
  .moment-art-window {
    min-height: 155px;
    margin-bottom: 1.1rem;
  }
  .classic-quote-box {
    font-size: 1rem;
  }
  .classic-quote-cite {
    margin-bottom: 1rem;
  }
  .personal-footnote {
    font-size: 0.84rem;
  }
}
