/* ━━━ 求婚 · 电影化滚动序章（Secret Garden）━━━
   依赖 garden.css 的变量与共享组件。本表只负责「一个元素一个元素冒出来」的舞台。 */

:root { --accent: #c98a9a; }

/* ─────────── 首屏 · 心跳 ─────────── */
.heart-stage { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 36px; }
#heartSvg { width: clamp(94px, 12vw, 132px); height: auto; overflow: visible; filter: drop-shadow(0 12px 18px color-mix(in srgb, var(--accent-deep) 34%, transparent)); }
#heartSvg .outline { fill: none; stroke: var(--accent-deep); stroke-width: 2.5; stroke-linejoin: round; opacity: .85; }
#heartSvg .heart-fluid { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  #heartSvg { animation: heartbeat var(--beat, 1.6s) ease-in-out infinite; transform-origin: center; }
  @keyframes heartbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.1); } 24% { transform: scale(1); } 36% { transform: scale(1.06); } 48% { transform: scale(1); } }
}
.hold-hint { font-size: 13.5px; letter-spacing: .26em; text-indent: .26em; color: var(--ink-soft); }

/* ═══════════ 幕一 · 电影旁白（钉住 · 逐句浮现） ═══════════ */
.story-wrap { position: relative; z-index: 2; height: 340vh; }
.story-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
/* 缓缓游移的体积光，像夜里有暖灯在远处呼吸 */
.story-aura {
  position: absolute; inset: -10% -16%; z-index: 0; pointer-events: none; opacity: 0;
  background:
    radial-gradient(42vw 34vw at 30% 32%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%),
    radial-gradient(38vw 30vw at 72% 66%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 62%);
  filter: blur(26px); transition: opacity 1.2s ease;
}
.story-cue {
  position: absolute; top: clamp(15vh, 18vh, 22vh); left: 0; right: 0; z-index: 2;
  font-family: var(--hand); font-size: clamp(20px, 2.8vw, 30px); color: var(--accent-deep);
  letter-spacing: .04em; opacity: 0; transform: translateY(10px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.story-cue.shown { opacity: .92; transform: none; }
.story-lines { position: relative; z-index: 1; width: min(88vw, 940px); height: 1px; }
.story-line {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  width: min(88vw, 940px);
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(27px, 4.6vw, 60px); line-height: 1.45; letter-spacing: .03em;
  color: var(--ink); text-wrap: balance; opacity: 0; will-change: opacity, transform;
}
.story-line em { font-style: normal; color: var(--accent-deep); }
.story-line .soft { color: var(--ink-soft); }

/* ═══════════ 幕二 · 戒指揭幕（钉住 · 自光中升起） ═══════════ */
.ring-wrap { position: relative; z-index: 2; height: 340vh; }
.ring-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
/* 暖色暮光：随滚动加深，把视线收束到中央 */
.ring-dusk {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background:
    radial-gradient(70vw 70vh at 50% 46%, transparent 30%, color-mix(in srgb, var(--accent-deep) 30%, transparent) 100%),
    radial-gradient(120vw 90vh at 50% 120%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 60%);
  mix-blend-mode: multiply;
}
/* 自顶垂下的束光 */
.ring-beam {
  position: absolute; left: 50%; top: -8%; width: clamp(180px, 26vw, 380px); height: 86%;
  transform: translateX(-50%); z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--gold) 30%, transparent), color-mix(in srgb, var(--accent) 14%, transparent) 46%, transparent 78%);
  filter: blur(14px); clip-path: polygon(40% 0, 60% 0, 88% 100%, 12% 100%);
}
/* 旋转的星芒 */
.ring-rays {
  position: absolute; left: 50%; top: 50%; width: min(150vmin, 1300px); height: min(150vmin, 1300px);
  margin: max(-75vmin, -650px) 0 0 max(-75vmin, -650px); z-index: 1; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(from 0deg,
    color-mix(in srgb, var(--gold) 26%, transparent) 0deg 1.1deg,
    transparent 1.1deg 13deg);
  -webkit-mask: radial-gradient(circle, #000 4%, color-mix(in srgb,#000 40%, transparent) 22%, transparent 56%);
  mask: radial-gradient(circle, #000 4%, color-mix(in srgb,#000 40%, transparent) 22%, transparent 56%);
}
@media (prefers-reduced-motion: no-preference) {
  .ring-rays { animation: raysSpin 48s linear infinite; }
  @keyframes raysSpin { to { transform: rotate(360deg); } }
}
.ring-halo {
  position: absolute; left: 50%; top: 50%; width: min(74vmin, 640px); height: min(74vmin, 640px);
  margin: max(-37vmin, -320px) 0 0 max(-37vmin, -320px); z-index: 1; pointer-events: none;
  border-radius: 50%; opacity: 0; transform: scale(.4);
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 36%, transparent), color-mix(in srgb, var(--accent) 16%, transparent) 42%, transparent 70%);
  filter: blur(6px);
}
.ring-stage { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; }
.ring-tilt { will-change: transform; }
#ringSvg {
  width: clamp(186px, 27vw, 312px); height: auto; overflow: visible; display: block;
  opacity: 0; transform: translateY(34px) scale(.82); will-change: transform, opacity;
  filter: drop-shadow(0 26px 40px color-mix(in srgb, var(--accent-deep) 24%, transparent)) drop-shadow(0 0 22px color-mix(in srgb, #bfe0f4 60%, transparent));
}
/* 台面星芒：缓慢呼吸 + 跟随光标偏移 */
#gemGlint { transform-box: fill-box; transform-origin: center; transition: transform .3s ease, opacity .3s ease; }
@media (prefers-reduced-motion: no-preference) {
  #gemGlint { animation: glintBreathe 3.4s ease-in-out infinite; }
  @keyframes glintBreathe { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
}
.ring-sparkles { position: absolute; inset: -30% -34%; z-index: 3; pointer-events: none; }
.ring-sparkles span {
  position: absolute; left: var(--sx); top: var(--sy); width: var(--ss, 12px); height: var(--ss, 12px);
  background: radial-gradient(circle, #fff 0 18%, color-mix(in srgb, var(--gold) 78%, #fff) 60%, transparent 72%);
  clip-path: polygon(50% 0, 54% 46%, 100% 50%, 54% 54%, 50% 100%, 46% 54%, 0 50%, 46% 46%);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--gold) 60%, #fff));
  opacity: 0; transform: scale(.2);
}
.ring-sparkles.on span {
  animation: ringTwinkle 2.4s ease-in-out infinite; animation-delay: var(--sd, 0s);
}
@keyframes ringTwinkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(40deg); }
}
.ring-hint {
  position: absolute; top: clamp(12vh, 15vh, 18vh); left: 0; right: 0; z-index: 4; text-align: center;
  width: min(86vw, 640px); margin-inline: auto; pointer-events: none;
  font-size: clamp(12px, 1.4vw, 14px); letter-spacing: .22em; text-indent: .22em; color: var(--ink-soft);
  opacity: 0; transition: opacity 1s ease;
}
.ring-hint.shown { opacity: .82; }
.ring-hint.dismissed { opacity: 0 !important; }
.ring-caption {
  position: absolute; bottom: clamp(9vh, 12vh, 15vh); left: 0; right: 0; z-index: 4; text-align: center;
  width: min(86vw, 760px); margin-inline: auto; pointer-events: none;
  font-size: clamp(19px, 2.4vw, 28px); font-weight: 500; line-height: 1.7; letter-spacing: .05em;
  color: var(--ink); opacity: 0; transform: translateY(16px); will-change: opacity, transform;
}
.ring-caption em { font-style: normal; color: var(--accent-deep); }
.ring-caption small { display: block; margin-top: 12px; font-weight: 400; font-size: clamp(13px, 1.5vw, 15px); letter-spacing: .22em; color: var(--ink-soft); }

/* ═══════════ 幕三 · 把这一秒留下（钉住 · 照片展开） ═══════════ */
.shot-wrap { position: relative; z-index: 2; height: 230vh; }
.shot-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.shot-frame {
  position: relative; overflow: hidden; will-change: transform, width, height;
  width: clamp(220px, 34vw, 460px); aspect-ratio: 4 / 5;
  box-shadow: 0 50px 110px -44px color-mix(in srgb, var(--ink) 48%, transparent);
}
.shot-frame image-slot { display: block; width: 100%; height: 100%; background: var(--ivory); }
.shot-veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--ink) 58%, transparent), transparent 52%);
  opacity: 0; transition: opacity .8s ease;
}
.shot-cap {
  position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px); z-index: 3; text-align: center;
  width: min(86vw, 760px); margin-inline: auto; pointer-events: none;
  font-size: clamp(20px, 2.6vw, 32px); font-weight: 500; letter-spacing: .05em; line-height: 1.6;
  color: #fff; text-shadow: 0 2px 26px color-mix(in srgb, var(--ink) 70%, transparent);
  opacity: 0; transform: translateY(18px);
}
.shot-cap em { font-style: normal; color: color-mix(in srgb, var(--accent) 60%, #fff); }

/* ═══════════ 密谋四步（错落浮现） ═══════════ */
.plot { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 34px); }
.plot-card {
  position: relative; padding: clamp(30px, 3.4vw, 46px) clamp(20px, 2.6vw, 32px);
  background: color-mix(in srgb, var(--ivory) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-deep) 24%, transparent);
  overflow: hidden; transition: transform .7s cubic-bezier(.2,.7,.2,1), box-shadow .7s ease, border-color .7s ease;
}
/* 光标聚光：高级感微互动 */
.plot-card::after, .pkg::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity .5s ease;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%);
}
.plot-card:hover::after, .pkg:hover::after { opacity: 1; }
.plot-card:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--accent-deep) 50%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent-deep) 50%, transparent); }
.plot-card .num { position: absolute; right: 10px; top: -8px; font-family: var(--hand); font-size: 78px; color: color-mix(in srgb, var(--accent) 22%, transparent); line-height: 1; }
.plot-card h3 { font-size: 19px; letter-spacing: .16em; font-weight: 600; margin-bottom: 14px; position: relative; }
.plot-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 2.05; letter-spacing: .05em; text-wrap: pretty; position: relative; }
/* 错落上浮 */
.plot-card.reveal { transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.plot-card.reveal:nth-child(1) { transition-delay: 0s; }
.plot-card.reveal:nth-child(2) { transition-delay: .12s; }
.plot-card.reveal:nth-child(3) { transition-delay: .24s; }
.plot-card.reveal:nth-child(4) { transition-delay: .36s; }

/* ═══════════ 排练 · 按住戒指 ═══════════ */
.vow { text-align: center; max-width: 720px; margin: 0 auto; }
.vow .hold-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 42px; }
#holdBtn {
  position: relative; width: 132px; height: 132px; border-radius: 50%; cursor: pointer;
  border: none; background: transparent; padding: 0; -webkit-tap-highlight-color: transparent;
}
#holdBtn svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
#holdBtn .track { fill: none; stroke: color-mix(in srgb, var(--accent-deep) 22%, transparent); stroke-width: 3; }
#holdBtn .prog { fill: none; stroke: var(--accent-deep); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
#holdBtn .ring-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
#holdBtn .ring-icon svg { position: static; width: 54px; height: 54px; transform: none; }
#vowResult { min-height: 92px; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s ease; }
#vowResult.show { opacity: 1; transform: none; }
#vowResult .hand-accent { font-size: clamp(30px, 4.4vw, 46px); white-space: nowrap; }
#vowResult small { color: var(--ink-soft); font-size: 14px; letter-spacing: .18em; }

/* ═══════════ 保密承诺 ═══════════ */
.promise { display: flex; justify-content: center; gap: clamp(22px, 5vw, 70px); flex-wrap: wrap; text-align: center; }
.promise div { max-width: 220px; }
.promise .hand-accent { font-size: clamp(24px, 2.8vw, 32px); display: block; margin-bottom: 10px; }
.promise p { color: var(--ink-soft); font-size: 14px; line-height: 1.95; letter-spacing: .07em; }

/* ═══════════ 现场 · 全景一幕（full-bleed 大图） ═══════════ */
.scene-band {
  position: relative; width: 100%; margin: clamp(48px, 9vh, 110px) 0; overflow: hidden;
}
.scene-band image-slot {
  display: block; width: 100%; height: clamp(360px, 58vh, 640px);
  background: var(--ivory);
}
.scene-band-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 120%, color-mix(in srgb, var(--accent-deep) 30%, transparent), transparent 60%);
  mix-blend-mode: multiply; opacity: .5; }
.scene-band-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 24px clamp(40px, 8vh, 86px); text-align: center;
  background: linear-gradient(to top, color-mix(in srgb, var(--ink) 56%, transparent), transparent 56%);
}
.scene-kicker { letter-spacing: .42em; text-indent: .42em; font-size: 12.5px; color: rgba(255,255,255,.82); margin-bottom: 14px; }
.scene-line {
  font-family: var(--serif); font-weight: 500; color: #fff;
  font-size: clamp(24px, 3.6vw, 46px); line-height: 1.5; letter-spacing: .03em; text-wrap: balance;
  text-shadow: 0 2px 30px color-mix(in srgb, var(--ink) 60%, transparent); max-width: 18em;
}
.scene-line em { font-style: normal; color: color-mix(in srgb, var(--accent) 55%, #fff); }

/* ═══════════ 现场 · 散落的瞬间（三张拍立得） ═══════════ */
.scene-trio { display: flex; justify-content: center; align-items: center; gap: clamp(18px, 3.4vw, 52px); flex-wrap: wrap; }
.trio-item { display: flex; flex-direction: column; gap: 16px; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.trio-item:nth-child(1) { transform: rotate(-2.2deg); }
.trio-item:nth-child(3) { transform: rotate(2deg); }
.trio-item.up { transform: translateY(-3.5vh); }
.trio-item.up:hover { transform: translateY(-3.5vh) scale(1.02); }
.trio-item:nth-child(1):hover { transform: rotate(-2.2deg) scale(1.02); }
.trio-item:nth-child(3):hover { transform: rotate(2deg) scale(1.02); }
.trio-item image-slot {
  display: block; width: clamp(210px, 23vw, 320px); height: clamp(280px, 31vw, 430px);
  background: var(--ivory);
  box-shadow: 0 34px 74px -34px color-mix(in srgb, var(--ink) 42%, transparent);
}
.trio-item figcaption { text-align: center; font-family: var(--hand); font-size: clamp(19px, 2vw, 26px); color: var(--accent-deep); letter-spacing: .04em; }

/* ═══════════ 客户私语 · 轮播 ═══════════ */
.voice #voiceQuote, .voice #voiceSign { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.voice.swap #voiceQuote, .voice.swap #voiceSign { opacity: 0; transform: translateY(10px); }
.voice blockquote { min-height: 3.9em; display: flex; align-items: center; justify-content: center; }
.voice-dots { display: flex; gap: 11px; justify-content: center; margin-top: 30px; }
.voice-dots button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, var(--accent-deep) 26%, transparent);
  transition: transform .4s ease, background .4s ease;
}
.voice-dots button.on { background: var(--accent-deep); transform: scale(1.5); }

/* ═══════════ 画卷 · 封面进入按钮 ═══════════ */
.g-cover { position: relative; line-height: 0; }
.g-open {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 12px 14px; border: none; cursor: pointer;
  font: 600 14px/1 "Noto Serif SC", serif; letter-spacing: .12em; color: #fff;
  background: linear-gradient(to top, color-mix(in srgb, var(--ink) 72%, transparent), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease;
}
.g-cover:hover .g-open { opacity: 1; transform: none; }
.g-open em { font-style: normal; transition: transform .4s ease; }
.g-open:hover em { transform: translateX(5px); }
@media (hover: none) { .g-open { opacity: 1; transform: none; padding-top: 28px; } }

/* ═══════════ 案例详情浮层 ═══════════ */
.case-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: clamp(14px, 3vw, 44px); }
.case-overlay[hidden] { display: none; }
.case-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 56%, transparent); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); opacity: 0; transition: opacity .45s ease; }
.case-overlay.show .case-backdrop { opacity: 1; }
.case-sheet {
  position: relative; z-index: 1; width: min(1060px, 96vw); max-height: 92vh; overflow: auto;
  background: var(--cream); border-radius: 6px; padding: clamp(30px, 4vw, 58px) clamp(22px, 3.5vw, 52px) clamp(34px, 4vw, 56px);
  box-shadow: 0 70px 130px -44px color-mix(in srgb, var(--ink) 70%, transparent);
  opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.case-overlay.show .case-sheet { opacity: 1; transform: none; }
.case-close {
  position: absolute; top: 14px; right: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer; background: color-mix(in srgb, var(--accent-deep) 12%, transparent); color: var(--ink);
  font-size: 24px; line-height: 1; transition: background .3s ease, transform .3s ease;
}
.case-close:hover { background: color-mix(in srgb, var(--accent-deep) 26%, transparent); transform: rotate(90deg); }
.case-head { text-align: center; margin-bottom: clamp(24px, 3.4vh, 40px); }
.case-head .kicker { color: var(--gold); margin-bottom: 12px; }
.case-head h2 { font-size: clamp(26px, 3.6vw, 44px); letter-spacing: .08em; font-weight: 600; margin-bottom: 12px; }
.case-sub { color: var(--ink-soft); font-size: clamp(14px, 1.7vw, 17px); line-height: 1.9; letter-spacing: .05em; max-width: 40em; margin: 0 auto; text-wrap: pretty; }
.case-note { margin-top: 16px; font-size: 12.5px; letter-spacing: .14em; color: var(--ink-soft); }
.case-note em { font-style: normal; color: var(--accent-deep); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.3vw, 16px); }
.case-grid live-slot { width: 100%; aspect-ratio: 3 / 4; border-radius: 3px; box-shadow: 0 20px 44px -26px color-mix(in srgb, var(--ink) 40%, transparent); }
.case-grid live-slot.hero { grid-column: span 2; aspect-ratio: 4 / 3; }
.case-grid live-slot.wide { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (max-width: 600px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid live-slot.hero, .case-grid live-slot.wide { grid-column: span 2; aspect-ratio: 4 / 3; }
}

/* ─────────── 响应式 ─────────── */
@media (max-width: 880px) { .plot { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .trio-item, .trio-item.up, .trio-item:nth-child(1), .trio-item:nth-child(3) { transform: none; }
  .scene-band image-slot { height: clamp(300px, 46vh, 420px); }
}
@media (max-width: 540px) { .plot { grid-template-columns: 1fr; } }

/* ─────────── 弱动效降级：钉住场景转为常规流 ─────────── */
@media (prefers-reduced-motion: reduce) {
  .story-wrap, .ring-wrap, .shot-wrap { height: auto; }
  .story-sticky, .ring-sticky, .shot-sticky { position: static; height: auto; overflow: visible; flex-direction: column; padding: clamp(70px, 12vh, 130px) 24px; gap: 36px; }
  .story-aura, .ring-dusk, .ring-beam, .ring-rays, .ring-halo, .shot-veil { display: none; }
  .story-cue { position: static; opacity: 1; transform: none; margin-bottom: 8px; }
  .story-lines { height: auto; display: flex; flex-direction: column; gap: 30px; }
  .story-line { position: static; transform: none; opacity: 1; width: 100%; }
  #ringSvg { opacity: 1; transform: none; }
  .ring-sparkles { display: none; }
  #gemGlint { animation: none; }
  .ring-caption { position: static; opacity: 1; transform: none; margin-top: 28px; }
  .shot-cap { position: static; opacity: 1; transform: none; color: var(--ink); text-shadow: none; margin-top: 24px; }
  .shot-frame { width: min(90vw, 460px); }
}
