/* ============ LChirp 官网样式（品牌：宇宙紫 + EDosz 标语 + Sen 正文） ============ */
:root {
  --bg: #0D0714;
  --bg-2: #121118;
  --bg-3: #1A1921;
  --card: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --accent: #6e56cf;
  --accent-strong: #9e8cfc;
  --accent-glow: rgba(175, 126, 255, 0.41);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.34);
  --radius: 18px;
  --maxw: 1120px;
}

@font-face {
  font-family: 'Edo SZ';
  src: url('../assets/fonts/edosz.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Sen';
  src: url('../assets/fonts/Sen_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Sen';
  src: url('../assets/fonts/Sen_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sen', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 背景氛围 */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(90% 50% at 50% -10%, rgba(110, 86, 207, 0.35), transparent 60%),
    radial-gradient(60% 40% at 12% 40%, rgba(110, 86, 207, 0.12), transparent 70%),
    radial-gradient(50% 36% at 88% 20%, rgba(158, 140, 252, 0.10), transparent 70%),
    linear-gradient(180deg, #0D0714 0%, #0b0814 55%, #08060f 100%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ 导航 ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  background: transparent;
  border-bottom: none;
}
.nav-brand { display: inline-flex; align-items: center; text-decoration: none; }
.nav-logo { height: 32px; width: auto; display: block; filter: drop-shadow(0 2px 10px rgba(0,0,0,.6)); }
.nav-links { display: flex; list-style: none; gap: 26px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 14px; transition: color .2s; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.nav-links a:hover { color: var(--accent-strong); }

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 4px 10px 4px 8px;
  transition: all 0.2s;
}
.lang-switcher:hover {
  background: rgba(255, 255, 255, 0.1);
}
.lang-icon {
  color: var(--muted);
  display: flex;
  align-items: center;
  pointer-events: none; /* Let clicks pass through to select */
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Sen', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  padding-right: 4px;
}
.lang-select option {
  background: var(--bg);
  color: #fff;
}

.nav-cta {
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--accent-strong); transform: translateY(-1px); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden; text-align: center;
  min-height: 92vh; display: flex; align-items: center; justify-content: center;
  padding: 132px 24px 110px;
}
.hero-bg { 
  position: absolute; 
  inset: 0; 
  z-index: 0;
  /* Add rounded bottom corners to separate from background */
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Edge light highlight at the very bottom edge of the image */
/* Bottom corner rim light & diffuse glow (like the reference image) */
.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    /* NEW: Left corner strong bottom light (Purple) */
    radial-gradient(40% 30% at 0% 100%, rgba(138, 43, 226, 0.6), transparent 100%),
    /* NEW: Right corner strong bottom light (Orange/Warm) */
    radial-gradient(40% 30% at 100% 100%, rgba(210, 105, 30, 0.5), transparent 100%),
    /* Existing dark gradient for text readability */
    linear-gradient(180deg, rgba(13,7,20,.78) 0%, rgba(13,7,20,.34) 42%, rgba(13,7,20,.86) 100%),
    /* Existing subtle center purple */
    radial-gradient(58% 46% at 50% 46%, rgba(110,86,207,.16), transparent 72%);
  /* Ensure the overlay respects the border radius */
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}
.btn-ghost { border-color: rgba(255,255,255,.18); color: var(--text); background: rgba(255,255,255,.04); }
.hero-inner { position: relative; z-index: 1; width: 100%; }
.scroll-anchor { position: relative; top: -72px; display: block; }

/* ============ 语言实验室倒计时（2075年1月1日 · 翻日期过渡态） ============ */
.lab-clock {
  position: absolute; left: 9%; top: 21%; z-index: 3;
  display: flex; align-items: center;
  font-family: 'Bitcount Prop Single', 'PingFang SC', 'Noto Sans SC', sans-serif;
  font-size: clamp(22px, 3vw, 46px);
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
  color: #dffbff;
  text-shadow:
    0 0 4px rgba(255,255,255,.85),
    0 0 10px rgba(0,229,255,.9),
    0 0 22px rgba(0,180,255,.72),
    0 0 46px rgba(0,140,255,.5);
}
.lc-unit {
  font-size: .62em; margin-right: .5em; color: rgba(223,251,255,.9);
}
.lc-year, .lc-month { color: #fff; }
.lc-day-cell {
  position: relative; flex: none;
  height: 1.5em; width: 1.5em; /* 英文日期：只含数字 31 / 1 */
  overflow: hidden;
  margin-left: .1em;
  margin-top: -0.07em;
}
.lc-day-old {
  position: absolute; left: 0; top: 0.02em;
  color: #ff9d9d;
  text-shadow: 0 0 8px rgba(255,80,90,.6), 0 0 18px rgba(255,60,80,.35);
  clip-path: inset(0 0 0.86em 0);
  -webkit-clip-path: inset(0 0 0.86em 0);
}
.lc-day-new {
  position: absolute; left: 0; top: 0.16em;
  color: #fff;
  text-shadow:
    0 0 6px rgba(255,255,255,1),
    0 0 14px rgba(0,255,230,.95),
    0 0 30px rgba(0,210,255,.75),
    0 0 60px rgba(0,150,255,.55);
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; font-size: 15px; font-weight: 700;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(110, 86, 207, 0.35); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.hero-inner {
  position: relative;
  z-index: 2;
}

.hud-location {
  position: absolute;
  top: 32px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(13, 7, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  font-family: 'Sen', sans-serif;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hud-icon {
  font-size: 14px;
}

.hud-text {
  opacity: 0.9;
}
.btn-ghost:hover { border-color: var(--accent-strong); transform: translateY(-2px); }
.hero-badges { margin-top: 18px; color: var(--faint); font-size: 13px; }



/* ============ Section 通用 ============ */
.section { padding: 0 24px; }
.eyebrow {
  color: var(--accent-strong); font-size: 13px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px;
}
.sec-title { font-family: 'Edo SZ'; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin-bottom: 16px; }
.sec-sub { color: var(--muted); font-size: 16px; max-width: 600px; }

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');

/* ============ 坠落流星效果 (Meteors) ============ */
.meteor-shower {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.meteor {
  position: absolute;
  top: -100px; /* Start above the section */
  width: 1px; /* Thinner for elegance */
  height: 150px; /* Longer tail */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8)); /* Pure white tail */
  border-radius: 2px;
  animation: meteorFall linear infinite;
  opacity: 0;
}

/* Meteor head */
.meteor::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.6); /* Pure white glow */
}

@keyframes meteorFall {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translateY(1200px); /* Travel further down */
    opacity: 0;
  }
}

/* ============ 核心主张 (Value Proposition) ============ */
.value-prop-section {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 20px 0; /* 彻底清零 padding */
  margin-top: 160px; /* 用 margin-top 统一控制 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vp-title {
  /* Use the exact system UI fonts to match the clean, sharp look of the reference image */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500; /* Slightly lighter weight for elegance */
  font-size: clamp(36px, 6vw, 72px); /* Larger size */
  line-height: 1.05;
  letter-spacing: -0.03em; /* Tighter letter spacing like the reference */
  margin-bottom: 24px;
  max-width: 1000px;
  
  /* Initial state for fade-up animation */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.vp-title-small {
  font-size: clamp(24px, 3.5vw, 42px) !important; /* 明显调小字号，比主标题小 */
  background: linear-gradient(180deg, #FFFFFF 15%, #E5D0FF 60%, #8C52FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0px 4px 24px rgba(140, 82, 255, 0.3));
}

/* Apply gradient to EACH individual character/word */
.vp-word {
  display: inline-block; /* Allows the gradient to apply to the bounding box of each span */
  background: linear-gradient(180deg, #FFFFFF 15%, #E5D0FF 60%, #8C52FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback */
  
  /* Add subtle drop shadow to match the glowing premium feel of the reference */
  filter: drop-shadow(0px 4px 24px rgba(140, 82, 255, 0.3));
}

.vp-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.vp-sub {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(16px, 1.8vw, 18px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 48px;
  font-weight: 400;
  
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.vp-sub.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section 2：动图下方的引导大标题 */
.section2-unlock-title {
  font-family: 'Edo SZ', sans-serif;
  font-weight: normal;
  font-size: clamp(20px, 2.5vw, 32px); /* 明显调小字号，避免喧宾夺主 */
  color: #B298C8; /* 使用指定的浅紫色 */
  text-align: center;
  margin: 52px 0 60px; 
}
/* 标题与按钮是一组承接关系：按钮不再额外加 40px 上边距 */
/* Section 3：信下方的 Get Lchirp 按钮容器（与 Section 2 按钮同款样式） */
.letter-cta {
  display: flex;
  justify-content: center;
  margin-top: 137px; /* 107px(参考 Section2 拼贴区→Explore) + 30px(笔记本投影)，间距从投影外算 */
}
.letter-cta .btn-explore {
  margin-top: 0; /* 间距由容器统一提供，按钮外观与 .btn-explore 完全一致 */
}

.section2-unlock-title + .btn-explore {
  margin-top: 0;
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 80px;
  padding: 12px 28px;
  background: rgba(175, 126, 255, 0.15); /* 恢复原始浅紫背景色 */
  border: 1px solid rgba(175, 126, 255, 0.3); /* 恢复原始紫边框 */
  border-radius: 8px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 恢复动画显示类和 Hover 状态 */
.btn-explore.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-explore:hover {
  background: rgba(138, 43, 226, 0.3);
  border-color: rgba(138, 43, 226, 0.8);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

/* 沿着边框的实体高亮线条 (左上和右下) */
.btn-explore::before {
  content: "";
  position: absolute;
  inset: -1px; /* 紧贴覆盖原有的 1px 边框 */
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(
    to bottom right, 
    rgba(255, 255, 255, 1) 0%, 
    rgba(175, 126, 255, 0.9) 8%, 
    transparent 18%, 
    transparent 82%, 
    rgba(138, 43, 226, 0.9) 92%, 
    rgba(200, 150, 255, 1) 100%
  ) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* 沿着边框向外发散的晕射光 */
.btn-explore::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 2px solid transparent;
  background: linear-gradient(
    to bottom right, 
    rgba(255, 255, 255, 0.8) 0%, 
    rgba(175, 126, 255, 0.7) 10%, 
    transparent 20%, 
    transparent 80%, 
    rgba(138, 43, 226, 0.7) 90%, 
    rgba(200, 150, 255, 0.8) 100%
  ) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: blur(5px);
  pointer-events: none;
  z-index: 0;
}

/* ============ 3 张主要功能应用图 ============ */
.feature-apps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  max-width: 1180px; margin: 72px auto 0; padding: 0 24px;
}
.feature-app {
  border-radius: 22px; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-border);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature-app:hover {
  transform: translateY(-6px);
  border-color: rgba(0,229,255,.35);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 40px rgba(0,180,255,.12);
}
.feature-app-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.feature-app-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-app-tag {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(13,7,20,.55); border: 1px solid rgba(0,229,255,.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #bffbff; font-size: 12px; letter-spacing: 1px;
}
.feature-app h3 { font-size: 17px; margin: 14px 18px 6px; }
.feature-app p { color: var(--muted); font-size: 14px; margin: 0 18px 18px; line-height: 1.7; }

/* ============ 边缘模糊淡出拼贴区 (Blur Edge Collage) ============ */
.fade-collage {
  position: relative;
  width: 100%;
  max-width: 1000px; /* 匹配大标题最大宽度，确保边界对齐 */
  height: 560px; /* 适配放大后的卡片（340px）与说明文字 */
  margin: 120px auto 0; 
  z-index: 5;
}

/* 四周模糊淡出边框的图片卡片 */
.fade-card {
  width: 340px;
  height: 340px;
  position: absolute; /* 恢复绝对定位，各自独立飞散 */
  /* 圆形蒙版：清晰区放大到 68%，仅外缘 68%→90% 渐隐（保留圆形但少遮内容） */
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 68%, rgba(0,0,0,0) 90%);
  mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 68%, rgba(0,0,0,0) 90%);
  background: linear-gradient(135deg, rgba(138,43,226,0.1), #1a1a24); 
  border-radius: 20px;
}

/* 占位图内部 */
.fade-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* 图片下方的说明文字 (Caption)：绝对定位，浮在各自卡片下方 */
.fade-caption {
  position: absolute;
  width: 320px;
  text-align: center;
  font-family: 'Sen', system-ui, sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  z-index: 10;
}

/* 图1 独立定位 */
.card-left { left: -160px; top: -30px; transform: rotate(8deg); }
.caption-left { left: -140px; top: 350px; } 

/* 图2 独立定位 */
.card-center { left: 50%; top: 60px; transform: translateX(-50%) rotate(-2deg); z-index: 2; }
.caption-center { left: 50%; top: 440px; transform: translateX(-50%); } 

/* 图3 独立定位 */
.card-right { right: -160px; top: -30px; transform: rotate(-8deg); }
.caption-right { right: -140px; top: 350px; }

/* ============ 记录卡 + 铸造 Bot：两个 Section 的"底"与流程连接 ============ */
/* 上：记录卡 Section —— 冷紫纸张氛围 */
.mint-section {
  position: relative;
  background:
    radial-gradient(55% 45% at 18% 30%, rgba(120,110,220,0.12), transparent 70%),
    radial-gradient(45% 40% at 82% 65%, rgba(90,80,180,0.08), transparent 70%);
}
/* 下：铸造 Bot Section —— 暗紫发光氛围 */
.create-bot-section {
  position: relative;
  background:
    radial-gradient(55% 45% at 78% 22%, rgba(175,126,255,0.14), transparent 70%),
    radial-gradient(45% 40% at 20% 80%, rgba(120,80,200,0.08), transparent 70%);
}

/* 粉笔曲线（黑板粉笔质感） */
.card-flow { position: relative; }
.chalk-arrow {
  position: absolute;
  left: calc(50% - 480px);
  top: calc(50% - 140px);
  width: 220px;
  height: 430px;
  pointer-events: none;
  z-index: 5;
}
.chalk-arrow .chalk-curve {
  fill: none;
  stroke: rgba(255,255,255,0.70);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2 9; /* 粉笔断点颗粒感 */
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.15));
}
.chalk-arrow .chalk-head {
  fill: none;
  stroke: rgba(255,255,255,0.85);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============ Adapt 场景区 ============ */
.adapt-section {
  position: relative;
  z-index: 10;
  padding: 0; 
  margin-top: 100px; /* 减小间距，与 Section 2 (Explore) 和 Section 3 (日记本) 的紧密视觉间距保持一致 */
  width: 100%;
  overflow: hidden; /* 防止 3D 卡片溢出产生滚动条 */
}

.adapt-container {
  display: flex;
  align-items: center; /* 居中对齐 */
  gap: 0;
  width: 100%;
}

.adapt-left {
  flex: 0 0 35%; /* 确保有足够空间容纳三单词标题 */
  padding-left: 0; /* 移除额外缩进，使用 .wrap 默认的对齐方式，与日记本完全左对齐 */
  position: relative;
  z-index: 20; /* 确保标题层级高于右侧 3D 舞台 */
}

.adapt-right {
  flex: 0 0 65%; /* 相应缩小右侧空间到 65% */
  position: relative;
  height: 500px; /* 给卡片充足的上下空间 */
  perspective: 1200px; /* 增加透视感，使两侧卡片变小 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ 精选场景卡片 3D 弧形舞台 (Carousel) ============ */
.scene-carousel {
  position: relative;
  width: 180px; /* 统一卡片宽度 (等比例缩小为原来的 3/4) */
  height: 270px; /* 统一卡片高度 */
  transform-style: preserve-3d;
  /* 添加匀速旋转动画：60秒一圈 */
  animation: carouselRotate 60s infinite linear;
}

/* 鼠标悬停时暂停旋转 */
.scene-carousel:hover {
  animation-play-state: paused;
}

/* 3D 旋转关键帧 (保持 translateZ 向后推 560px，使最前面的卡片处于屏幕原始大小平面) */
@keyframes carouselRotate {
  from { transform: translateZ(-560px) rotateY(0deg); }
  to { transform: translateZ(-560px) rotateY(-360deg); }
}

.scene-carousel .scene-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px; /* 根据卡片变小，圆角也稍微减小 */
  background: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); /* 悬浮感投影 */
  will-change: transform;
  transition: none; 
}

/* 18 张卡片围成完整的圆环 (360度/18 = 20度) */
/* translateZ(560px) 将卡片推开，形成等比例缩小的圆环半径 */
.scene-card:nth-child(1) { transform: rotateY(0deg) translateZ(560px); }
.scene-card:nth-child(2) { transform: rotateY(20deg) translateZ(560px); }
.scene-card:nth-child(3) { transform: rotateY(40deg) translateZ(560px); }
.scene-card:nth-child(4) { transform: rotateY(60deg) translateZ(560px); }
.scene-card:nth-child(5) { transform: rotateY(80deg) translateZ(560px); }
.scene-card:nth-child(6) { transform: rotateY(100deg) translateZ(560px); }
.scene-card:nth-child(7) { transform: rotateY(120deg) translateZ(560px); }
.scene-card:nth-child(8) { transform: rotateY(140deg) translateZ(560px); }
.scene-card:nth-child(9) { transform: rotateY(160deg) translateZ(560px); }
.scene-card:nth-child(10) { transform: rotateY(180deg) translateZ(560px); }
.scene-card:nth-child(11) { transform: rotateY(200deg) translateZ(560px); }
.scene-card:nth-child(12) { transform: rotateY(220deg) translateZ(560px); }
.scene-card:nth-child(13) { transform: rotateY(240deg) translateZ(560px); }
.scene-card:nth-child(14) { transform: rotateY(260deg) translateZ(560px); }
.scene-card:nth-child(15) { transform: rotateY(280deg) translateZ(560px); }
.scene-card:nth-child(16) { transform: rotateY(300deg) translateZ(560px); }
.scene-card:nth-child(17) { transform: rotateY(320deg) translateZ(560px); }
.scene-card:nth-child(18) { transform: rotateY(340deg) translateZ(560px); }

/* 内部图片包裹 */
.scene-card-inner {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.scene-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保证图片不变形填满卡片 */
}

/* ===== Adapt 弧形卡片：统一格调（明显但自然，保留照片可识别度） ===== */
/* 1) 色调统一：统一色温与明度（降饱和、提亮、压对比，比上一版明显） */
.scene-card-inner img {
  filter: saturate(0.78) brightness(1.08) contrast(0.95);
}
/* 2) 统一相框：品牌紫细描边 + 深投影，让每张卡都是同一套"工艺" */
.scene-carousel .scene-card {
  border: 1.5px solid rgba(158, 140, 252, 0.30);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
/* 3) 统一光照 + 统一色调：玻璃高光 + 品牌紫柔光 + 底部压暗（soft-light 叠加） */
.scene-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.04) 35%, rgba(255,255,255,0) 52%),
    linear-gradient(180deg, rgba(158,140,252,0.22) 0%, rgba(120,110,220,0.10) 50%, rgba(18,14,38,0.30) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 2;
}

/* 移除原有的伪元素边框和霓虹特效，保持截图那种干净清爽的相纸质感 */
.scene-card::before {
  display: none;
}

/* ============ 散落图片环绕区 (Movie Scattered) ============ */
.scattered-section {
  position: relative;
  width: 100%;
  min-height: 800px; /* 给予充足的物理空间容纳散落的图片 */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* 防止倾斜的图片撑破横向滚动条 */
  z-index: 10;
}

/* 居中文字 */
.scattered-text-center {
  position: relative;
  z-index: 20; /* 确保文字在图片之上，不被遮挡 */
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.scattered-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 5vw, 48px); /* 大标题字号 */
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5); /* 增加文字可读性 */
}

.scattered-subtitle {
  font-family: 'Sen', sans-serif;
  font-size: clamp(16px, 2vw, 20px); /* 副标题字号稍小 */
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* 散落图片通用样式 */
.scattered-img {
  position: absolute;
  border-radius: 8px; /* 轻微的圆角，还原截图中的相纸感 */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); /* 较重的投影产生漂浮感 */
  z-index: 5;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scattered-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 根据截图精确定位每一张散落的图片 (大小、位置、旋转角度、甚至透明度) */
/* 所有图片尺寸整体缩小约 20%-30%，腾出呼吸感 */

/* 左侧群组: 第1张独立不交叉，第2、3张横向交叉 */
.img-1 { width: 240px; height: 135px; left: 4%; bottom: 32%; transform: rotate(-12deg); z-index: 5; }
.img-2 { width: 200px; height: 115px; left: 24%; bottom: 18%; transform: rotate(6deg); z-index: 6; } /* 与 img-3 横向交叉 */
.img-3 { width: 170px; height: 95px; left: 32%; bottom: 12%; transform: rotate(-5deg); z-index: 4; }

/* 右侧群组: 同样呈左右横向交叉排列 */
.img-4 { width: 260px; height: 145px; right: 4%; bottom: 25%; transform: rotate(15deg); z-index: 5; }
.img-5 { width: 210px; height: 120px; right: 18%; bottom: 22%; transform: rotate(-7deg); z-index: 6; } /* 横向插入img-4的左侧 */
.img-6 { width: 180px; height: 100px; right: 6%; top: 38%; transform: rotate(-9deg); z-index: 4; }

/* 顶部纵深群组: 从右侧上方 -> 上方中间，模糊度逐渐变大。左上方完全留空 */
.img-7 { width: 150px; height: 85px; right: 15%; top: 12%; transform: rotate(11deg); opacity: 0.85; filter: blur(1.5px); } /* 最靠右，轻微模糊 */
.img-8 { width: 130px; height: 75px; right: 30%; top: 6%; transform: rotate(-6deg); opacity: 0.65; filter: blur(3px); }  /* 偏中间，中等模糊 */
.img-9 { width: 110px; height: 65px; right: 45%; top: 2%; transform: rotate(8deg); opacity: 0.45; filter: blur(5px); }   /* 正上方中间，极度模糊 */

/* ============ 横向过渡带 (Transition Banner) ============ */
.transition-banner {
  position: relative;
  width: 100%;
  height: 160px; /* 大约是普通 Section 的 1/2 甚至更窄，符合横条定义 */
  background-color: #030106; /* 极深的纯黑色底 */
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 点格状紫色渐变效果 (利用 mask-image 制造完美的点阵排版) */
.transition-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  /* 恢复三个不规则斜向模块结构，并注入紫棕色调渐变：浅紫 -> 薰衣草紫 -> 紫灰 -> 暗紫灰 -> 深紫棕 -> 黑色 */
  background:
    /* 模块1：较宽的主块，应用新的紫棕渐变 */
    linear-gradient(45deg, transparent 15%, #B298C8 15.1%, #9782A6 18%, #44353F 24%, #32262C 30%, #241A1C 38%, #000000 45%, transparent 45.1%),
    /* 模块2：较窄的次块，应用新的紫棕渐变 */
    linear-gradient(45deg, transparent 58%, #B298C8 58.1%, #9782A6 60%, #44353F 63%, #32262C 67%, #241A1C 72%, #000000 75%, transparent 75.1%),
    /* 模块3：辅助块，应用新的紫棕渐变 */
    linear-gradient(45deg, transparent 82%, #B298C8 82.1%, #9782A6 85%, #44353F 89%, #32262C 93%, #241A1C 98%, #000000 100%);
  
  /* 使用径向渐变作为遮罩，精准切割出“点格状”质地 */
  -webkit-mask-image: radial-gradient(circle, #fff 1.5px, transparent 2px);
  -webkit-mask-size: 4px 4px;
  mask-image: radial-gradient(circle, #fff 1.5px, transparent 2px);
  mask-size: 4px 4px;
  opacity: 1;
  pointer-events: none;
}

.banner-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-text {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-banner-primary {
  background: #ffffff;
  color: #000000;
  padding: 12px 24px;
  border-radius: 4px; /* 偏矩形的硬朗按钮，贴合过渡带的秩序感 */
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-banner-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.btn-banner-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-banner-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ============ 卡片堆叠区 (Card Stack Section) ============ */
.stack-section {
  position: relative;
  z-index: 10;
}

.stack-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 160px; /* 进一步拉开左右间距 */
}

/* --- 左侧动图/堆叠卡片区 --- */
.stack-left {
  flex: 0 0 45%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 左侧留出充足动画空间 */
}

.stack-stage {
  position: relative;
  width: 100%;
  height: 540px;
}

/* 恢复截图中的正规矩形卡片样式 */
.standard-card {
  position: absolute;
  width: 340px;
  height: 480px;
  background: linear-gradient(145deg, #3d2d5a 0%, #1e152f 100%);
  border-radius: 24px;
  box-shadow: -10px 15px 35px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.standard-card .content-area {
  position: relative;
  z-index: 3;
  padding: 40px 30px;
  color: #fff;
  font-family: 'Sen', sans-serif;
}
.standard-card h1 { margin: 0 0 16px 0; font-size: 24px; font-weight: 700; letter-spacing: 1px; color: #9e8cfc; }
.standard-card p { margin: 0; font-size: 15px; line-height: 1.6; opacity: 0.85; color: #fff; }

/* 2D 平面透视堆叠排版 (往右侧堆叠) */
.card-front {
  transform: translate(0, 0);
  z-index: 3;
}

.card-middle {
  transform: translate(60px, 0px) scale(0.92);
  z-index: 2;
  background: linear-gradient(145deg, #32244a 0%, #171024 100%);
}

.card-back {
  transform: translate(120px, 0px) scale(0.84);
  z-index: 1;
  background: linear-gradient(145deg, #271c3a 0%, #100b1a 100%);
}

/* 动图下方的独立 Caption */
.stack-caption {
  margin-top: 32px;
  font-family: 'Sen', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-align: left;
  max-width: 340px;
}

/* --- 右侧文字区 --- */
.stack-right {
  flex: 0 0 38%; /* 缩小比例以将整体块进一步推向右侧 */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 文字内容本身左对齐 */
  margin-left: auto; /* 将整个块推向右侧 */
}

/* ============ 功能 ============ */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px;
}
.feat-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .25s, border-color .25s, background .25s;
}
.feat-card:hover { transform: translateY(-6px); border-color: rgba(158,140,252,.4); background: rgba(158,140,252,.05); }
.feat-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: rgba(110, 86, 207, 0.14); border: 1px solid rgba(110, 86, 207, 0.22);
  display: flex; align-items: center; justify-content: center; color: var(--accent-strong);
}
.feat-icon svg { width: 26px; height: 26px; }
.feat-card h3 { font-size: 18px; margin-bottom: 8px; }
.feat-card p { color: var(--muted); font-size: 14px; }

/* ============ 三步 ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.step { position: relative; padding: 30px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); }
.step-no { font-family: 'Edo SZ'; font-size: 40px; color: rgba(158,140,252,.35); display: block; margin-bottom: 10px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ============ 适合人群 ============ */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.aud-card { padding: 22px 18px; border-radius: var(--radius); background: rgba(255,255,255,.025); border: 1px solid var(--card-border); }
.aud-card h3 { font-size: 16px; margin-bottom: 6px; }
.aud-card p { color: var(--muted); font-size: 13px; }

/* ============ 信任 ============ */
.trust-panel { margin-top: 40px; padding: 34px 30px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(110,86,207,.12), rgba(13,7,20,0)); border: 1px solid rgba(158,140,252,.18); }
.trust-panel ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; margin-top: 18px; }
.trust-panel li { color: var(--muted); font-size: 14px; padding-left: 22px; position: relative; }
.trust-panel li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-strong); }

/* ============ FAQ ============ */
.faq { max-width: 720px; margin: 44px auto 0; }
.faq-item { border-bottom: 1px solid var(--card-border); }
.faq-item summary { cursor: pointer; padding: 18px 0; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--accent-strong); border-bottom: 1.5px solid var(--accent-strong); transform: rotate(45deg); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item p { color: var(--muted); font-size: 14px; padding: 0 0 18px; }
.faq-other-body { padding: 0 0 18px; }
.faq-other-form { display: flex; gap: 10px; max-width: 560px; }
.faq-other-input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--card-border); background: rgba(158,140,252,.06); color: inherit; font-size: 14px; outline: none; }
.faq-other-input:focus { border-color: var(--accent-strong); }
.faq-other-btn { flex-shrink: 0; padding: 12px 20px; border-radius: 8px; border: 1px solid var(--accent-strong); background: rgba(158,140,252,.18); color: #fff; font-size: 14px; cursor: pointer; transition: background .2s ease; }
.faq-other-btn:hover { background: rgba(158,140,252,.32); }

/* ============ CTA Band ============ */
.cta-band { text-align: center; padding: 90px 24px; position: relative; }
.cta-band .sec-title { max-width: 640px; margin: 0 auto 14px; }
.cta-band .sec-sub { margin: 0 auto 32px; }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--card-border); padding: 44px 24px 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { font-size: 14px; margin-bottom: 12px; color: var(--text); }
.footer p, .footer a, .footer li { color: var(--muted); font-size: 13px; }
.footer ul { list-style: none; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--accent-strong); }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--card-border); color: var(--faint); font-size: 12px; text-align: center; }

/* ============ 法律页面 ============ */
.legal { max-width: 780px; margin: 0 auto; padding: 70px 24px 90px; }
.legal h1 { font-family: 'Edo SZ'; font-size: 40px; margin-bottom: 8px; }
.legal .legal-meta { color: var(--faint); font-size: 13px; margin-bottom: 30px; }
.legal h2 { font-size: 22px; margin: 34px 0 12px; color: var(--accent-strong); }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.legal th, .legal td { border: 1px solid var(--card-border); padding: 8px 10px; text-align: left; color: var(--muted); }
.legal th { background: rgba(158,140,252,.08); color: var(--text); }
.legal blockquote { border-left: 3px solid var(--accent); padding-left: 14px; color: var(--faint); margin: 16px 0; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: 1fr; }
  .trust-panel ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ 入场动画 ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ 环境光照 (大标题背景发光) ============ */
.ambient-top-light {
  position: absolute;
  bottom: 10px; /* 让光晕底部稍微上移，与第二行文字融为一体，消除生硬的底线感 */
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 350px;
  background: 
    /* 聚光效果：半椭圆从底部中心向上发散。加深边缘融合度 */
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0; /* 放在大标题文字层(z-index:10)之下，但在更底层背景之上 */
  mix-blend-mode: screen;
}

/* ============ 核心主张 引题 (Eyebrow) ============ */
.vp-eyebrow {
  font-family: 'Bitcount Prop Single', sans-serif;
  font-size: 20px; /* 显著调大字号 */
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85); /* 提高亮度/透明度，强化作为Key元素的视觉层级 */
  margin-bottom: 24px;
  z-index: 10;
  position: relative;
}

/* ============ 科技游学 · 语音输入 三幕动画（原型 v4） ============ */
.story-stage {
  position: absolute;
  left: -180px; top: -30px;
  width: 340px; height: 340px;
  /* 不旋转：保证内部元素定位（尤其虚拟屏居中）精确可控 */
  z-index: 30;
  pointer-events: none;
  opacity: 0;
}
.story-stage.play { opacity: 1; }

/* 基础隐藏 */
.story-stage .story-bubble,
.story-stage .story-hand,
.story-stage .story-vscreen { opacity: 0; }

/* —— 常用对话气泡：白色底、黑色字、带尾巴 —— */
.story-bubble {
  position: absolute;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  color: #111;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.story-bubble::after {
  content: '';
  position: absolute;
  width: 0; height: 0;
  border: 7px solid transparent;
}

/* 女孩问号气泡：位于女孩头部的上方、左侧，靠近头部但不遮挡 */
.story-stage.play .story-bubble-q {
  left: 120px; top: 10px;        /* 大幅向右移，极度贴近女孩头部上方偏左 */
  width: 46px; height: 56px;   
  padding: 4px 14px;
  font-size: 30px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  animation:
    storyPop .6s cubic-bezier(.22,1,.36,1) 1.4s both,
    storyGirlOut .4s ease 4.8s forwards; /* 停留一段时间后，在手势出现前消失 */
}
.story-bubble-q::after { left: auto; right: 8px; bottom: -13px; border-top-color: rgba(255,255,255,.96); border-color: rgba(255,255,255,.96) transparent transparent transparent; }
.story-bubble-q .story-q { color: #6e56cf; }
.story-stage.play .story-bubble-q .story-q { animation: storyQ 1.1s ease-in-out .6s infinite; }

/* 记忆文字气泡：在问号消失后，出现在女孩头部的左上方，向左侧扩充 */
.story-stage.play .story-bubble-memory {
  left: 20px; top: 10px;       /* 绝对固定在图片左侧内边缘，右侧恰好靠近女孩头部 */
  width: 140px; height: 85px;  /* 恢复高度，防止文字被截断 */
  padding: 4px 10px;           
  overflow: hidden;
  z-index: 10;                 
  transform-origin: center center;
  animation: storyGrow 1.6s cubic-bezier(.5,0,.4,1) 5.2s both, storyGirlOut .4s ease 9.2s forwards;
}
.story-bubble-memory::after { display: none; } /* 没有尾巴，像是一个浮窗 */

@keyframes storyGrow {
  0%   { transform: scale(0.6); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: scale(1); opacity: 1; } /* 配合“推”的手势，放大出现 */
}

/* 星标：一大一小四角星 */
.story-memory-stars {
  position: absolute; left: 10px; top: 10px; 
  display: flex; align-items: flex-end; gap: 1px;
  color: #c4b5fd;
  opacity: 0;
}
.story-stage.play .story-memory-stars {
  animation: storyStarPop .5s cubic-bezier(.34,1.56,.64,1) 5.2s both;
}
.vscreen-stars {
  position: relative; left: 0; top: 0; opacity: 1; animation: none;
}
.story-stage.play .vscreen-stars { animation: none; }
.story-star-4pt.large { width: 18px; height: 18px; flex: none; filter: drop-shadow(0 0 6px rgba(158,140,252,0.8)); }
.story-star-4pt.small { width: 10px; height: 10px; flex: none; filter: drop-shadow(0 0 4px rgba(158,140,252,0.8)); margin-bottom: 5px; }

@keyframes storyStarPop {
  0%   { opacity: 0; transform: scale(.2) translateY(10px); }
  70%  { opacity: 1; transform: scale(1.3) translateY(-3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* 拖出的文字：绝对定位，随拖拽 clip-path 上→下揭示 + 深紫闪光 */
.story-memory {
  position: absolute;
  left: 10px; top: 32px;  /* 放置在星标的下一行，不留缩进，充分利用星标正下方的空间 */
  width: 120px;           /* 恢复宽度，让文字能正常换行并完整显示 */
  font-size: 12px;        
  font-weight: 700;
  line-height: 1.25;      
  color: #7B5CE0;
}
.story-stage.play .story-memory { animation: storyMemory 1.6s ease 5.2s both; }
@keyframes storyMemory {
  0%   { clip-path: inset(0 0 100% 0); text-shadow: 0 0 8px rgba(123,92,224,.9), 0 0 22px rgba(158,140,252,.8); }
  20%  { clip-path: inset(0 0 75% 0); text-shadow: 0 0 5px rgba(123,92,224,.7); }
  40%  { clip-path: inset(0 0 50% 0); text-shadow: 0 0 10px rgba(123,92,224,.9), 0 0 24px rgba(158,140,252,.9); }
  60%  { clip-path: inset(0 0 25% 0); text-shadow: 0 0 5px rgba(123,92,224,.7); }
  80%  { clip-path: inset(0 0 8% 0); }
  100% { clip-path: inset(0 0 0 0); text-shadow: 0 0 7px rgba(123,92,224,.6); }
}
@keyframes storyGirlOut { 
  0%   { opacity: 1; transform: scale(1); } 
  100% { opacity: 0; transform: scale(0.8); } 
}

/* 男孩（右）说话气泡 */
.story-stage.play .story-bubble-boy {
  right: -30px; top: -15px;
  max-width: 160px;
  animation: storyPop .6s cubic-bezier(.22,1,.36,1) .3s both;
}
.story-bubble-boy::after { 
  left: 20px; bottom: -13px; top: auto; right: auto; 
  border-color: rgba(255,255,255,.96) transparent transparent transparent; 
}
@keyframes storyPop { 0% { opacity: 0; transform: translateY(8px) scale(.82); } 100% { opacity: 1; transform: none; } }

/* —— 手指：往屏幕前“推”，触发气泡出现 —— */
.story-stage.play .story-hand {
  position: absolute;
  left: 55px; top: 35px;    /* 定位在记忆气泡的中心位置，被气泡覆盖 */
  width: 40px; height: 40px;
  font-size: 28px; line-height: 40px; text-align: center;
  animation: storyHand 1.6s cubic-bezier(.5,0,.4,1) 5.2s both;
  z-index: 6;               /* 在气泡下方 (气泡 z-index 10) */
}
@keyframes storyHand {
  0%   { opacity: 0; transform: scale(1.5) translate(0,0); }
  10%  { opacity: 1; transform: scale(1.5) translate(0,0); }
  40%  { opacity: 1; transform: scale(0.9) translate(0,0); } /* 往下按压/推 */
  100% { opacity: 0; transform: scale(1.2) translate(0,0); } /* 松开并消失 */
}

/* —— 虚拟屏（Realtimechat 样式）：掉落 → 推近 → 文字放大停留 → 同比例缩回左侧 —— */
.story-stage.play .story-vscreen {
  position: absolute;
  left: 50%; top: -360px;
  width: 470px; height: 340px;
  transform: translateX(-50%) scale(.54);
  transform-origin: top center;
  opacity: 0;
  animation: storyVscreen 4.8s cubic-bezier(.34,1.56,.64,1) 9.2s both;
  z-index: 5;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

.vscreen-glass-panel {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(24px) brightness(0.85) saturate(0.5);
  -webkit-backdrop-filter: blur(24px) brightness(0.85) saturate(0.5);
  box-shadow:
      inset 0 1px 0 0 rgba(255, 255, 255, 0.20),
      inset 0 0 0 1px rgba(255, 255, 255, 0.10),
      0 12px 32px rgba(0, 0, 0, 0.20);
  clip-path: path("M 50 20 L 280 20 L 290 10 L 410 10 L 420 20 L 450 50 L 450 100 L 460 110 L 460 230 L 450 240 L 450 290 L 420 320 L 190 320 L 180 330 L 60 330 L 50 320 L 20 290 L 20 240 L 10 230 L 10 110 L 20 100 L 20 50 Z");
  z-index: 1;
}

.vscreen-border-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
  filter:
      drop-shadow(0 0 2px rgba(255, 255, 255, 0.95))
      drop-shadow(0 0 8px rgba(200, 245, 255, 0.85))
      drop-shadow(0 0 22px rgba(180, 230, 255, 0.55))
      drop-shadow(0 0 44px rgba(160, 220, 255, 0.30));
}

.v-border-a-outer { fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: square; opacity: 0.6; }
.v-border-b-main { fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: square; filter: drop-shadow(0 0 6px rgba(200, 245, 255, 0.8)); }
.v-border-b-glow { fill: none; stroke: #fff; stroke-width: 2; opacity: 0.9; filter: blur(4px); animation: vscreenBorderGlow 3s ease-in-out infinite; }
.v-border-c { fill: none; stroke: rgba(255, 255, 255, 0.6); stroke-width: 1; }

@keyframes vscreenBorderGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.vscreen-content-area {
  position: relative;
  z-index: 3;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: #fff;
  padding: 0 18px;
}

@keyframes storyVscreen {
  0%   { top: -360px; left: 50%; opacity: 0; transform: translateX(-50%) scale(.54); }
  15%  { top: 18px;   left: 50%; opacity: 1; transform: translateX(-50%) scale(.54); }   /* 正上方居中垂直掉落 */
  32%  { top: 18px;   left: 50%; transform: translateX(-50%) scale(.76); }             /* 推近：文字放大 */
  64%  { top: 18px;   left: 50%; transform: translateX(-50%) scale(.68); }                /* 停留展示 */
  100% { top: -10px;  left: -95px; transform: translateX(0) scale(.238); opacity: 1; } /* 往左往上移，恢复到之前女孩脑后外部上方的绝对视觉位置 */
}
.story-vscreen-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px; /* Increased slightly for 470px width */
  color: #9E8CFC;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.story-vscreen-glass {
  font-size: 38px; /* Scaled up from 28px for 470px width */
  color: #fff;
  line-height: 1.8;
  text-align: center;
  /* Removed text-shadow to eliminate blur effect */
}
.story-vscreen-glass ruby { ruby-position: over; }
.story-vscreen-glass rt { font-size: 20px; color: rgba(170,240,255,.95); letter-spacing: .05em; }


/* ============ 图2（Vlogger）舞台：覆盖中间的 fade-card ============ */
.story-stage-2 {
  left: calc(50% - 170px); /* 与 card-center 对齐（居中卡 340px 宽） */
  top: 60px;
}

/* 女孩困惑气泡（英语）：出现 → 停留 → 消失（与"?"气泡同时间轴） */
.story-stage.play .story-thought {
  left: auto; right: 20px; top: 40px;
  max-width: 232px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 40px;
  padding: 14px 20px;
  text-align: center;
  animation:
    storyPop .6s cubic-bezier(.22,1,.36,1) 1.4s both,
    storyGirlOut .4s ease 4.8s forwards;
}
.story-thought::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  bottom: -12px; left: 40px; right: auto; top: auto;
}
.story-thought::before {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  bottom: -22px; left: 34px; right: auto; top: auto;
}

/* 覆盖第二幕（图2）中手势和记忆气泡的位置，让它们在右侧 */
.story-stage-2.play .story-bubble-memory {
  left: auto;
  right: 50px; 
  top: 40px;
  width: 140px; height: 85px; /* 恢复高度 */
}
.story-stage-2.play .story-hand {
  left: auto;
  right: 95px; /* 居中于 memory 气泡 */
  top: 55px; /* 下移对齐气泡中心 */
}

/* 覆盖第二幕的虚拟屏动画：悬挂位置稍微调低，最终缩回到右侧 */
.story-stage-2.play .story-vscreen {
  animation: storyVscreen2 4.8s cubic-bezier(.34,1.56,.64,1) 9.2s both;
}
@keyframes storyVscreen2 {
  0%   { top: -360px; left: 50%; opacity: 0; transform: translateX(-50%) scale(.54); }
  15%  { top: 50px;   left: 50%; opacity: 1; transform: translateX(-50%) scale(.54); }   /* 掉落位置调低 */
  32%  { top: 50px;   left: 50%; transform: translateX(-50%) scale(.76); }             /* 推近 */
  64%  { top: 50px;   left: 50%; transform: translateX(-50%) scale(.68); }                /* 停留 */
  100% { top: 45px;   left: 225px; transform: translateX(-50%) scale(.238); opacity: 1; } /* 缩回到图片右侧女孩头上，与气泡居中对齐 */
}

/* ============ 图3（Online Chat）舞台：覆盖右侧 fade-card ============ */
.story-stage-3 {
  left: 820px; /* 与 card-right 对齐（collage 1000 宽，卡右缘 1160） */
  top: -30px;
}

/* —— 手机聊天界面"激活"覆盖层（位置为估算，可调） —— */
.story-stage .chat-phone { opacity: 0; }
.story-stage.play .chat-phone { opacity: 1; }

.chat-phone {
  position: absolute;
  /* 基础尺寸，由各具体手机覆盖 */
  border-radius: 12px;
}
.chat-phone-frame {
  position: absolute; inset: 0;
  border-radius: 12px;
  border: 2px solid transparent;
}
.chat-bubble {
  position: absolute;
  left: 8px; top: 14px;
  max-width: 78px;
  background: rgba(255,255,255,.97);
  border-radius: 10px;
  padding: 5px 7px;
  font-size: 10px;
  line-height: 1.45;
  color: #111;
  opacity: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.chat-bubble::after {
  content: '';
  position: absolute;
  width: 0; height: 0;
  border: 5px solid transparent;
  left: 10px; bottom: -9px;
  border-top-color: rgba(255,255,255,.97);
}
.chat-bubble-text { display: block; }

/* 手机A/B/C：依次 下按 → 边框点亮（紫罗兰） → 气泡推近放大 → 缩回 */
/* 校准至原图中手机的实际位置和倾斜角度 */
.story-stage.play .chat-phone-a { left: 45px;  top: -20px; width: 85px; height: 145px; transform: rotate(8deg); }
.story-stage.play .chat-phone-b { left: 130px; top: -35px; width: 75px; height: 130px; transform: rotate(-2deg); }
.story-stage.play .chat-phone-c { left: 255px; top: 155px; width: 80px; height: 135px; transform: rotate(-5deg); }

.story-stage.play .chat-phone-a .chat-phone-frame { animation: chatPress 2.2s cubic-bezier(.4,0,.2,1) .2s both; }
.story-stage.play .chat-phone-a .chat-bubble     { animation: chatPush  2.2s cubic-bezier(.4,0,.2,1) .7s both; }
.story-stage.play .chat-phone-b .chat-phone-frame { animation: chatPress 2.2s cubic-bezier(.4,0,.2,1) 1.2s both; }
.story-stage.play .chat-phone-b .chat-bubble     { animation: chatPush  2.2s cubic-bezier(.4,0,.2,1) 1.7s both; }
.story-stage.play .chat-phone-c .chat-phone-frame { animation: chatPress 2.2s cubic-bezier(.4,0,.2,1) 2.2s both; }
.story-stage.play .chat-phone-c .chat-bubble     { animation: chatPush  2.2s cubic-bezier(.4,0,.2,1) 2.7s both; }

@keyframes chatPress {
  0%   { transform: translateY(0);    border-color: transparent; box-shadow: none; }
  18%  { transform: translateY(3px); }
  32%  { transform: translateY(1px);  border-color: rgba(196,140,255,.95); box-shadow: 0 0 14px rgba(160,110,255,.85), 0 0 36px rgba(140,90,255,.55); }
  58%  { transform: translateY(0);    border-color: rgba(196,140,255,.9); box-shadow: 0 0 10px rgba(160,110,255,.6); }
  82%  { transform: translateY(0); }
  100% { transform: translateY(0);    border-color: transparent; box-shadow: none; }
}
@keyframes chatPush {
  0%   { opacity: 0; transform: scale(.55); }
  22%  { opacity: 1; transform: scale(1); }
  48%  { opacity: 1; transform: scale(1.85) translateY(-4px); } /* 推近放大 */
  72%  { opacity: 1; transform: scale(1.85) translateY(-4px); }
  100% { opacity: 0; transform: scale(1); }                      /* 缩回原位 */
}

/* —— 思维气泡（男孩头上偏右，2/3 宽 / 1/3 高附近） —— */
.story-stage.play .story-thought3 {
  left: 170px; top: 34px; /* 往左移，更接近男孩 */
  max-width: 122px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 40px;
  padding: 10px 16px;
  text-align: center;
  animation:
    storyPop .6s cubic-bezier(.22,1,.36,1) 5.0s both,
    storyGirlOut .4s ease 6.6s forwards;
}
.story-thought3::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  bottom: -10px; left: 24px; right: auto; top: auto; /* 尾巴在左侧，更接近男孩 */
}
.story-thought3::before {
  content: '';
  position: absolute;
  width: 5px; height: 5px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  bottom: -18px; left: 18px; right: auto; top: auto; /* 尾巴在左侧，更接近男孩 */
}

/* —— 记忆气泡/手/星标/文字：整体后移到右侧、上方 —— */
.story-stage-3.play .story-bubble-memory {
  left: 160px; top: -5px; /* 调高、往左，位于男孩头部上方右侧 */
  width: 140px; height: 85px; /* 恢复高度 */
  animation: storyGrow 1.6s cubic-bezier(.5,0,.4,1) 7.0s both, storyGirlOut .4s ease 11.0s forwards;
}
.story-stage-3.play .story-memory-stars { animation: storyStarPop .5s cubic-bezier(.34,1.56,.64,1) 7.0s both; }
.story-stage-3.play .story-memory { animation: storyMemory 1.6s ease 7.0s both; }
.story-stage-3.play .story-hand {
  left: 210px; top: 10px; /* 下移对齐气泡中心 */
  animation: storyHand 1.6s cubic-bezier(.5,0,.4,1) 7.0s both;
}

/* —— 虚拟屏：掉落推近，缩回右侧（2/3 宽 / 1/3 高） —— */
.story-stage-3.play .story-vscreen {
  animation: storyVscreen3 5.2s cubic-bezier(.34,1.56,.64,1) 11.6s both;
}
@keyframes storyVscreen3 {
  0%   { top: -360px; left: 50%; opacity: 0; transform: translateX(-50%) scale(.54); }
  15%  { top: 20px;   left: 50%; opacity: 1; transform: translateX(-50%) scale(.54); }
  32%  { top: 20px;   left: 50%; transform: translateX(-50%) scale(.76); }
  64%  { top: 20px;   left: 50%; transform: translateX(-50%) scale(.68); }
  100% { top: -5px;   left: 248px; transform: translateX(-50%) scale(.26); opacity: 1; } /* 缩回到之前记忆气泡的位置 */
}

/* —— 图3 虚拟屏：3 句回应，各占一个气泡，梯状递进、快速交叠出现 —— */
.vscreen-replies {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  width: 100%;
  padding: 0 26px;
  box-sizing: border-box;
}
.vscreen-reply {
  position: relative;
  background: rgba(255,255,255,.97);
  color: #111;
  border-radius: 16px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.vscreen-reply::after {
  content: '';
  position: absolute;
  width: 0; height: 0;
  border: 7px solid transparent;
  left: 20px; bottom: -13px;
  border-top-color: rgba(255,255,255,.97);
}
.story-stage-3.play .vscreen-reply.reply-1 { margin-left: 0;   animation: replyIn .35s ease 11.9s both; }
.story-stage-3.play .vscreen-reply.reply-2 { margin-left: 40px; animation: replyIn .35s ease 12.3s both; }
.story-stage-3.play .vscreen-reply.reply-3 { margin-left: 80px; animation: replyIn .35s ease 12.7s both; }
@keyframes replyIn {
  0%   { opacity: 0; transform: translateY(10px) scale(.8); }
  100% { opacity: 1; transform: none; }
}
.vscreen-reply ruby { ruby-position: over; }
.vscreen-reply rt { font-size: 8px; color: #6E56CF; letter-spacing: .03em; }

/* —— 图3 记忆气泡文字定位 —— */
.story-stage-3 .story-memory {
  left: 10px; top: 32px;
  width: 120px;
  font-size: 13px;
  line-height: 1.25;
}

/* ============ Section 3：致 User 的一封信 ============ */
/* ============ Section 3: 日记本风格UI ============ */
.letter-section { 
  padding: 96px 24px 40px; 
  display: flex;
  flex-direction: column;
  align-items: center; /* 确保整个大容器居中，让最大宽度的日记本居中 */
}

.diary-section-title {
  text-align: left; 
  font-family: 'Sen', system-ui, sans-serif; 
  font-size: 16px; 
  font-weight: 700;
  color: #e5e7eb; 
  margin-bottom: 24px; 
  letter-spacing: 0.05em;
  text-transform: capitalize; /* 确保栏目名首字母大写 */
  width: 100%;
  max-width: 1400px; 
}

.diary-book {
  display: flex;
  justify-content: center;
  margin: 0 auto; /* 移除原来的 48px top margin，交给 title 的 bottom margin 控制 */
  width: 100%;
  gap: 16px; /* 真实的纸张物理间隙 */
  padding: 16px 22px; /* 笔记本硬壳露出的边缘厚度 */
  background: #241a1c; /* 笔记本硬壳颜色：深紫棕 */
  background-image: 
    /* 模拟硬壳的纹理和中间书脊的凹槽立体感 */
    linear-gradient(to right, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.05) 48%, rgba(0,0,0,0.4) 50%, rgba(255,255,255,0.08) 52%, rgba(0,0,0,0) 100%);
  border-radius: 18px; /* 外壳圆角大一点 */
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5), 
    inset 0 0 0 1px rgba(255, 255, 255, 0.1), /* 外壳边缘反光 */
    inset 0 0 12px rgba(0, 0, 0, 0.4); /* 内部阴影，增强厚度感 */
  position: relative;
  color: #333;
}

/* 左右两页 */
.diary-page {
  flex: 1;
  background: #ffffff;
  min-height: 700px;
  position: relative;
  z-index: 2;
}

.diary-page.left-page {
  border-radius: 12px;
  background: #fdfdfd;
  box-shadow: inset -10px 0 20px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  padding: 60px 40px;
  /* 使用 background-size 和 background-position 让背景横线从 120px 往下画，顶部自然留白，绝不使用遮罩 */
  background-image: repeating-linear-gradient(transparent, transparent 31px, #e5e7eb 31px, #e5e7eb 32px);
  background-position: 0 120px;
  background-size: 100% calc(100% - 120px);
  background-repeat: no-repeat;
}

.diary-page.right-page {
  border-radius: 12px;
  background: #fefefe;
  box-shadow: inset 10px 0 20px rgba(0,0,0,0.03);
  padding: 60px 40px; /* 恢复正常的 padding，去掉之前为了给绝对定位留的 140px */
  background-image: repeating-linear-gradient(transparent, transparent 31px, #e5e7eb 31px, #e5e7eb 32px);
  background-attachment: local;
  background-origin: local;
  line-height: 32px;
  display: flex;
  flex-direction: column;
}

/* 右侧信件正文 */
.diary-letter-body {
  position: relative;
}

/* 右页底部大标题和图标 */
.diary-slogan {
  margin-top: 60px; /* 距离上方信件正文有充足的留白 */
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

/* 绘制双四芒星图案 (SVG 容器) */
.diary-slogan-stars {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.diary-slogan h2 {
  font-family: 'Caveat', 'Patrick Hand', cursive; /* 接近手写体且不潦草的连笔字体 */
  font-size: 38px; 
  color: #4a3b8c; 
  line-height: 1.5; /* 增大行高，拉开两行之间的间距 */
  font-weight: 700; 
  letter-spacing: 0.02em; 
  margin: 0;
}



/* 中间装订线：悬浮在页面间隙上方 */
.diary-spine {
  position: absolute;
  left: 50%;
  top: 56px; /* 40px padding-top + 16px 外壳 margin */
  bottom: 56px;
  width: 56px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
}

.binder-ring {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  height: 24px;
}

.binder-ring .hole {
  width: 14px;
  height: 14px;
  background: #111; /* 黑色小圆孔 */
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
  z-index: 1;
}

.binder-ring .metal-ring {
  position: absolute;
  left: 5px; right: 5px;
  height: 8px;
  background: #ffffff; /* 纯白色装订钩 */
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 2;
}

/* 左页：头部 */
/* 左页：头部 */
.diary-header {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  margin-bottom: 0;
}

.diary-icon-wrapper {
  width: 48px;
  height: 48px;
}
.diary-date {
  display: flex;
  flex-direction: column;
}
.diary-date .d-day {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}
.diary-date .d-full {
  font-size: 12px;
  color: #777;
}

/* 左页：拍立得 */
.polaroid-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.polaroid {
  background: #fff;
  padding: 12px 12px 36px 12px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
}
.polaroid-img-placeholder {
  width: 100%;
  aspect-range: 1 / 1.2;
  height: 240px;
  background: linear-gradient(135deg, #e2e8f0, #c3d2e5);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 2px;
}
.polaroid-caption {
  margin-top: 16px;
  font-size: 12px;
  color: #555;
}

/* 左页：底部 */
.diary-footer-left {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}
.streak-placeholder {
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* 右页：顶部卡片 */
.diary-top-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  margin-bottom: 30px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}
.card-body p {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin: 16px 0;
  color: #222;
}
.card-actions {
  text-align: center;
  font-size: 12px;
  color: #888;
}


.diary-letter-eyebrow {
  font-family: 'Architects Daughter', 'Patrick Hand', 'Comic Sans MS', cursive;
  font-size: 15px;
  line-height: 26px; /* 引题：小一号，类似信件抬头 */
  font-weight: 400;
  color: #8a7bd8;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}
.diary-letter-title {
  font-family: 'Architects Daughter', 'Patrick Hand', 'Comic Sans MS', cursive;
  font-size: 28px;
  line-height: 1.3; 
  font-weight: 400;
  color: #241c4e;
  letter-spacing: 0.02em;
  margin: 0 0 32px; 
}
.diary-letter-body p {
  font-family: 'Architects Daughter', 'Patrick Hand', 'Comic Sans MS', cursive;
  font-size: 17px;
  line-height: 32px; 
  font-weight: 400;
  color: #333;
  letter-spacing: 0.015em;
  margin: 0 0 32px; 
}
.title-quote {
  color: #8C52FF;
}
.formula-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 64px; /* 2 格网格高度：单行、行高更大，且不破坏后续对齐 */
  margin: 0 0 32px;
  background: rgba(110, 86, 207, 0.05); /* 增加一层极淡的紫色底纹，就像高亮笔 */
  border-radius: 8px;
  font-family: 'Architects Daughter', 'Patrick Hand', 'Comic Sans MS', cursive;
  text-align: center;
  line-height: 1; /* 单行 */
}
.formula-side {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.formula-num {
  font-size: 28px;
  color: #111111;
}
.formula-unit {
  font-size: 13px;
  color: #666666;
}
.formula-eq {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  padding-top: 10px; /* 给上方的 10,000x 留出空间 */
}
.formula-ratio {
  font-size: 13px;
  font-weight: 700;
  color: #8C52FF;
  margin-bottom: 4px;
}
.formula-symbol {
  font-size: 36px;
  color: #8C52FF;
}
.formula-note {
  font-family: 'Architects Daughter', 'Patrick Hand', 'Comic Sans MS', cursive;
  font-size: 12px;
  line-height: 32px; /* 与信纸横线对齐 */
  color: #9a9ab0;
  text-align: center;
  margin: 0 0 32px;
  letter-spacing: 0.06em;
}

.diary-letter-body p:last-child {
  margin-bottom: 0;
}

/* 右页：底部 */
.diary-footer-right {
  margin-top: 20px;
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 900px) {
  .diary-book { flex-direction: column; }
  .diary-spine { display: none; }
  .diary-page { padding: 24px; }
}
