/* =========================================================
   晚酌醺享配 · Dreamcore 详情页样式
   核心：深夜、梦境、情绪化、glow、颗粒感
   ========================================================= */

:root {
  --ev-bg: #07061a;
  --ev-bg-deep: #030210;
  --ev-bg-mid: #120a2e;
  --ev-bg-haze: #1e1240;
  --ev-ink: #f4ecff;
  --ev-ink-mute: #a49bc9;
  --ev-ink-faint: #6b6390;
  --ev-lavender: #b28dff;
  --ev-pink: #ff9ac7;
  --ev-cyan: #7ad0ff;
  --ev-amber: #f7c77a;
  --ev-plum: #7b3a8c;
  --ev-line: rgba(178, 141, 255, 0.18);
  --ev-glass: rgba(255, 255, 255, 0.04);
  --ev-glass-hi: rgba(255, 255, 255, 0.08);
  --ev-shadow-glow: 0 0 60px rgba(178, 141, 255, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ev-bg);
  color: var(--ev-ink);
  font-family: "Noto Sans SC", "PingFang SC", -apple-system, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.evening-page {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(178, 141, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(255, 154, 199, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(122, 208, 255, 0.08), transparent 70%),
    var(--ev-bg);
}

/* 全局颗粒 film grain —— 去掉 mix-blend-mode（滚动时逼迫整个视口每帧重新合成）
   改为普通半透明叠加 + 极低不透明度。视觉上依然有颗粒感，但 GPU 合成成本几乎 0 */
body.evening-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

h1, h2, h3, h4 { font-family: "Noto Serif SC", "Songti SC", serif; font-weight: 500; margin: 0; letter-spacing: 0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.ev-container { width: min(1240px, 90vw); margin: 0 auto; }

/* ---------- Top Bar ---------- */
.ev-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 40px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(180deg, rgba(7, 6, 26, 0.88), rgba(7, 6, 26, 0.6) 60%, transparent);
}
.ev-back {
  font-size: 13px; letter-spacing: 0.25em;
  color: var(--ev-ink-mute); transition: color 0.3s;
}
.ev-back:hover { color: var(--ev-lavender); }
.ev-brand { font-family: "Noto Serif SC", serif; font-size: 15px; letter-spacing: 0.35em; color: var(--ev-ink); }

/* ---------- Scroll-Scrub Hero ---------- */
/* 总共 5 段 scrub 章节，每段 200vh，sticky 视频 100vh */
.ev-scrub {
  position: relative;
  height: 160vh;
}
.ev-scrub__sticky {
  position: sticky; top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.ev-scrub__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* 单一 filter 通道，并用 brightness 降低亮度；原本 3 个 filter 链意味着 3 次 GPU pass × 4 个 scrub 视频 */
  filter: brightness(0.7);
  will-change: transform; /* 提升到独立合成层，避免与其他元素共享图层导致重绘 */
  transform: translateZ(0);
}
.ev-scrub__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(7, 6, 26, 0.85), transparent 60%),
    linear-gradient(180deg, rgba(7, 6, 26, 0.45) 0%, transparent 35%, rgba(7, 6, 26, 0.6) 100%);
  pointer-events: none;
}
.ev-scrub__copy {
  position: absolute;
  left: 0; right: 0; bottom: 12vh;
  padding: 0 8vw;
  color: var(--ev-ink);
  z-index: 2;
}
.ev-scrub__kicker {
  font-size: 12px; letter-spacing: 0.5em;
  color: var(--ev-lavender);
  margin-bottom: 24px;
  opacity: 0.8;
}
.ev-scrub__title {
  font-size: clamp(40px, 7vw, 92px);
  line-height: 1.12;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 0 40px rgba(178, 141, 255, 0.35);
  max-width: 14ch;
}
.ev-scrub__title em {
  font-style: normal;
  color: var(--ev-pink);
  text-shadow: 0 0 40px rgba(255, 154, 199, 0.6);
}
.ev-scrub__sub {
  margin-top: 22px;
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--ev-ink-mute);
  max-width: 38ch;
  letter-spacing: 0.06em;
  line-height: 1.9;
}

/* Scroll hint */
.ev-scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ev-ink-mute);
  font-size: 10px; letter-spacing: 0.4em;
  z-index: 2;
}
.ev-scroll-hint::after {
  content: ""; width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--ev-lavender), transparent);
  animation: evScrollLine 2.2s ease-in-out infinite;
}
@keyframes evScrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Section Base ---------- */
.ev-section { position: relative; padding: 140px 0; }
.ev-section--tight { padding: 100px 0; }
.ev-section__kicker {
  font-size: 11px; letter-spacing: 0.5em;
  color: var(--ev-lavender);
  margin-bottom: 24px;
}
.ev-section__title {
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.2;
  color: var(--ev-ink);
  margin-bottom: 32px;
  max-width: 22ch;
}
.ev-section__lead {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ev-ink-mute);
  line-height: 2;
  max-width: 58ch;
  letter-spacing: 0.04em;
}

/* ---------- Reveal ---------- */
.ev-reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.ev-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Manifesto ---------- */
.ev-manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ev-manifesto__quote {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.6;
  color: var(--ev-ink);
  position: relative;
  padding-left: 40px;
}
.ev-manifesto__quote::before {
  content: "“";
  position: absolute; left: -12px; top: -40px;
  font-size: 140px;
  color: var(--ev-lavender);
  opacity: 0.3;
  font-family: "Noto Serif SC", serif;
}
.ev-manifesto__quote em {
  font-style: normal;
  color: var(--ev-pink);
  background: linear-gradient(120deg, transparent, rgba(255, 154, 199, 0.2), transparent);
  padding: 0 6px;
}
.ev-manifesto__body p {
  color: var(--ev-ink-mute);
  font-size: 16px;
  line-height: 2.1;
  margin-bottom: 22px;
}
.ev-manifesto__body p:last-child { color: var(--ev-ink); font-size: 18px; }

/* ---------- Moments (4 vignettes with video bg) ---------- */
.ev-moments {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.ev-moment {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ev-bg-mid);
  border: 1px solid var(--ev-line);
}
.ev-moment video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: filter 0.6s;
}
.ev-moment:hover video { filter: brightness(0.8); }
.ev-moment__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7, 6, 26, 0.85) 100%);
}
.ev-moment__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px;
  z-index: 2;
}
.ev-moment__num {
  font-family: "Noto Serif SC", serif;
  font-size: 14px; letter-spacing: 0.5em;
  color: var(--ev-lavender);
  margin-bottom: 14px;
}
.ev-moment__title {
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
}
.ev-moment__desc {
  font-size: 14px; line-height: 1.8;
  color: var(--ev-ink-mute);
}

/* ---------- Months Dream Calendar ---------- */
.ev-months {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ev-month {
  position: relative;
  padding: 28px 24px 32px;
  /* 用不透明的深色叠加代替 backdrop-filter，避免滚动时 12 张卡各自采样模糊导致的严重掉帧 */
  background: linear-gradient(160deg, rgba(30, 18, 64, 0.55), rgba(18, 10, 46, 0.75));
  border: 1px solid var(--ev-line);
  border-radius: 18px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s, box-shadow 0.5s;
  cursor: default;
  overflow: hidden;
}
.ev-month::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--ev-lavender), var(--ev-pink), var(--ev-cyan));
  opacity: 0;
  z-index: -1;
  border-radius: 18px;
  transition: opacity 0.5s;
}
.ev-month:hover {
  transform: translateY(-6px);
  border-color: rgba(178, 141, 255, 0.5);
  box-shadow: 0 20px 60px rgba(178, 141, 255, 0.2);
}
.ev-month__n {
  font-family: "Noto Serif SC", serif;
  font-size: 44px;
  color: var(--ev-lavender);
  line-height: 1;
  margin-bottom: 8px;
  font-weight: 300;
}
.ev-month__name {
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  color: var(--ev-ink);
  margin-bottom: 4px;
}
.ev-month__mood {
  font-size: 11px; letter-spacing: 0.3em;
  color: var(--ev-pink);
  margin-bottom: 18px;
  opacity: 0.9;
}
.ev-month__fruit {
  font-size: 12px;
  color: var(--ev-ink-faint);
  line-height: 1.7;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--ev-line);
}
.ev-month__recipe {
  font-size: 12px;
  color: var(--ev-ink-mute);
  line-height: 1.7;
}
.ev-month__recipe strong { color: var(--ev-amber); font-weight: 400; }

/* ---------- Product Form ---------- */
.ev-product {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.ev-product__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--ev-line);
}
.ev-product__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
}
.ev-product__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 6, 26, 0.6));
  pointer-events: none;
}
.ev-product__list { list-style: none; padding: 0; margin: 40px 0 0; }
.ev-product__list li {
  display: flex; gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--ev-line);
  color: var(--ev-ink);
}
.ev-product__list li:last-child { border-bottom: 1px solid var(--ev-line); }
.ev-product__list dt {
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  color: var(--ev-lavender);
  letter-spacing: 0.2em;
  min-width: 110px;
  flex-shrink: 0;
}
.ev-product__list .ev-prod-copy {
  flex: 1;
  font-size: 14px;
  color: var(--ev-ink-mute);
  line-height: 1.8;
}
.ev-product__list .ev-prod-copy strong { color: var(--ev-ink); font-weight: 400; }

/* ---------- Pricing ---------- */
.ev-pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ev-plan {
  padding: 36px 28px 32px;
  background: linear-gradient(160deg, rgba(30, 18, 64, 0.7), rgba(7, 6, 26, 0.9));
  border: 1px solid var(--ev-line);
  border-radius: 20px;
  position: relative;
  transition: transform 0.5s, border-color 0.4s;
}
.ev-plan:hover { transform: translateY(-8px); border-color: var(--ev-lavender); }
.ev-plan--featured {
  background: linear-gradient(160deg, rgba(178, 141, 255, 0.22), rgba(255, 154, 199, 0.12));
  border: 1px solid rgba(178, 141, 255, 0.5);
  box-shadow: 0 20px 80px rgba(178, 141, 255, 0.25);
}
.ev-plan__badge {
  position: absolute; top: -12px; left: 28px;
  padding: 4px 14px;
  background: linear-gradient(90deg, var(--ev-lavender), var(--ev-pink));
  color: #fff;
  font-size: 11px; letter-spacing: 0.2em;
  border-radius: 100px;
}
.ev-plan__name { font-family: "Noto Serif SC", serif; font-size: 20px; color: var(--ev-ink); margin-bottom: 6px; }
.ev-plan__note { font-size: 11px; letter-spacing: 0.25em; color: var(--ev-pink); margin-bottom: 24px; }
.ev-plan__price {
  font-family: "Noto Serif SC", serif;
  font-size: 48px; line-height: 1; color: #fff;
  font-weight: 300;
  margin-bottom: 6px;
}
.ev-plan__price small { font-size: 16px; color: var(--ev-ink-mute); margin-left: 6px; }
.ev-plan__avg { font-size: 12px; color: var(--ev-ink-faint); margin-bottom: 28px; }
.ev-plan ul { list-style: none; padding: 0; margin: 0 0 28px; }
.ev-plan ul li {
  font-size: 13px; color: var(--ev-ink-mute);
  padding: 10px 0;
  border-top: 1px dashed var(--ev-line);
  line-height: 1.6;
}
.ev-plan__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: transparent;
  border: 1px solid var(--ev-lavender);
  color: var(--ev-lavender);
  font-size: 13px; letter-spacing: 0.2em;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s;
}
.ev-plan__cta:hover { background: var(--ev-lavender); color: #fff; }
.ev-plan--featured .ev-plan__cta {
  background: linear-gradient(90deg, var(--ev-lavender), var(--ev-pink));
  border-color: transparent; color: #fff;
}

/* ---------- Service ---------- */
.ev-service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.ev-service__card {
  padding: 40px;
  background: linear-gradient(160deg, rgba(30, 18, 64, 0.5), rgba(18, 10, 46, 0.7));
  border: 1px solid var(--ev-line);
  border-radius: 20px;
}
.ev-service__card h3 {
  font-size: 24px; margin-bottom: 20px;
  color: var(--ev-ink);
}
.ev-service__card ul { list-style: none; padding: 0; margin: 0; }
.ev-service__card li {
  padding: 12px 0 12px 22px;
  position: relative;
  font-size: 14px; color: var(--ev-ink-mute); line-height: 1.8;
  border-bottom: 1px dashed var(--ev-line);
}
.ev-service__card li::before {
  content: "◆";
  position: absolute; left: 0; top: 14px;
  color: var(--ev-lavender);
  font-size: 10px;
}

/* ---------- Private Voice (Closing Monologue) ---------- */
.ev-voice {
  position: relative;
  padding: 180px 0;
  overflow: hidden;
}
.ev-voice__bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.ev-voice__bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  /* 去掉 blur —— 对逐帧播放的视频做 CSS filter blur 会让 GPU 每帧重新模糊整幅画面，滚动严重掉帧。
     改用上层加一层半透明暗色蒙版营造朦胧感，视觉接近但开销近乎 0 */
  filter: brightness(0.4);
}
.ev-voice__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(7, 6, 26, 0.35), rgba(7, 6, 26, 0.88) 85%),
    linear-gradient(180deg, rgba(7, 6, 26, 0.4), rgba(7, 6, 26, 0.7));
}
.ev-voice__content {
  position: relative; z-index: 2;
  max-width: 780px; margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}
.ev-voice__content p {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 2.2;
  color: var(--ev-ink);
  margin-bottom: 32px;
}
.ev-voice__content p:first-child {
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ev-pink);
  font-style: italic;
}

/* ---------- CTA Footer ---------- */
.ev-cta {
  text-align: center;
  padding: 140px 0 180px;
  position: relative;
}
.ev-cta h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.2;
  margin-bottom: 50px;
  background: linear-gradient(120deg, var(--ev-lavender), var(--ev-pink), var(--ev-cyan));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.ev-cta__btns { display: inline-flex; gap: 20px; }
.ev-cta__primary {
  padding: 18px 42px;
  background: linear-gradient(90deg, var(--ev-lavender), var(--ev-pink));
  color: #fff;
  font-size: 15px; letter-spacing: 0.3em;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(178, 141, 255, 0.4);
  transition: transform 0.3s;
}
.ev-cta__primary:hover { transform: translateY(-3px); }
.ev-cta__ghost {
  padding: 18px 42px;
  background: transparent;
  color: var(--ev-ink);
  font-size: 15px; letter-spacing: 0.3em;
  border: 1px solid var(--ev-line);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
}
.ev-cta__ghost:hover { border-color: var(--ev-lavender); color: var(--ev-lavender); }

.ev-foot {
  padding: 40px 0;
  text-align: center;
  font-size: 12px; letter-spacing: 0.3em;
  color: var(--ev-ink-faint);
  border-top: 1px solid var(--ev-line);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ev-months { grid-template-columns: repeat(2, 1fr); }
  .ev-pricing { grid-template-columns: repeat(2, 1fr); }
  .ev-manifesto, .ev-product, .ev-service { grid-template-columns: 1fr; gap: 40px; }
  .ev-moments { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ev-topbar { padding: 16px 20px; }
  .ev-section { padding: 80px 0; }
  .ev-months { grid-template-columns: 1fr; }
  .ev-pricing { grid-template-columns: 1fr; }
  .ev-scrub__copy { bottom: 14vh; padding: 0 6vw; }
}

@media (prefers-reduced-motion: reduce) {
  .ev-reveal { opacity: 1; transform: none; transition: none; }
  .ev-scroll-hint::after { animation: none; }
}
