/* ==========================================================================
 * components/section-header.css — 章节标题行（02/03/04 三个 section 共用）
 *
 * 结构约定（.scrub-line-header 为滚动驱动的钩子类）：
 *   <div class="section-header-row scrub-line-header">
 *     <div><span class="sec-eyebrow">…</span><h2 class="sec-main-title">…</h2></div>
 *     <p class="sec-sub-quote">…</p>
 *   </div>
 * --line-progress 由 js/modules/scroll-choreography.js 逐帧写入。
 * ========================================================================== */

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-strong);
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

/* 章节分割线随滚动动态拉长 */
.section-header-row::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: var(--line-progress, 0%);
  background: var(--accent-sage);
  transition: width 0.15s linear;
}

.sec-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-sage);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.sec-main-title {
  font-family: var(--font-serif-zh);
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
}

.sec-sub-quote {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-body);
}

/* ---------- 窄屏 ---------- */
@media (max-width: 640px) {
  .section-header-row {
    margin-bottom: 2.25rem;
    padding-bottom: 0.9rem;
    gap: 0.5rem;
  }
  .sec-eyebrow {
    font-size: 0.68rem;
  }
  .sec-main-title {
    font-size: 1.6rem;
  }
  .sec-sub-quote {
    font-size: 0.98rem;
  }
}
