@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap');

/* Oswald for display numbers (section num, hero title) — web-safe replacement for Circular Std */
:root {
  /* ── Stage Dimensions ── */
  --stage-w: 1920px;
  --stage-h: 1080px;

  /* ── Layout anchors (from Figma absolute positions) ── */
  --nav-line-y: 100px;
  --section-line-bottom-y: 980px;
  --line-left-x: 216px;
  --line-right-x: 1704px;
  --arrow-y: 1030px;

  /* ── Scale (written by JS on resize) ── */
  --scale: 1;

  /* ──────────────────────────────
     Colors
  ────────────────────────────── */
  --color-bg:     #0b0b0b;
  --color-white:  #ffffff;
  --color-black:  #000000;
  --color-accent: #ffd600;   /* yellow dialog bubble */
  --color-gray:   #999999;   /* info caption text */

  /* White with alpha — from rgba() values in Figma */
  --color-white-70: rgba(255, 255, 255, 0.70);
  --color-white-55: rgba(255, 255, 255, 0.55);
  --color-white-50: rgba(255, 255, 255, 0.50);
  --color-white-40: rgba(255, 255, 255, 0.40);
  --color-white-20: rgba(255, 255, 255, 0.20);
  --color-white-10: rgba(255, 255, 255, 0.10);
  --color-white-05: rgba(255, 255, 255, 0.05);
  --color-white-02: rgba(255, 255, 255, 0.02);

  /* ──────────────────────────────
     Font Families
     Rules from CLAUDE.md:
     · Chinese → system stack only, no fake local font loading
     · Large display numbers → Oswald (web) as Circular Std substitute
  ────────────────────────────── */
  --font-display: 'Oswald', 'Arial Black', sans-serif;
  --font-cn:      -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* ──────────────────────────────
     Font Sizes
  ────────────────────────────── */
  --fs-hero:        320px;   /* Cover "Portfolio" heading */
  --fs-section-num: 160px;   /* Section numbers "01" "02" ... */
  --fs-title:        52px;   /* Section title (e.g. 旅小哇·对话体验设计) */
  --fs-nav:          32px;   /* Nav bar text, "[ CONTACT ]" */
  --fs-dialog-lg:    30px;   /* Accent (yellow) dialog bubble */
  --fs-info:         28px;   /* Info / caption text */
  --fs-body:         24px;   /* Subtitle, button labels, secondary text */
  --fs-dialog-sm:  22.5px;   /* Smaller dialog bubbles */

  /* ──────────────────────────────
     Line Heights
  ────────────────────────────── */
  --lh-tight:       1.2;
  --lh-normal:      1.5;
  --lh-section-num: 160px;
  --lh-nav:          48px;   /* paired with --fs-nav */
  --lh-dialog-lg:    48px;   /* paired with --fs-dialog-lg */
  --lh-dialog-sm:    36px;   /* paired with --fs-dialog-sm */

  /* ──────────────────────────────
     Letter Spacing
  ────────────────────────────── */
  --ls-hero:        19.2px;
  --ls-section-num:  6.4px;
  --ls-nav-logo:     1.92px;  /* "Portfolio" in nav */
  --ls-nav:          1.28px;  /* "2026", "[ CONTACT ]" */
  --ls-subtitle:     1.2px;
  --ls-info:         0.56px;
  --ls-dialog-lg:   -0.9px;
  --ls-dialog-sm:  -0.675px;

  /* ──────────────────────────────
     Border Radius
  ────────────────────────────── */
  /* Bubble shapes: tl tr br bl */
  --radius-bubble-lg: 48px 48px 4px  48px;
  --radius-bubble-sm: 36px 36px 3px  36px;
  --radius-tab-active:   4px;
  --radius-tab-inactive: 72px;
  --radius-phone: 41.6px;

  /* ──────────────────────────────
     Spacing / Gap / Padding
  ────────────────────────────── */
  --gap-section-header: 48px;
  --gap-title-sub:       4px;
  --gap-dialog:         20px;
  --gap-buttons:        20px;
  --pad-bubble-lg:   20px 32px;
  --pad-bubble-sm:   15px 24px;
  --pad-tab:         14px 60px;

  /* ──────────────────────────────
     Misc
  ────────────────────────────── */
  --bg-image-opacity: 0.2;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  overflow: hidden;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#root {
  height: 100%;
}
.stage {
  width: 1920px;
  height: 1080px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--scale));
  transform-origin: center center;
}
/* 联系方式弹层 —— 通过 portal 挂到 body，不受 Stage 的 scale 影响。
   非全屏：仅一张锚定在右上角的卡片，深色模糊只作用于卡片自身。 */

/* 透明的全窗点击层：只用来「点外部关闭」，不做任何遮罩/模糊 */
.contact-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

/* 浮层卡片：left/top 由 JS 实测写入，translateX(-50%) 让卡片中心对齐 contact 按钮中心 */
.contact-card {
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 36px;
  border-radius: 8px;
  /* 深色 + 模糊背板，保证白字在任意屏背景上的可读性 */
  background: rgba(12, 12, 12, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-white-10);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: contact-pop 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--color-white-40);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}
.contact-close:hover {
  color: var(--color-white);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  /* reset button */
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  color: var(--color-white);
  transition: opacity 0.2s ease;
}
.contact-row:hover {
  opacity: 0.7;
}

/* 「已复制」提示：靠右淡入，1.6s 后自动隐去 */
.contact-copied {
  margin-left: auto;
  padding-left: 16px;
  font-family: var(--font-cn);
  font-size: 13px;
  color: var(--color-accent);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.contact-copied.is-show {
  opacity: 1;
  transform: translateY(0);
}

.contact-icon {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

.contact-text {
  font-family: var(--font-cn);
  font-size: 24px;
  letter-spacing: 1px;
  line-height: 1.4;
  color: var(--color-white);
  white-space: nowrap;
  user-select: text;
}

.contact-divider {
  width: 100%;
  height: 1px;
  background: rgba(217, 217, 217, 0.1);
}

@keyframes contact-pop {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-card {
    animation: none;
  }
}
.shell {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
}

/* ── Navigation ── */
/* Logo 切图 (Figma 246:4382): 147×48。左边缘对齐下方内容列 x=264 */
.shell-nav-logo {
  position: absolute;
  left: 264px;
  top: 50px;
  transform: translateY(-50%);
  width: 147px;
  height: 48px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* download：水平居中于导航，弹窗样式复用 contact，icon 用彩蛋页文件夹切图 */
.shell-nav-download {
  position: absolute;
  left: 50%;
  top: 50px;
  transform: translate(-50%, -50%);
  font-family: var(--font-cn);
  font-size: var(--fs-nav);
  color: var(--color-white-40);
  text-transform: uppercase;
  letter-spacing: var(--ls-nav);
  line-height: var(--lh-nav);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 10;
  transition: color 0.2s ease;
}
.shell-nav-download:hover {
  color: var(--color-white);
}

/* 右边缘距右侧 264px，与左侧 logo 边距对称 */
.shell-nav-contact {
  position: absolute;
  right: 264px;
  top: 50px;
  transform: translateY(-50%);
  font-family: var(--font-cn);
  font-size: var(--fs-nav);
  color: var(--color-white-40);
  text-transform: uppercase;
  letter-spacing: var(--ls-nav);
  line-height: var(--lh-nav);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  /* 抬到屏内容之上：每屏根容器(inset:0)在 DOM 中晚于本按钮，默认会盖住并吞掉点击 */
  z-index: 10;
  transition: color 0.2s ease;
}
.shell-nav-contact:hover {
  color: var(--color-white);
}

/* ── Structural lines ── */
.shell-line-h {
  position: absolute;
  left: 0;
  width: 1920px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.shell-line-h--top    { top: var(--nav-line-y); }
.shell-line-h--bottom { top: var(--section-line-bottom-y); }

.shell-line-v {
  position: absolute;
  /* 竖线撑满视口：经 Stage 的 scale 后正好等于 100vh，铺满整屏（含上下 letterbox） */
  top: 50%;
  height: calc(100vh / var(--scale));
  transform: translateY(-50%);
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.shell-line-v--left  { left: var(--line-left-x); }
.shell-line-v--right { left: var(--line-right-x); }

/* ── Down arrow ── 可点击跳下一屏，44×44 命中区内居中 22×27 箭头 */
.shell-arrow {
  position: absolute;
  left: 50%;
  top: var(--arrow-y);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 4;
  animation: arrow-bob 1.8s ease-in-out infinite;
}

.shell-arrow img {
  width: 22px;
  height: 27px;
  display: block;
  transition: filter 0.25s ease;
}

.shell-arrow:hover img {
  filter: brightness(1.6);
}

/* 持续上下浮动 + 透明度呼吸，提示可向下滚动 */
@keyframes arrow-bob {
  0%, 100% { transform: translate(-50%, -50%); opacity: 0.85; }
  50%      { transform: translate(-50%, calc(-50% + 9px)); opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .shell-arrow { animation: none; }
}
/* 固定在视口右侧、垂直居中的屏幕导航点（UI chrome，不随 Stage 缩放） */
.scroll-nav {
  position: fixed;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.scroll-nav-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

/* 圆点本体：默认半透明小圆，激活态拉长为白色胶囊 */
.scroll-nav-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.35s ease;
}

.scroll-nav-dot:hover::before {
  background: rgba(255, 255, 255, 0.65);
}

.scroll-nav-dot.is-active::before {
  height: 26px;
  background: #fff;
}

/* hover 时从右侧滑入的屏名标签 */
.scroll-nav-label {
  position: absolute;
  right: 24px;
  white-space: nowrap;
  font-family: var(--font-cn);
  font-size: 13px;
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.scroll-nav-dot:hover .scroll-nav-label {
  opacity: 0.9;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-nav-dot::before,
  .scroll-nav-label {
    transition: none;
  }
}
.cover {
  position: absolute;
  inset: 0;
}

/* Background image — matches Figma image1 rotation/position.
   Outer box: 2925×1447, offset left:-580 bottom:-317 relative to Stage.
   Inner box: 1447×2925 (portrait), rotated -90° so it becomes landscape 2925×1447,
   centered in outer by: left = (2925-1447)/2 = 739, top = (1447-2925)/2 = -739. */
.cover-bg {
  position: absolute;
  left: -580px;
  bottom: -317px;
  width: 2925px;
  height: 1447px;
  pointer-events: none;
  transform: translate(var(--bg-x, 0px), var(--bg-y, 0px));
  transition: transform 0.4s ease-out;
}

/* 前景视差容器：包标题+星星，随鼠标同向轻移 */
.cover-fg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translate(var(--fg-x, 0px), var(--fg-y, 0px));
  transition: transform 0.4s ease-out;
}

.cover-bg-inner {
  position: absolute;
  left: 739px;
  top: -739px;
  width: 1447px;
  height: 2925px;
  transform: rotate(-90deg);
  transform-origin: center center;
  opacity: 0.2;
}

.cover-bg-inner img {
  position: absolute;
  inset: 0;
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Year label — replaces nav logo on cover */
.cover-year {
  position: absolute;
  left: 240px;
  top: 50px;
  transform: translateY(-50%);
  font-family: var(--font-cn);
  font-size: var(--fs-nav);
  font-weight: 400;
  color: var(--color-white-40);
  letter-spacing: var(--ls-nav);
  line-height: var(--lh-nav);
  white-space: nowrap;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

/* Hero title — PNG cutout exported @2x (2856×482px natural).
   Figma node 227:14145: x=216 y=348 width=1463 height=384.
   Display at 1463px wide (= natural/2); center-y at 540 = 348+384/2. */
.cover-hero-img {
  position: absolute;
  left: 50%;
  top: 540px;
  transform: translate(-50%, -50%);
  width: 1463px;
  height: auto;
  pointer-events: auto;
  user-select: none;
}

/* 流体气泡：跟随鼠标的装饰图，图层置于标题文字之上(z-index)。
   位置/形变由 JS 每帧写入 left/top/transform；默认隐藏，封面激活时淡入。 */
.cover-bubble {
  position: absolute;
  left: 960px;
  top: 540px;
  width: 900px;
  height: 668px;
  z-index: 5;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  user-select: none;
  will-change: left, top, transform;
}
.cover-bubble.is-shown {
  opacity: 0.95;
}

/* Brand star icon — Figma node 377:28376: x=1590 y=212 w=271 h=271 (PNG 542×542 @2x).
   Sits at top-right of the "Portfolio" title. */
/* 仅 hover Portfolio 时出现，移走消失；进出都有动效。
   进场用带回弹的 transform transition(pop)，出场缩小淡出；
   闪烁只用 opacity/filter，避免与进出的 transform transition 冲突。 */
.cover-star {
  position: absolute;
  left: 1590px;
  top: 212px;
  width: 271px;
  height: 271px;
  opacity: 0;
  transform: scale(0.4) rotate(-18deg);
  transform-origin: center center;
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  user-select: none;
}
.cover-star.is-shown {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  animation: star-twinkle 3.2s ease-in-out 0.5s infinite;
}
/* 闪烁只动 brightness，opacity 完全交给 transition，保证移走时稳定淡出 */
@keyframes star-twinkle {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.35); }
}

/* Bottom credits */
.cover-name {
  position: absolute;
  left: 240px;
  top: 1030px;
  transform: translateY(-50%);
  font-family: var(--font-cn);
  font-size: var(--fs-nav);
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: var(--ls-nav);
  line-height: var(--lh-nav);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.cover-role {
  position: absolute;
  left: 1680px;
  top: 1030px;
  transform: translate(-100%, -50%);
  font-family: var(--font-cn);
  font-size: var(--fs-nav);
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: var(--ls-nav);
  line-height: var(--lh-nav);
  white-space: nowrap;
  text-align: right;
  pointer-events: none;
  user-select: none;
}

/* ── 文案错峰进场（载入一次性，自下而上淡入；用独立 translate 属性，不动各自的 transform 居中） ── */
@keyframes cover-rise {
  from { opacity: 0; translate: 0 32px; }
  to   { opacity: 1; translate: 0 0; }
}
.cover-year     { animation: cover-rise 0.7s ease both; animation-delay: 0.10s; }
.cover-hero-img { animation: cover-rise 0.7s ease both; animation-delay: 0.22s; }
.cover-name     { animation: cover-rise 0.7s ease both; animation-delay: 0.40s; }
.cover-role     { animation: cover-rise 0.7s ease both; animation-delay: 0.50s; }

@media (prefers-reduced-motion: reduce) {
  .cover-year, .cover-hero-img, .cover-name, .cover-role { animation: none; }
  .cover-bg, .cover-fg { transition: none; }
}
/* 序号切图高度 = 右侧「标题+副标题」两行文本块总高度(118px)：
   标题 52×1.5=78 + gap 4 + 副标题 24×1.5=36 = 118。
   父 flex align-items:center 使两者等高居中 → 序号顶边对齐标题顶边、底边对齐副标题底边。*/
.section-number {
  flex-shrink: 0;
  height: 118px;
  display: flex;
  align-items: center;
}

.section-number img {
  height: 118px;
  width: auto;
  max-width: none;
  pointer-events: none;
}
/* 打字机末尾闪烁光标 — 颜色随文字(currentColor)，打完即由 JS 移除 */
.tw-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: currentColor;
  animation: tw-blink 1s steps(1) infinite;
}

@keyframes tw-blink {
  0%, 50%      { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tw-cursor { animation: none; }
}
/* ════════════════════════════════════════════════
   思维链推导（A1）— 还原 Figma 405:58879
   左侧 2px 导轨 + 缩进内容；推导中逐条揭示，完成后可收起。
════════════════════════════════════════════════ */
.lvcot {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 标题行：状态指示 + 文案（完成后可点击展开/收起） */
.lvcot-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 5px;
  background: none;
  border: none;
  cursor: default;
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.42px;
  color: #000000;
}
.lvcot-head.is-done { cursor: pointer; }
.lvcot-head-text { white-space: nowrap; }

/* 小哇图标（切图 card-wa）：加载中(分析/回复)轻微脉动，完成后定格 */
.lvcot-wa {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}
.lvcot-wa.is-loading {
  animation: lvcot-pulse 1.1s ease-in-out infinite;
}
@keyframes lvcot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.92); }
}

/* 收起箭头（切图 icon-bottom，默认朝下表示可展开）：展开时翻转朝上 */
.lvcot-arrow {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.lvcot-arrow.is-open { transform: rotate(180deg); }

/* 推导主体：左导轨 + 内容；收起时高度归零淡出 */
.lvcot-body {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding-left: 7px;
  max-height: 1200px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.5s ease;
}
.lvcot-body.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: -12px;
}

.lvcot-rail {
  width: 2px;
  flex-shrink: 0;
  border-radius: 1px;
  background: rgba(0, 0, 0, 0.06);
}

.lvcot-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 思考行 / 小标题 / 结论：14px 次要灰 */
.lvcot-line,
.lvcot-label {
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #666666;
  word-break: break-word;
}

.lvcot-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 关键词 chips */
.lvcot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lvcot-tag {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: var(--font-cn);
  font-size: 12px;
  line-height: normal;
  color: #666666;
  white-space: nowrap;
  animation: lvcot-pop 0.3s ease both;
}

/* 引用资料卡片 */
.lvcot-refs {
  display: flex;
  gap: 12px;
}
.lvcot-ref {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: lvcot-pop 0.3s ease both;
}
.lvcot-ref-title {
  font-family: var(--font-cn);
  font-size: 12px;
  line-height: 17px;
  color: #666666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lvcot-ref-source {
  font-family: var(--font-cn);
  font-size: 12px;
  line-height: normal;
  color: #999999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes lvcot-pop {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 正文回答：开头段 + 「标题(加粗)+正文」小节。
   字号统一 15px；段距按 375 设计稿：段与段之间 12，标题与正文之间 8。 */
.lvcot-reply {
  display: flex;
  flex-direction: column;
}
.lvcot-reply-intro,
.lvcot-reply-title,
.lvcot-reply-body {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 15px;
  line-height: 24px;
  letter-spacing: -0.45px;
  color: #000000;
  word-break: break-word;
}
.lvcot-reply-title {
  font-weight: 600;
  margin-top: 12px;
}
.lvcot-reply-body {
  margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .lvcot-wa.is-loading { animation: none; }
  .lvcot-tag,
  .lvcot-ref { animation: none; }
  .lvcot-body { transition: none; }
}
/* ════════════════════════════════════════════════
   旅小哇 · 对话真实 demo（桌面端 A1）
   坐标沿用 .case 内部 1920×1080 绝对定位体系（对齐 Figma 233:3125）。
════════════════════════════════════════════════ */
.lvchat {
  position: absolute;
  inset: 0;
}

/* ── 左侧：中文名轮播列表（对齐 Figma 对话列 left:895 top:368 w:211，右对齐可滚动）── */
.lvchat-list {
  position: absolute;
  left: 895px;
  top: 312px;          /* 上移：+56 顶部留白后，第一条气泡正好落在 y=368，与左侧文案顶对齐 */
  width: 211px;
  height: 560px;
  overflow-y: auto;
  overscroll-behavior: contain;   /* 鼠标滚轮只滚列表，不带动外层翻屏 */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--gap-dialog);
  /* 顶部留出与遮罩等高的空白，使渐隐落在空白上，不压住最上面的气泡 */
  padding: 56px 4px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 56px, #000 calc(100% - 24px), transparent 100%);
}
.lvchat-list::-webkit-scrollbar { display: none; }

/* 气泡样式对齐 Figma .case-bubble（白底 / 黄色高亮） */
.lvchat-q {
  flex-shrink: 0;
  max-width: 100%;
  text-align: right;
  background: var(--color-white-10);
  border: none;
  border-radius: var(--radius-bubble-sm);
  padding: var(--pad-bubble-sm);
  font-family: var(--font-cn);
  font-size: var(--fs-dialog-sm);
  font-weight: 400;
  color: var(--color-white);
  line-height: var(--lh-dialog-sm);
  letter-spacing: var(--ls-dialog-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s ease;
}
.lvchat-q:hover { background: var(--color-white-20); }
.lvchat-q.is-active {
  background: var(--color-accent);
  color: var(--color-black);
}

/* 像素小手：指向当前高亮，跟随上下移动（对齐 Figma left:1124） */
.lvchat-hand {
  position: absolute;
  left: 1124px;
  width: 70.946px;
  height: 50px;
  transform: translateY(-50%);
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lvchat-hand img {
  width: 50px;
  height: 70.946px;
  object-fit: cover;
  transform: rotate(-90deg);
  max-width: none;
}

/* ── 右侧：手机（几何沿用 Figma 242:5185） ── */
.lvchat-phone {
  position: absolute;
  left: 1214px;
  top: 150px;
  width: 430px;
  height: 880px;
}

.lvchat-screen {
  position: absolute;
  left: 50%;
  top: calc(50% + 0.24px);
  transform: translate(-50%, -50%);
  width: 390px;
  height: 844.48px;
  border-radius: 40px;
  overflow: hidden;
  background: #f8f8f8;
}

/* 冷启动态：整屏首页切图 */
.lvchat-cold {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.lvchat-cold--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  font-family: var(--font-cn);
  font-size: 14px;
  color: #9aa0a8;
  background: #f8f8f8;
}

/* 冷启动态首页：整屏切图 + 可点击热区容器 */
.lvchat-cold-wrap {
  position: absolute;
  inset: 0;
}

/* 热区层：手机层直属（非 .lvchat-screen 内），尺寸/位置对齐屏幕，z-index 高于手机壳 frame(3)，
   确保是最顶层可点击的图层；不受 .lvchat-screen 的 overflow/transform 堆叠上下文影响。 */
.lvchat-hotspots {
  position: absolute;
  left: 50%;
  top: calc(50% + 0.24px);
  transform: translate(-50%, -50%);
  width: 390px;
  height: 844.48px;
  z-index: 5;
  pointer-events: auto;
}
.lvchat-hot {
  position: absolute;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease;
}
.lvchat-hot:hover { background: rgba(0, 0, 0, 0.04); }
.lvchat-hot:active { background: rgba(0, 0, 0, 0.08); }

/* 点击控件后弹出的切图浮层（菜单/全部/键盘 = 整屏；点任意处关闭） */
.lvchat-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  animation: lvchat-overlay-in 0.2s ease both;
}
.lvchat-overlay-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
@keyframes lvchat-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 语音浮层：半透明压暗背景 + 底部「按住说话」面板，每 2s 轮播 */
.lvchat-overlay--voice {
  background: rgba(0, 0, 0, 0.3);
}
.lvchat-voice-img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  display: block;
  animation: lvchat-voice-in 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes lvchat-voice-in {
  from { transform: translateY(12%); opacity: 0.4; }
  to   { transform: translateY(0); opacity: 1; }
}

/* 左上角返回热区（对话态显示，无 icon）：返回冷启动首页，位置对齐 Figma 导航栏返回箭头 */
.lvchat-back {
  position: absolute;
  left: 6px;
  top: 46px;
  width: 48px;
  height: 44px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  z-index: 4;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease;
}
.lvchat-back:hover { background: rgba(0, 0, 0, 0.04); }
.lvchat-back:active { background: rgba(0, 0, 0, 0.08); }

/* 消息流（可滚动，上下让出状态栏 92 / 输入栏 156 高度） */
.lvchat-msgs {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 100px 16px 168px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.lvchat-msgs::-webkit-scrollbar { display: none; }

.lvchat-turn {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 底部动态占位：让最新一轮能滚到顶（高度由 JS 计算） */
.lvchat-spacer {
  flex-shrink: 0;
  height: 0;
}

.lvchat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  animation: lvchat-pop 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.lvchat-row--user { justify-content: flex-end; }
/* 机器人侧无头像：引导语 + 卡片 + 猜你想问 纵向左对齐堆叠 */
.lvchat-row--bot {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

@keyframes lvchat-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lvchat-bubble {
  padding: 10px 16px;
  font-family: var(--font-cn);
  font-size: 15px;
  line-height: 24px;
  letter-spacing: -0.45px;
  word-break: break-word;
}
/* 用户气泡（Figma 392:41853）：#ffd600 / 圆角 24-24-2-24 / Medium 黑字 */
.lvchat-bubble--user {
  max-width: 80%;
  background: var(--color-accent);
  color: #000000;
  font-weight: 400;
  border-radius: 24px 24px 2px 24px;
}
/* 机器人气泡（Figma 392:41939）：白底 / 圆角 2-24-24-24 / Regular 黑字 */
.lvchat-bubble--bot {
  max-width: 100%;
  background: #ffffff;
  color: #000000;
  font-weight: 400;
  border-radius: 2px 24px 24px 24px;
}

/* 卡片切图：圆角容器自适应宽度 */
.lvchat-card {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  animation: lvchat-pop 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.lvchat-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* 猜你想问（Figma 392:41959）：小标题 + 描边 chip */
.lvchat-sugs {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.lvchat-sugs-label {
  font-family: var(--font-cn);
  font-size: 12px;
  line-height: 18px;
  color: #999999;
  letter-spacing: -0.36px;
}
.lvchat-sug {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 8px 12px;
  font-family: var(--font-cn);
  font-size: 15px;
  line-height: 24px;
  letter-spacing: -0.45px;
  color: #000000;
  text-align: left;
  white-space: nowrap;   /* 猜你想问每条保持一行，不换行 */
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  animation: lvchat-pop 0.3s ease both;
}
.lvchat-sug:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}
.lvchat-sug:active { transform: scale(0.98); }
.lvchat-sug-star {
  width: 8px;
  height: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 正在输入 三点 */
.lvchat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
}
.lvchat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b8bcc4;
  animation: lvchat-dot 1.1s ease-in-out infinite;
}
.lvchat-typing span:nth-child(2) { animation-delay: 0.18s; }
.lvchat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes lvchat-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1; transform: translateY(-3px); }
}

/* 顶部状态栏 / 底部对话组件（切图，盖在消息流之上遮挡滚动内容） */
.lvchat-statusbar,
.lvchat-inputbar {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
  display: block;
}
.lvchat-statusbar { top: 0; }
.lvchat-inputbar { bottom: 0; }

/* 手机外壳（与 Figma 同样的轻微溢出） */
.lvchat-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.lvchat-frame img {
  position: absolute;
  top: -1.48%;
  left: -2.33%;
  width: 104.42%;
  height: 102.95%;
}

@media (prefers-reduced-motion: reduce) {
  .lvchat-row, .lvchat-card, .lvchat-sug { animation: none; }
  .lvchat-typing span { animation: none; }
  .lvchat-hand { transition: none; }
}
.case {
  position: absolute;
  inset: 0;
}

/* 内容区无自身盒子：绝对定位子元素的包含块仍是 .case，仅用于按 activeTab 重挂载 */
.case-body {
  display: contents;
}

/* ── 切换/进场编排动效（A1–A3、B1–B3 重挂载时各元素错峰进场）──
   用独立 translate/scale 属性做位移，避免覆盖各元素自身的居中 transform。 */
@keyframes case-rise {
  from { opacity: 0; translate: 0 24px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes case-slide-r {
  from { opacity: 0; translate: 26px 0; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes case-rise-phone {
  from { opacity: 0; translate: 0 30px; scale: 0.97; }
  to   { opacity: 1; translate: 0 0;  scale: 1; }
}
/* 大屏从中间展开：整图以竖直中线为轴横向拉伸（scaleX），从窄缝拉满至满幅。
   含 translate(-50%,-50%) 以保留居中（base transform 会被 animation 覆盖）。 */
@keyframes case-bigimg-open {
  from { transform: translate(-50%, -50%) scaleX(0.04); opacity: 0.4; }
  to   { transform: translate(-50%, -50%) scaleX(1);    opacity: 1; }
}

.case--animate-in .case-header { animation: case-rise 0.45s ease-out both; animation-delay: 0.04s; }
.case--animate-in .case-info   { animation: case-rise 0.45s ease-out both; animation-delay: 0.12s; }
.case--animate-in .case-other  { animation: case-rise 0.45s ease-out both; animation-delay: 0.16s; }
.case--animate-in .case-phone  { animation: case-rise-phone 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: 0.06s; }
/* 大屏：整图以中线为轴横向拉伸展开（scaleX），节奏加快 */
.case--animate-in .case-bigimg { animation: case-bigimg-open 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both; animation-delay: 0.06s; }
.case--animate-in .case-mascot { animation: case-rise 0.5s ease-out both; animation-delay: 0.32s; }

/* 对话标签：从右侧依次滑入 */
.case--animate-in .case-dialogs > * { animation: case-slide-r 0.45s ease-out both; }
.case--animate-in .case-dialogs > *:nth-child(1) { animation-delay: 0.20s; }
.case--animate-in .case-dialogs > *:nth-child(2) { animation-delay: 0.26s; }
.case--animate-in .case-dialogs > *:nth-child(3) { animation-delay: 0.32s; }
.case--animate-in .case-dialogs > *:nth-child(4) { animation-delay: 0.38s; }

@keyframes accent-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 214, 0, 0); }
  50%      { box-shadow: 0 0 18px 2px rgba(255, 214, 0, 0.55); }
}

@media (prefers-reduced-motion: reduce) {
  .case--animate-in .case-header,
  .case--animate-in .case-info,
  .case--animate-in .case-other,
  .case--animate-in .case-phone,
  .case--animate-in .case-bigimg,
  .case--animate-in .case-mascot,
  .case--animate-in .case-dialogs > * { animation: none; }
  .case-bubble--lit::after { animation: none; }
  .case-bigimg img { animation: none; }
}

/* ── Section header ── */
.case-header {
  position: absolute;
  left: 264px;
  top: 128px;
  display: flex;
  align-items: center;
  gap: var(--gap-section-header);
}


.case-header-titles {
  display: flex;
  flex-direction: column;
  gap: var(--gap-title-sub);
  white-space: nowrap;
  flex-shrink: 0;
}

.case-header-title {
  font-family: var(--font-cn);
  font-size: var(--fs-title);
  font-weight: 500;
  color: var(--color-white);
  line-height: var(--lh-normal);
}

.case-header-subtitle {
  font-family: var(--font-cn);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-white-55);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-subtitle);
}

/* ── Left info caption ── */
.case-info {
  position: absolute;
  /* 竖线与背景结构竖线(--line-left-x)对齐，叠成一段高亮 */
  left: var(--line-left-x);
  top: 368px;
  width: 442px;
  display: flex;
  align-items: flex-start;
  gap: var(--gap-section-header);
}

.case-info-line {
  width: 1px;
  align-self: flex-start;
  flex-shrink: 0;
  background: var(--color-white-50);
  /* 高度由 JS 跟随文字高度写入；换行增长时平滑过渡 */
  transition: height 0.35s ease;
}

.case-info-text {
  flex: 1;
  font-family: var(--font-cn);
  font-size: var(--fs-info);
  font-weight: 400;
  color: var(--color-gray);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-info);
}

/* ── Dialog annotation bubbles (optional) ── */
.case-dialogs {
  position: absolute;
  left: 895px;
  top: 368px;
  width: 211px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--gap-dialog);
}

/* 四标签尺寸(字号/padding/圆角/高度)完全一致；高亮态(--lit)仅切底色(黄)+文字色(黑)，
   由 JS 在四标签间循环切换，平滑过渡 + 轻微上移。 */
.case-bubble {
  position: relative;
  background: var(--color-white-10);
  border-radius: var(--radius-bubble-sm);
  padding: var(--pad-bubble-sm);
  font-family: var(--font-cn);
  font-size: var(--fs-dialog-sm);
  font-weight: 400;
  color: var(--color-white);
  line-height: var(--lh-dialog-sm);
  letter-spacing: var(--ls-dialog-sm);
  text-align: right;
  white-space: nowrap;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s ease;
}

.case-bubble--lit {
  background: var(--color-accent);
  color: var(--color-black);
  transform: translateY(-4px);
}

/* 辉光脉动放在独立 ::after，避免与进场 slide-in 抢占 animation 属性 */
.case-bubble--lit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: accent-pulse 2.2s ease-in-out infinite;
}

/* ── Mascot icon (optional, rotated 90°) ──
   垂直居中于黄色「冷启动状态」气泡：气泡 top 368 + 高 66/2 = 中心 401；
   小手高 50 → top = 401 - 25 = 376 */
.case-mascot {
  position: absolute;
  left: 1124px;
  top: 376px;
  width: 70.946px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-mascot img {
  width: 50px;
  height: 70.946px;
  object-fit: cover;
  transform: rotate(-90deg);
  max-width: none;
  pointer-events: none;
}

/* ── Phone mockup — strict 430×880 ── */
.case-phone {
  position: absolute;
  left: 1214px;
  top: 150px;
  width: 430px;
  height: 880px;
  overflow: hidden;
}

/* App screenshot (no border — Figma border-0) */
.case-phone-screen {
  position: absolute;
  left: 50%;
  top: calc(50% - 0.52px);
  transform: translate(-50%, -50%);
  width: 390px;
  height: 844.48px;
  border-radius: var(--radius-phone);
  overflow: hidden;
}

.case-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-phone);
  pointer-events: none;
}

/* 手机屏轮播(slide)：横向轨道平移，模拟正常 App 页面切换 */
.case-phone-screen--slide .case-phone-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.case-phone-screen--slide .case-phone-track > img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-phone);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .case-phone-screen--slide .case-phone-track {
    transition: none;
  }
}

/* 横向轮播 + 每页竖向自然滚动(A3 行程长图)：在 slide 轨道里，每页是独立竖滚容器，
   完整长图按宽度铺满、高度自适应，在手机窗口内上下自然滚动。 */
.case-phone-screen--carousel-scroll .case-phone-slide {
  flex: 0 0 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  /* 阻止滚动冒泡到外层 snap 容器 */
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.case-phone-screen--carousel-scroll .case-phone-slide::-webkit-scrollbar {
  display: none;
}
.case-phone-screen--carousel-scroll .case-phone-slide img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* 手机屏轮播(fade)：多张截图叠放，激活的一张淡入并轻微放大，其余淡出 */
.case-phone-screen--fade img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 1.1s ease;
}
.case-phone-screen--fade img.is-active {
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .case-phone-screen--fade img {
    transition: none;
    transform: none;
  }
}

/* Scrollable variant — long screenshot scrolls inside the fixed phone window */
.case-phone-screen--scroll {
  overflow-y: auto;
  overflow-x: hidden;
  /* Prevent wheel events from bubbling to the outer snap container */
  overscroll-behavior: contain;
  /* Hide scrollbar — phone UI shouldn't show a browser scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.case-phone-screen--scroll::-webkit-scrollbar {
  display: none;
}

.case-phone-screen--scroll img {
  height: auto;
  object-fit: initial;
}

/* ── Big-image variant (B3 可视化大屏) — 水平居中，垂直中心偏上 75px ── */
.case-bigimg {
  position: absolute;
  left: 50%;
  top: calc(50% - 75px);
  transform: translate(-50%, -50%);
  width: 1392px;
  height: 552px;
  border-radius: 8px;
  border: 12px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-sizing: border-box;
}
.case-bigimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* 轮播：所有大屏图叠放，激活的一张淡入并轻微放大，其余淡出 */
.case-bigimg--carousel img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 1.2s ease;
}
.case-bigimg--carousel img.is-active {
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .case-bigimg--carousel img {
    transition: none;
    transform: none;
  }
}

/* 发现页(A2)：沿用 A1 顶部状态栏，固定在手机屏顶，盖住滚动内容 */
.case-phone-statusbar {
  position: absolute;
  left: 50%;
  /* 对齐 .case-phone-screen 的顶边：屏中心(50% - 0.52px) 上移半个屏高(844.48/2) */
  top: calc(50% - 0.52px - 422.24px);
  transform: translateX(-50%);
  width: 390px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  border-top-left-radius: var(--radius-phone);
  border-top-right-radius: var(--radius-phone);
}

/* 有状态栏时：初始内容从状态栏下方开始（不被切割），下滑后状态栏固定盖住顶部 */
.case-phone--statusbar .case-phone-screen {
  background: #fff;
}
.case-phone--statusbar .case-phone-screen--scroll {
  /* 状态栏切图显示高度 184/2 = 92px */
  padding-top: 92px;
}

/* Phone frame overlay — slight bleed clipped by parent。
   层级高于状态栏切图，确保手机壳/刘海盖在图与状态栏之上 */
.case-phone-frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.case-phone-frame img {
  position: absolute;
  top: -1.48%;
  left: -2.33%;
  width: 104.42%;
  height: 102.95%;
}

/* ── Bottom "other parts" navigation ── */
.case-other {
  position: absolute;
  left: 264px;
  bottom: 122px;
  width: 764px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-dialog);
}

.case-other-label {
  font-family: var(--font-cn);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-white-55);
  letter-spacing: var(--ls-subtitle);
  line-height: var(--lh-normal);
  white-space: nowrap;
}

.case-tabs {
  position: relative;
  display: flex;
  gap: var(--gap-buttons);
  height: 72px;
  width: 560px;
}

/* 宽版 tab 条（02 详情：B1/B2/B3 同屏切换，统一 764 避免跳动） */
.case-tabs--wide {
  gap: 20px;
  width: 764px;
}

/* 滑动高亮块：位置/宽度由 JS 按激活 tab 测量写入，在 tab 间平滑滑动 */
.case-tab-indicator {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 0;
  background: var(--color-white-10);
  border: 1px solid var(--color-white-20);
  border-radius: var(--radius-tab-active);
  pointer-events: none;
}
.case-tab-indicator.is-ready {
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-tab);
  font-family: var(--font-cn);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-white-40);
  line-height: normal;
  white-space: nowrap;
  border-radius: 72px;
  transition: color 0.3s ease;
}

.case-tab--active {
  color: var(--color-white);
}

.case-tab--clickable {
  cursor: pointer;
}

/* hover 态(A1–A3 / B1–B3)：非激活 tab 悬停时浮现一层淡背景(滑块预览) + 文字提亮，
   背景样式与 .case-tab-indicator 一致，让人预知点击后滑块将滑到这里。
   ::before z-index:-1 压在文字下、滑块上(滑块在父层 z-index:0，本 tab 自身 z-index:1)。 */
.case-tab--clickable::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius-tab-active);
  background: var(--color-white-02);
  border: 1px solid var(--color-white-05);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.case-tab--clickable:not(.case-tab--active):hover {
  color: var(--color-white-70);
}

.case-tab--clickable:not(.case-tab--active):hover::before {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .case-tab--clickable::before {
    transition: none;
  }
}
/* ── 02 屏淡入包裹层（catalog↔detail、B 之间切换统一 150ms） ── */
.works-fade {
  position: absolute;
  inset: 0;
}

/* 目录态：标题 + 三卡错峰进场。
   gate 在 .snap-section.is-visible：滚入视口才播（避免单页多屏在后台提前播完），
   滚走摘除、滚回重播；catalog↔detail 重挂载时 is-visible 仍为真，也会重放。 */
@keyframes works-rise {
  from { opacity: 0; translate: 0 44px; }
  to   { opacity: 1; translate: 0 0; }
}
.works-header, .works-card { opacity: 0; }

.snap-section.is-visible .works-header { animation: works-rise 0.75s ease-out both; animation-delay: 0.08s; }
.snap-section.is-visible .works-card   { animation: works-rise 0.75s ease-out both; }
.snap-section.is-visible .works-card:nth-child(1) { animation-delay: 0.24s; }
.snap-section.is-visible .works-card:nth-child(2) { animation-delay: 0.42s; }
.snap-section.is-visible .works-card:nth-child(3) { animation-delay: 0.60s; }

@media (prefers-reduced-motion: reduce) {
  .works-header, .works-card { opacity: 1 !important; animation: none !important; }
}

.works {
  position: absolute;
  inset: 0;
}

/* Section header */
.works-header {
  position: absolute;
  left: 264px;
  top: 128px;
  display: flex;
  align-items: center;
  gap: var(--gap-section-header);
}

.works-header-titles {
  display: flex;
  flex-direction: column;
  gap: var(--gap-title-sub);
  white-space: nowrap;
  flex-shrink: 0;
}

.works-header-title {
  font-family: var(--font-cn);
  font-size: var(--fs-title);
  font-weight: 500;
  color: var(--color-white);
  line-height: var(--lh-normal);
}

.works-header-subtitle {
  font-family: var(--font-cn);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-white-55);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-subtitle);
}

/* Card row */
.works-cards {
  position: absolute;
  left: 264px;
  top: 368px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.works-card {
  width: 451px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-white-05);
  border-radius: 16px;
  padding: 8px 8px 48px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.works-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-white-20);
  background: rgba(255, 255, 255, 0.07);
}

.works-card-img {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.works-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  pointer-events: none;
  transition: transform 0.4s ease;
}

/* hover 卡片：卡内图片轻微放大（父级 overflow:hidden 裁切） */
.works-card:hover .works-card-img img {
  transform: scale(1.06);
}

.works-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 243px;
  text-align: center;
  flex-shrink: 0;
}

.works-card-title {
  font-family: var(--font-cn);
  font-size: 28px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  line-height: normal;
  white-space: nowrap;
}

.works-card-desc {
  font-family: var(--font-cn);
  font-size: 22px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  line-height: normal;
  white-space: nowrap;
}

/* ── 详情态返回链接（网页新增）：左上角，用户指定坐标 ── */
.works-back {
  position: absolute;
  left: 43px;
  top: 187px;
  z-index: 5;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-cn);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-white-40);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-subtitle);
  white-space: nowrap;
  transition: color 150ms ease-out;
}
.works-back:hover {
  color: var(--color-white);
}
.about {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
}

/* ── Background decoration ── */
.about-bg-deco {
  position: absolute;
  bottom: -317px;
  left: -580px;
  width: 2925px;
  height: 1447px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.about-bg-deco-rotate {
  transform: rotate(-90deg);
  flex: none;
}

.about-bg-deco-img {
  width: 1447px;
  height: 2925px;
  object-fit: cover;
  opacity: 0.2;
  display: block;
  max-width: none;
}

/* ── Section header ── */
.about-header {
  position: absolute;
  top: 128px;
  left: 264px;
  display: flex;
  align-items: center;
  gap: var(--gap-section-header);
  white-space: nowrap;
}

.about-header-titles {
  display: flex;
  flex-direction: column;
  gap: var(--gap-title-sub);
  line-height: var(--lh-normal);
}

.about-header-title {
  font-family: var(--font-cn);
  font-size: 52px;
  font-weight: 500;
  color: var(--color-white);
}

.about-header-subtitle {
  font-family: var(--font-cn);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-white-55);
  letter-spacing: var(--ls-subtitle);
}

/* ── Product image ── */
.about-product {
  position: absolute;
  top: 314px;
  left: 629px;
  width: 1280px;
  height: 714px;
  cursor: pointer;
}

.about-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
}

/* ── Bio section ── */
.about-bio {
  position: absolute;
  top: 388px;
  left: 260px;
  width: 774px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.about-name-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 290px;
}

.about-name {
  font-family: var(--font-cn);
  font-size: 64px;
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.2;
}

.about-job-title {
  font-family: var(--font-cn);
  font-size: var(--fs-nav);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.2;
}

.about-edu {
  font-family: var(--font-cn);
  font-size: var(--fs-nav);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.2;
}

.about-contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 352px;
}

.about-contact-item {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-family: var(--font-cn);
  font-size: var(--fs-nav);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.2;
  /* reset button */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
.about-contact-item:hover {
  color: var(--color-white);
}

/* 「已复制」提示：文字右侧淡入，1.6s 后隐去 */
.about-copied {
  margin-left: 12px;
  font-size: 13px;
  color: var(--color-accent);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.about-copied.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Bottom images ── */
.about-bottom-icon {
  position: absolute;
  top: 853px;
  left: 260px;
  width: 127px;
  height: 127px;
  cursor: pointer;
}

.about-bottom-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
}

/* 像素小手：切图原生朝左，指向左侧的鸡蛋(about-bottom-icon)。
   Figma 节点 265:4205 无旋转 → 直接铺满 103×72，不再旋转 */
.about-bottom-badge {
  position: absolute;
  top: 853px; /* 顶边与鸡蛋(about-bottom-icon top:853)对齐 */
  left: 408px;
  width: 103px;
  height: 72px;
  cursor: pointer;
}

.about-bottom-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-width: none;
}

/* ════════════════════ 动效 ════════════════════ */

/* ① 内部错峰进场（只含文字 + 大图，不含底部鸡蛋/手）──
   默认隐藏，滚入视口(.snap-section.is-visible)才播放；滚走摘除、滚回重播。 */
@keyframes about-rise     { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes about-rise-img { from { opacity: 0; scale: 1.04; }       to { opacity: 1; scale: 1; } }

.about-header,
.about-product,
.about-name-group,
.about-edu,
.about-contact { opacity: 0; }

.snap-section.is-visible .about-header     { animation: about-rise .7s ease both; animation-delay: .10s; }
.snap-section.is-visible .about-product    { animation: about-rise-img .7s ease both; animation-delay: .16s; }
.snap-section.is-visible .about-name-group { animation: about-rise .7s ease both; animation-delay: .22s; }
.snap-section.is-visible .about-edu        { animation: about-rise .7s ease both; animation-delay: .32s; }
.snap-section.is-visible .about-contact    { animation: about-rise .7s ease both; animation-delay: .42s; }

/* ② 鸡蛋 + 像素小手：常驻动画，不挂 .is-visible（随整屏 shell 淡入淡出显隐，切屏不突然消失） */

/* A) 鸡蛋：不倒翁式自然摆动，重心/支点在底部中心，只转不形变；常驻按较快速度持续摆 */
@keyframes egg-sway { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }
.about-bottom-icon img {
  transform-origin: 50% 100%;
  cursor: pointer;
  animation: egg-sway 1s ease-in-out infinite;
}

/* B) 像素小手：朝左侧鸡蛋方向连续轻指（仅水平往复，无上下/旋转） */
@keyframes hand-point { 0%, 100% { translate: 0 0; } 50% { translate: -6px 0; } }
.about-bottom-badge img {
  animation: hand-point 1.3s ease-in-out infinite;
}

/* ③ reduced-motion 降级 */
@media (prefers-reduced-motion: reduce) {
  .about-header, .about-product, .about-name-group, .about-edu, .about-contact { opacity: 1 !important; animation: none !important; }
  .about-bottom-icon img, .about-bottom-badge img { animation: none !important; }
}
.easter {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
}

/* Background decoration — same geometry as About screen */
.easter-bg-deco {
  position: absolute;
  bottom: -317px;
  left: -580px;
  width: 2925px;
  height: 1447px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.easter-bg-deco-inner {
  transform: rotate(-90deg);
  flex: none;
}

.easter-bg-deco-img {
  width: 1447px;
  height: 2925px;
  object-fit: cover;
  opacity: 0.2;
  display: block;
  max-width: none;
}

/* Section header — Figma node 265:5115: left:264 top:128 gap:48 */
.easter-header {
  position: absolute;
  top: 128px;
  left: 264px;
  display: flex;
  align-items: center;
  gap: var(--gap-section-header);
  white-space: nowrap;
}

/* 与 .section-number 统一：序号高度 = 标题+副标题文本块 118px */
.easter-header-num {
  height: 118px;
  width: auto;
  display: block;
  max-width: none;
  align-self: center;
}

.easter-header-titles {
  display: flex;
  flex-direction: column;
  gap: var(--gap-title-sub);
  line-height: var(--lh-normal);
}

.easter-header-title {
  font-family: var(--font-cn);
  font-size: var(--fs-title); /* 52px */
  font-weight: 500;
  color: var(--color-white);
}

.easter-header-subtitle {
  font-family: var(--font-cn);
  font-size: var(--fs-body); /* 24px */
  font-weight: 400;
  color: var(--color-white-55);
  letter-spacing: var(--ls-subtitle);
}

/*
 * MacBook container — reuses the original combined-frame bounding box
 * (Figma node 265:4051: left:340 top:215 w:1240 h:757).
 * perspective drives the lid-open 3D rotation of its children.
 */
.easter-macbook {
  position: absolute;
  left: 340px;
  top: 215px;
  width: 1240px;
  height: 757px;
  perspective: 2200px;
  z-index: 1;
}

/* Static keyboard deck — base webp is a wide thin strip, sits flush to bottom */
.easter-base {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1240px;
  height: auto;
  display: block;
  max-width: none;
  z-index: 1;
}

/*
 * Lid = screen + bezel, rotates around the bottom hinge.
 * Box (1049×709) centered over the screen; matches lid webp aspect (1.479).
 * Closed = rotateX(-90deg) (folded flat); opens to rotateX(0) when the screen
 * scrolls into view (.snap-section.is-visible). Re-fires on enter/leave like the rest of the site.
 */
.easter-lid {
  position: absolute;
  left: 95px;
  top: 0;
  width: 1049px;
  height: 709px;
  transform-origin: 50% 100%;
  transform: rotateX(-90deg);
  /* 合盖（划走）：无延迟、较快 */
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.7, 0.5);
  z-index: 2;
}
.snap-section.is-visible .easter-lid {
  transform: rotateX(0deg);
  /* 开盖：慢一些，并等整屏淡入先走 0.25s */
  transition: transform 1.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s;
}

.easter-lid-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  max-width: none;
  pointer-events: none;
  z-index: 2;
}

/*
 * MacBook screen content — Figma node 265:4055 (Screen)
 * Positioned relative to .easter-lid (lid abs-left 435 → screen rel-left 16; top 18).
 * z-1 within lid: sits behind the lid bezel; bezel has pointer-events:none so PDF links stay clickable.
 */
.easter-screen {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 1015px;
  height: 656px;
  overflow: hidden;
  /* 不做圆角：壁纸方角铺满整个屏幕框，可见圆角由上层 bezel 抠图决定，
     避免壁纸圆角与外壳缝隙处漏出底层深色背景 */
  border-radius: 0;
  z-index: 1;
}

.easter-screen-img {
  position: absolute;
  top: 50%;
  left: 50%;
  /* 放大居中、向四周多溢出一些塞进外壳下面，消除与外框之间的缝隙；
     overflow:hidden 在父层裁掉超出部分 */
  width: 106%;
  height: 106%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  display: block;
  max-width: none;
}

/*
 * PDF download links — screen-relative coords from Figma node 265:4106 / 265:4105
 * Resume:    left:684 top:59  w:120
 * Portfolio: left:834 top:59  w:120
 */
.easter-pdf {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 120px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* Hover lift — the only interactive target on the page */
.easter-pdf:hover {
  transform: translateY(-6px) scale(1.04);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.easter-pdf--resume {
  left: 684px;
  top: 59px;
}

.easter-pdf--portfolio {
  left: 834px;
  top: 59px;
}

.easter-pdf-icon {
  width: 120px;
  height: auto;
  display: block;
  max-width: none;
}

/* Figma: font 20px, color white, letter-spacing -0.8px, text-shadow, center */
.easter-pdf-label {
  font-family: var(--font-cn);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-white);
  text-align: center;
  letter-spacing: -0.8px;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  width: 100%;
}

/*
 * Composite decoration (ellipse + arrow + "点击下载到本地")
 * Figma container node 343:27106: left:1056 top:233.96 w:745 h:233.037
 */
.easter-arrow {
  position: absolute;
  left: 1056px;
  top: 234px;
  width: 745px;
  height: 233px;
  display: block;
  max-width: none;
  pointer-events: none;
  z-index: 3;
  /* 划走时随即淡出（无延迟） */
  opacity: 0;
  transition: opacity 0.5s ease;
}
/* 开盖完成后(≈0.25+1.5s)再淡入 */
.snap-section.is-visible .easter-arrow {
  opacity: 1;
  transition: opacity 0.6s ease 1.9s;
}

@media (prefers-reduced-motion: reduce) {
  .easter-lid {
    transform: rotateX(0deg);
    transition: none;
  }
  .easter-pdf {
    transition: none;
  }
  .easter-arrow {
    opacity: 1;
    transition: none;
  }
}
/* 半透明遮罩 + 模糊，内容隐约可见，不强行阻断 */
.orient-hint {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 10, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.orient-hint-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}

.orient-hint-icon {
  width: 56px;
  height: 56px;
  color: rgba(255, 255, 255, 0.85);
  transform-origin: center;
  animation: orient-rotate 2.6s ease-in-out infinite;
}

/* 竖→横轻轻摆动，提示旋转 */
@keyframes orient-rotate {
  0%, 35%   { transform: rotate(0deg); }
  60%, 100% { transform: rotate(-90deg); }
}

.orient-hint-text {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
}

.orient-hint-subtext {
  margin: -6px 0 0;
  max-width: 16em;
  font-family: var(--font-cn);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.orient-hint-dismiss {
  margin-top: 2px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 8px 18px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-cn);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.orient-hint-dismiss:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .orient-hint-icon { animation: none; }
}
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.snap-section {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

/* 满铺整个视口的深色大图（铺在缩放 Stage 之下，覆盖 letterbox 边） */
.snap-section--lvbg {
  background-image: url('/assets/bg-lvxiaowa-base-BPlOdBOY.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── 每屏进场淡入 + 上移（挂在 .shell，不干扰 Stage 的 scale） ── */
.snap-section .shell {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.snap-section.is-visible .shell {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .snap-section .shell {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
