/* ==========================================================================
 * sections/hero.css — 01 / 序幕：苏轼名句卡 + 立体山水视差画卷 + 四格书签条
 * 依赖：tokens.css, base.css, components/tactile.css
 * ========================================================================== */

.hero-section {
  min-height: 100vh;
  /* 移动端 Safari 的 100vh 含地址栏高度，进页面会看到内容跳动；
     svh 按「地址栏展开时的最小视口」计算，老浏览器自动回退到上面的 100vh */
  min-height: 100svh;
  /*
    这里必须用 padding-top / padding-bottom 而不是 padding 简写：
    本元素同时挂着 .container 类，简写会把 .container 的左右内边距一起清零，
    首屏内容就会直接贴到屏幕边缘（窄屏上尤其明显）。
  */
  padding-top: 7.5rem;
  padding-bottom: 4.5rem;
  display: flex;
  align-items: center;
}
.hero-editorial-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 12fr;
  gap: 2.5rem;
}
.hero-top-deck {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

/* ---------- 左侧：苏轼名句 + 杂志大字报排版 ---------- */
.hero-quote-card {
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(30, 42, 36, 0.06);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s ease;
}
.hero-Watermark {
  position: absolute;
  right: -1rem;
  bottom: -2.8rem;
  font-family: var(--font-serif-en);
  font-style: italic;
  font-size: clamp(7rem, 13vw, 11rem);
  color: rgba(74, 107, 86, 0.06);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  transition: transform 0.6s var(--ease-out-expo);
}
.hero-stamp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin-bottom: 2.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-subtle);
}
.stamp-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-sage);
  background: rgba(74, 107, 86, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
}
.stamp-serial {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.sushi-quote-zh {
  font-family: var(--font-serif-zh);
  font-weight: 500;
  font-size: clamp(2.1rem, 3.8vw, 3.4rem);
  line-height: 1.32;
  color: var(--ink-main);
  letter-spacing: 0.02em;
  margin-bottom: 1.4rem;
}
/* 首屏诗句弹簧上浮动画 */
.hero-line-reveal {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero-line-reveal > span {
  display: block;
  animation: heroSpringUp 1.25s var(--ease-out-expo) backwards;
}
.hero-line-reveal.delay-1 > span {
  animation-delay: 0.14s;
}
@keyframes heroSpringUp {
  0% { transform: translateY(110%) rotate(2deg); }
  100% { transform: translateY(0%) rotate(0deg); }
}

.sushi-quote-zh .seal-mark {
  display: inline-block;
  font-family: var(--font-serif-zh);
  font-size: 0.9rem;
  color: var(--surface-card);
  background: var(--accent-terracotta);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  transition: transform 0.4s var(--ease-out-expo);
}
.sushi-quote-en {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink-body);
  max-width: 44ch;
  margin-bottom: 2rem;
}
.sushi-source {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  font-family: var(--font-serif-zh);
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* ---------- 右侧：多层立体山水画卷卡片 ---------- */
.hero-art-stage {
  position: relative;
  perspective: 1000px;
}
.art-frame {
  background: var(--surface-card);
  padding: 1rem 1rem 1.4rem;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 28px 64px rgba(30, 42, 36, 0.09);
  transform: rotate(1.2deg);
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
}
.art-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  min-height: 310px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #DFD5C5 0%, #E8C5A5 55%, #8BA399 100%);
}
.art-canvas-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* 视差图层：transform 由 js/modules/hero-parallax.js 写入 */
.parallax-layer {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.art-caption-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding: 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* ---------- 底部特征胶片条 ---------- */
.hero-ticker-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.mini-spec-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out-expo), background 0.3s ease, border-color 0.3s ease, box-shadow 0.45s ease;
}
.mini-spec-card::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-sage), var(--accent-terracotta));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out-expo);
}
.spec-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.spec-val {
  font-family: var(--font-serif-zh);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-main);
}

/* ---------------------------------------------------------------------------
   悬停态：仅限有指针的设备（触屏点按会留下粘滞 hover）
   --------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .hero-quote-card:hover .hero-Watermark {
    transform: translate3d(-12px, -8px, 0) scale(1.05);
  }
  .hero-quote-card:hover .seal-mark {
    transform: rotate(-6deg) scale(1.08);
  }
  .mini-spec-card:hover {
    transform: translateY(-5px);
    background: var(--surface-card);
    border-color: var(--border-strong);
    box-shadow: 0 14px 32px rgba(30, 42, 36, 0.07);
  }
  .mini-spec-card:hover::before {
    transform: scaleX(1);
  }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 960px) {
  .hero-top-deck {
    grid-template-columns: 1fr;
  }
  .hero-ticker-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-top: 6rem;
    padding-bottom: 3.5rem;
  }
  .hero-editorial-grid {
    gap: 1.75rem;
  }
  .hero-quote-card {
    padding: 1.6rem 1.35rem;
    border-radius: 16px;
  }
  .hero-Watermark {
    right: -0.5rem;
    bottom: -1.6rem;
    font-size: 6rem;
  }
  .hero-stamp-row {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
  }
  .sushi-quote-zh {
    font-size: 1.85rem;
    margin-bottom: 1rem;
  }
  .sushi-quote-zh .seal-mark {
    font-size: 0.78rem;
    margin-left: 0.35rem;
  }
  .sushi-quote-en {
    font-size: 1.05rem;
    margin-bottom: 1.4rem;
  }
  .sushi-source {
    font-size: 0.82rem;
  }
  .art-frame {
    padding: 0.7rem 0.7rem 1.05rem;
    border-radius: 16px;
  }
  .art-canvas-wrap {
    min-height: 210px;
    border-radius: 10px;
  }
  .art-caption-bar {
    font-size: 0.62rem;
  }
  .hero-ticker-strip {
    gap: 0.7rem;
  }
  .mini-spec-card {
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
  }
  .spec-val {
    font-size: 0.94rem;
  }
}

@media (max-width: 420px) {
  .hero-ticker-strip {
    grid-template-columns: 1fr;
  }
  .sushi-quote-zh {
    font-size: 1.65rem;
  }
}
