:root {
  --paper: #F8F5EE;
  --card: #FDFBF7;
  --pine: #214E3E;
  --pine-dark: #183B2E;
  --pine-soft: rgba(33, 78, 62, 0.085);
  --gold: #B68D4C;
  --gold-light: #EFE5D1;
  --gold-ink: #8C744A;
  --navy: #142B52;
  --ink: #2C3531;
  --sage: #6E736D;
  --linen: #DCD4C4;
  --rose: #C93B4B;
  --rose-bg: #FFF1F2;
  --shadow-card: 0 8px 24px -8px rgba(33, 78, 62, 0.1), 0 1px 4px rgba(44, 53, 49, 0.05);
  --shadow-pine: 0 8px 20px -6px rgba(33, 78, 62, 0.34);
  --shadow-phone: 0 28px 68px -12px rgba(32, 39, 36, 0.24), 0 0 0 1px rgba(182, 141, 76, 0.24);
  --font-scale: 1;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* 全端流式根字号：电脑 16px，平板/折叠屏平滑过渡，手机按屏幕宽度 320px~430px 自动等比缩放并叠加适老字号 */
html {
  font-size: calc(16px * var(--font-scale));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 1024px) and (min-width: 768px) {
  html {
    font-size: calc(clamp(14.5px, 1.9vw, 16px) * var(--font-scale));
  }
}

@media (max-width: 767px) {
  html {
    font-size: calc(clamp(13px, 3.85vw, 16.5px) * var(--font-scale));
  }
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  display: flex;
  flex-direction: column;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

.serif {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia, serif;
}

.paper-texture {
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(182, 141, 76, 0.065) 1px, transparent 0),
    radial-gradient(rgba(33, 78, 62, 0.028) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

/* 纯净生产自适应主视口（顶栏固定、中间独立顺滑滚动、手机底栏稳稳贴底） */
#viewport-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* 顶部主导航栏（兼容刘海屏 / 灵动岛安全区） */
#main-header {
  background: rgba(253, 251, 247, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 212, 196, 0.85);
  padding: max(0.6rem, env(safe-area-inset-top)) max(1.75rem, env(safe-area-inset-right)) 0.6rem max(1.75rem, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 25;
  flex-shrink: 0;
  min-width: 0;
}

.brand-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0.22rem 0.48rem;
  margin: -0.22rem -0.48rem;
  border-radius: 0.78rem;
  cursor: pointer;
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
  transition: background-color 0.16s ease, transform 0.14s ease, opacity 0.16s ease;
}

button.brand-btn:hover {
  background: rgba(33, 78, 62, 0.085);
}

button.brand-btn:hover .brand-subname {
  color: var(--pine-dark);
}

button.brand-btn:active {
  transform: scale(0.98);
  background: rgba(33, 78, 62, 0.13);
}

/* 完整保留「忆启科技」四字的官方金色 Logo，禁止裁切与拉伸 */
.header-logo-full {
  height: 2.65rem;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-subname {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pine);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desk-nav-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.desk-nav {
  border: none;
  background: transparent;
  padding: 0.5rem 0.92rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sage);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.desk-nav:hover { color: var(--pine); background: rgba(33, 78, 62, 0.09); transform: translateY(-1px); }
.desk-nav:active { transform: scale(0.97); }
.desk-nav.active { background: var(--pine-soft); color: var(--pine); font-weight: 700; }
.desk-nav.active:hover { background: rgba(33, 78, 62, 0.14); }
.desk-nav.console-pill { background: var(--gold-light); color: var(--pine); font-weight: 700; }
.desk-nav.console-pill:hover { background: #E6D6B7; }

#header-right-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 15rem;
}

.proj-select {
  width: 100%;
  max-width: 12.5rem;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.42rem 1.75rem 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--linen);
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23214E3E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.62rem center / 0.75rem;
  color: var(--pine);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.proj-select:hover, .proj-select:focus {
  border-color: var(--pine);
  background-color: #FCF9F2;
  box-shadow: 0 3px 12px rgba(33, 78, 62, 0.14);
}

/* 翻开的三照片人生书图专属圆角框（完美裁剪原图黑色四角，仅留精致蓝金圆角书图） */
.book-art-frame {
  width: 13rem;
  height: 13rem;
  margin: 0 auto 0.95rem;
  border-radius: 24%;
  overflow: hidden;
  border: 2px solid rgba(182, 141, 76, 0.55);
  box-shadow: 0 16px 36px -6px rgba(16, 38, 76, 0.28), 0 4px 14px rgba(182, 141, 76, 0.2);
  background: #10264C;
  flex-shrink: 0;
}

.book-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.13);
  display: block;
}

.book-art-frame.sm {
  width: 5rem;
  height: 5rem;
  margin: 0;
  border-radius: 24%;
}

.book-art-frame.md {
  width: 7.5rem;
  height: 7.5rem;
  margin-bottom: 0.65rem;
}

.book-art-frame.sub-hero {
  width: 10rem;
  height: 10rem;
  margin-bottom: 0.75rem;
}

.book-art-frame.lg {
  width: 13.2rem;
  height: 13.2rem;
}

/* 主滚动区（仅中间内容区独立滚动，杜绝横向溢出） */
#main-scroll-area {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 1.35rem max(1.5rem, env(safe-area-inset-right)) 2rem max(1.5rem, env(safe-area-inset-left));
}

#app-content {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  min-width: 0;
}

/* 手机底部四栏导航（紧贴视口最底端，自动避让 iPhone/安卓/华为手势条） */
.mobile-only-nav {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(220, 212, 196, 0.9);
  padding: 0.35rem max(0.45rem, env(safe-area-inset-right)) max(0.45rem, env(safe-area-inset-bottom)) max(0.45rem, env(safe-area-inset-left));
  flex-shrink: 0;
  z-index: 30;
}

.mob-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.mob-nav {
  border: none;
  background: transparent;
  border-radius: 0.78rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  padding: 0.35rem 0.25rem;
  min-height: 2.9rem;
  color: var(--sage);
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, transform 0.14s ease;
}

.mob-nav:hover {
  color: var(--pine);
  background: rgba(33, 78, 62, 0.085);
}

.mob-nav:hover svg {
  transform: scale(1.08);
}

.mob-nav:active {
  transform: scale(0.96);
  background: rgba(33, 78, 62, 0.14);
}

.mob-nav.active { color: var(--pine); font-weight: 700; }
.mob-nav svg { width: 1.35rem; height: 1.35rem; transition: transform 0.16s ease; }

/* 登录/注册电脑端双栏优雅布局 */
.auth-split {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 1.75rem;
  align-items: center;
}

.auth-showcase {
  background: linear-gradient(160deg, #FDFBF7 0%, #F3ECE0 100%);
  border: 1px solid rgba(182, 141, 76, 0.35);
  border-radius: 1.65rem;
  padding: 1.9rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

/* 通用容器与卡片 */
.stack {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-width: 0;
}

.card {
  background: var(--card);
  border: 1px solid rgba(220, 212, 196, 0.86);
  border-radius: 1.4rem;
  padding: 1.45rem;
  box-shadow: var(--shadow-card);
  min-width: 0;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.card-hero {
  text-align: center;
  padding: 1.8rem 1.45rem;
}

.hero-title {
  margin: 0;
  font-size: 1.62rem;
  line-height: 1.48;
  font-weight: 700;
  color: var(--pine);
  letter-spacing: 0.06em;
}

.hero-sub {
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  color: var(--gold-ink);
  letter-spacing: 0.1em;
}

.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.85rem 0 1.25rem;
}

.gold-line {
  height: 1px;
  width: 3.4rem;
  background: linear-gradient(90deg, transparent, rgba(182, 141, 76, 0.7), transparent);
}

.gold-diamond {
  width: 0.38rem;
  height: 0.38rem;
  background: rgba(182, 141, 76, 0.85);
  transform: rotate(45deg);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.grid-2-fixed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.grid-3-fixed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
.home-lower-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1rem; }

.grid-2 > *, .grid-3 > *, .grid-2-fixed > *, .grid-3-fixed > *, .hero-action-grid > * {
  min-width: 0;
}

.hero-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  max-width: 500px;
  margin: 0 auto;
}

/* 按钮 */
.btn {
  border: none;
  border-radius: 0.92rem;
  padding: 0.78rem 1.05rem;
  min-height: 2.6rem;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  text-decoration: none;
  max-width: 100%;
  line-height: 1.25;
}

.btn:active:not(:disabled) { transform: scale(0.985); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-pine { background: var(--pine); color: #FCF9F2; box-shadow: var(--shadow-pine); }
.btn-pine:hover:not(:disabled) { background: var(--pine-dark); transform: translateY(-1px); }
.btn-paper { background: var(--paper); color: var(--pine); border: 1px solid rgba(33, 78, 62, 0.32); }
.btn-paper:hover:not(:disabled), .btn-paper:active:not(:disabled) { background: var(--pine); color: #FCF9F2; border-color: var(--pine); box-shadow: var(--shadow-pine); transform: translateY(-1px); }
.btn-white { background: #FFFFFF; color: var(--pine); border: 1px solid var(--linen); }
.btn-white:hover:not(:disabled), .btn-white:active:not(:disabled) { background: var(--pine); color: #FCF9F2; border-color: var(--pine); box-shadow: var(--shadow-pine); transform: translateY(-1px); }
.btn-gold { background: var(--gold-light); color: var(--pine); border: 1px solid rgba(182, 141, 76, 0.48); }
.btn-gold:hover:not(:disabled) { background: #E5D4B3; border-color: var(--gold); transform: translateY(-1px); }
.btn-rose { background: var(--rose); color: #FFFFFF; }
.btn-rose:hover:not(:disabled) { background: #B02F3E; transform: translateY(-1px); }
.btn-entry { width: 100%; padding: 1.05rem 1.2rem; border-radius: 1.1rem; justify-content: space-between; font-size: 1rem; letter-spacing: 0.03em; }
.btn-sm { padding: 0.52rem 0.82rem; min-height: 2.25rem; font-size: 0.84rem; border-radius: 0.7rem; }
.btn-full { width: 100%; }

.file-btn-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-link {
  background: transparent;
  border: none;
  padding: 0.3rem 0.6rem;
  margin-left: -0.6rem;
  border-radius: 0.6rem;
  color: var(--pine);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.25rem;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}
.back-link:hover {
  background: rgba(33, 78, 62, 0.09);
  color: var(--pine-dark);
  transform: translateX(-2px);
}
.back-link:active {
  transform: translateX(-2px) scale(0.97);
}

/* 表单与选项卡 */
.field { margin-bottom: 0.85rem; text-align: left; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 0.38rem; }

.input, select.input, textarea.input {
  width: 100%;
  padding: 0.68rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--linen);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  min-width: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.input:hover:not(:focus) { border-color: rgba(33, 78, 62, 0.55); }
.input:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(33, 78, 62, 0.1); }

.seg-tabs-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.25rem;
  border-radius: 0.85rem;
  background: var(--paper);
  border: 1px solid rgba(220, 212, 196, 0.75);
}

.seg-tabs-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.25rem;
  border-radius: 0.85rem;
  background: var(--paper);
  border: 1px solid rgba(220, 212, 196, 0.75);
  margin-bottom: 1rem;
}

.seg-tab {
  border: none;
  border-radius: 0.62rem;
  padding: 0.54rem 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--sage);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.seg-tab:not(.active):hover { background: rgba(33, 78, 62, 0.085); color: var(--pine); }
.seg-tab.active { background: var(--pine); color: #FFFFFF; }

.pill { display: inline-flex; align-items: center; padding: 0.2rem 0.62rem; border-radius: 999px; font-size: 0.76rem; font-weight: 600; white-space: nowrap; }
.pill-gold { background: var(--gold-light); color: var(--pine); }
.pill-pine { background: var(--pine-soft); color: var(--pine); }
.pill-rose { background: var(--rose-bg); color: var(--rose); }

.sub-card {
  background: var(--paper);
  border: 1px solid rgba(220, 212, 196, 0.85);
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
  min-width: 0;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}

label.sub-card:hover,
.sub-card[data-cust-tkt]:hover,
.sub-card[style*="cursor:pointer"]:hover {
  border-color: var(--pine);
  background: rgba(33, 78, 62, 0.075);
  box-shadow: 0 4px 14px rgba(33, 78, 62, 0.12);
  transform: translateY(-1px);
}

label:has(> input[type="checkbox"]),
label.flex-row[style*="cursor:pointer"] {
  transition: color 0.15s ease;
}
label:has(> input[type="checkbox"]):hover,
label.flex-row[style*="cursor:pointer"]:hover {
  color: var(--pine) !important;
}

a[href]:not(.btn) {
  transition: color 0.15s ease, opacity 0.15s ease;
}
a[href]:not(.btn):hover {
  color: var(--pine-dark);
  text-decoration: underline;
  opacity: 0.88;
}

.alert-gold {
  background: rgba(239, 229, 209, 0.65);
  border: 1px solid rgba(182, 141, 76, 0.65);
  border-radius: 1rem;
  padding: 0.82rem 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

/* 头像气泡与预设选择 */
.user-avatar-box {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  background: var(--pine);
  color: #FFFFFF;
  font-size: 1.45rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(182, 141, 76, 0.5);
}
.user-avatar-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

.emoji-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.emoji-opt {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.75rem;
  border: 2px solid var(--linen);
  background: #FFF;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.14s ease;
}
.emoji-opt:hover { border-color: var(--pine); background: var(--pine-soft); transform: translateY(-1px); }
.emoji-opt.active { border-color: var(--pine); background: var(--gold-light); }

/* 沉浸式实时语音 / 视频通话舞台（按视口宽高自动满屏适配，避免小屏裁切） */
.call-stage {
  border-radius: 1.35rem;
  background: linear-gradient(180deg, #1E3B31 0%, #132620 100%);
  color: #FFFFFF;
  padding: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  box-shadow: var(--shadow-pine);
}

.live-call-shell {
  border-radius: 1.5rem;
  background: radial-gradient(circle at 50% 20%, #244E3F 0%, #142A23 65%, #0D1C17 100%);
  color: #FBF8F1;
  padding: 1rem;
  box-shadow: 0 22px 48px rgba(17, 36, 29, 0.34);
  border: 1px solid rgba(182, 141, 76, 0.32);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.live-video-viewport {
  position: relative;
  width: 100%;
  min-height: clamp(240px, 46dvh, 430px);
  aspect-ratio: 16 / 10;
  border-radius: 1.2rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #2B5C4B 0%, #10231C 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.live-avatar-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-avatar-photo-stage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.live-avatar-photo-stage.speaking {
  transform: scale(1.035);
}

.live-pip-cam {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: clamp(72px, 22vw, 96px);
  height: clamp(96px, 29vw, 128px);
  border-radius: 0.95rem;
  overflow: hidden;
  background: rgba(8, 16, 13, 0.72);
  border: 2px solid rgba(239, 229, 209, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  z-index: 4;
}
.live-pip-cam video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.live-stage-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  background: rgba(15, 31, 25, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(182, 141, 76, 0.42);
  font-size: 0.76rem;
  font-weight: 600;
  color: #F6E9CE;
}

.live-rec-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #34D399;
  animation: pulseRing 1.4s ease-in-out infinite;
}
.live-rec-dot.speaking { background: #FBBF24; }

.live-caption-overlay {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 4;
  background: rgba(12, 24, 20, 0.76);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.95rem;
  padding: 0.62rem 0.85rem;
  text-align: left;
}
.live-caption-ai {
  font-size: 0.88rem;
  line-height: 1.52;
  color: #FFFDF8;
}
.live-caption-user {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #F3D999;
}

/* 小忆拟真三帧实时口型画布（60fps 连续浮点声学包络驱动，零 CSS 延迟、零重影漂移） */
.xiaoyi-lipsync-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1B342B;
}
.xiaoyi-lipsync-stage.circle {
  width: 92%;
  height: 92%;
  border-radius: 999px;
  border: 3px solid rgba(231, 201, 139, 0.72);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}
.xiaoyi-lipsync-inner {
  position: relative;
  width: 100%;
  height: 100%;
  animation: subtleBreath 5.2s ease-in-out infinite;
  will-change: transform;
}
.xiaoyi-lipsync-stage .xy-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  pointer-events: none;
  will-change: opacity;
}
@keyframes subtleBreath {
  0%, 100% { transform: scale(1.00) translateY(0px); }
  50% { transform: scale(1.015) translateY(-1.2px); }
}

/* 13 柱实时动态声纹波动（说话时暖金律动，聆听时松绿律动） */
.voiceprint-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 2.2rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: rgba(12, 24, 20, 0.56);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(231, 201, 139, 0.28);
}
.voiceprint-bar {
  width: 3.5px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #F6E2B3 0%, #B68D4C 100%);
  transition: height 45ms linear;
}
.voiceprint-wrap.listening .voiceprint-bar {
  background: linear-gradient(180deg, #6EE7B7 0%, #219E73 100%);
}
.video-voiceprint-float {
  position: absolute;
  left: 50%;
  bottom: 5.4rem;
  transform: translateX(-50%);
  z-index: 4;
}

/* 实时声波柱动画 */
.wave-bars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 26px;
}
.wave-bar {
  width: 4px;
  border-radius: 999px;
  background: #E7C98B;
  height: 6px;
  transition: height 0.08s ease;
}
.wave-bars.speaking .wave-bar {
  background: #34D399;
  animation: waveBounce 0.7s ease-in-out infinite;
}
.wave-bars.speaking .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bars.speaking .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bars.speaking .wave-bar:nth-child(4) { animation-delay: 0.15s; }
.wave-bars.speaking .wave-bar:nth-child(5) { animation-delay: 0.05s; }
@keyframes waveBounce {
  0%, 100% { height: 7px; }
  50% { height: 24px; }
}

.call-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 0.45rem 0.15rem 0.2rem;
}
.call-action-btn {
  border: none;
  background: transparent;
  padding: 0.15rem 0.1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.42rem;
  color: #FFFFFF;
  font-family: inherit;
  transition: transform 0.14s ease;
}
.call-action-btn:hover { transform: translateY(-1px); }
.call-action-btn:active { transform: scale(0.96); }
.call-icon-circle {
  width: clamp(3rem, 13vw, 3.5rem);
  height: clamp(3rem, 13vw, 3.5rem);
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.call-icon-circle svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
}
.call-action-btn:hover .call-icon-circle {
  background: rgba(255, 255, 255, 0.24);
}
.call-action-btn.active .call-icon-circle {
  background: #E7C98B;
  color: #16241E;
  border-color: #FFF3D1;
  box-shadow: 0 0 0 3px rgba(231, 201, 139, 0.24);
}
.call-action-btn.muted .call-icon-circle {
  background: #F59E0B;
  color: #16241E;
  border-color: #FDE68A;
}
.call-action-btn.hangup .call-icon-circle {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #FCA5A5;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.42);
}
.call-action-btn.hangup:hover .call-icon-circle {
  background: #B91C1C;
}
.call-btn-label {
  font-size: clamp(0.72rem, 3.2vw, 0.82rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: rgba(255, 253, 248, 0.96);
  white-space: nowrap;
}
.call-action-btn.active .call-btn-label { color: #F5DFAA; }
.call-action-btn.muted .call-btn-label { color: #FDE68A; }
.call-action-btn.hangup .call-btn-label { color: #FECACA; }

.director-gap-banner {
  background: linear-gradient(180deg, #FFFDF5 0%, #FDF6E3 100%);
  border: 1.5px solid #D9B464;
  border-radius: 1.15rem;
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 4px 14px rgba(182, 141, 76, 0.12);
}
.director-gap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.director-gap-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #7C4A03;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.director-gap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.director-gap-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: #92400E;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(217, 180, 100, 0.65);
  border-radius: 999px;
  padding: 0.16rem 0.58rem;
}

.voice-orb-stage {
  min-height: clamp(220px, 42dvh, 330px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.9rem 0.65rem 0.5rem;
  text-align: center;
  cursor: pointer;
}
.voice-orb-halo {
  position: relative;
  width: clamp(144px, min(44vw, 25dvh), 216px);
  height: clamp(144px, min(44vw, 25dvh), 216px);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(231, 201, 139, 0.26) 0%, rgba(52, 211, 153, 0.08) 55%, transparent 72%);
  transition: transform 0.12s ease;
  flex-shrink: 0;
}
.voice-orb-halo.speaking {
  box-shadow: 0 0 42px rgba(231, 201, 139, 0.42);
}
.voice-orb-halo.listening {
  box-shadow: 0 0 36px rgba(52, 211, 153, 0.3);
}
.minimal-live-line {
  min-height: 2.8rem;
  max-width: 520px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.56;
  color: #FFFDF8;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.minimal-user-line {
  min-height: 1.35rem;
  font-size: 0.82rem;
  color: #F3D999;
}

.dh-hero-card {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.dh-avatar-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0 0.3rem;
}

.mode-choice-card {
  border: 1.5px solid rgba(33, 78, 62, 0.24);
  border-radius: 1.1rem;
  padding: 0.95rem 0.65rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F3EA 100%);
  text-align: center;
  cursor: pointer;
  transition: all 0.16s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.mode-choice-card:hover, .mode-choice-card:active {
  background: linear-gradient(180deg, #255645 0%, #1B4134 100%);
  color: #FCF9F2;
  border-color: var(--pine);
  transform: translateY(-1px);
  box-shadow: var(--shadow-pine);
}
.mode-choice-card:hover .mode-title, .mode-choice-card:active .mode-title {
  color: #FCF9F2 !important;
}
.mode-choice-card.primary {
  background: linear-gradient(180deg, #255645 0%, #1B4134 100%);
  color: #FCF9F2;
  border-color: var(--pine);
  box-shadow: var(--shadow-pine);
}
.mode-choice-card .mode-icon {
  font-size: 1.55rem;
  line-height: 1;
}
.mode-choice-card .mode-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@keyframes pulseRing { 0%, 100% { transform: scale(1); opacity: 0.94; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes speakingGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(182, 141, 76, 0.68); transform: scale(1); } 50% { box-shadow: 0 0 0 12px rgba(182, 141, 76, 0); transform: scale(1.03); } }

.avatar-ring { position: relative; border-radius: 999px; padding: 4px; background: linear-gradient(45deg, var(--gold), #F3D999, var(--pine)); margin: 0 auto; flex-shrink: 0; }
.avatar-ring.breathing { animation: pulseRing 3s ease-in-out infinite; }
.avatar-ring.speaking { animation: speakingGlow 1.1s ease-in-out infinite; }
.avatar-ring img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; display: block; background: var(--pine); }
.avatar-photo-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
.live-avatar-photo-wrap { position: relative; width: min(520px, 72vw); max-height: 62vh; margin: auto; overflow: hidden; border-radius: 22px; }
.live-avatar-photo-wrap .live-avatar-photo-stage { display: block; width: 100%; max-height: 62vh; object-fit: cover; }
.custom-avatar-mouth { position: absolute; left: 50%; bottom: 25%; width: 14%; height: 3.5%; min-width: 12px; min-height: 5px; border-radius: 50%; background: rgba(120, 35, 35, 0.78); transform: translateX(-50%) scaleY(.15); transform-origin: center; transition: transform 60ms linear; pointer-events: none; opacity: .9; }
.avatar-dot { position: absolute; bottom: 2px; right: 2px; width: 0.85rem; height: 0.85rem; border-radius: 999px; border: 2px solid #162C24; background: #34D399; }
.avatar-ring.speaking .avatar-dot { background: #FBBF24; }

.self-cam-box { width: 84px; height: 104px; border-radius: 16px; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.22); overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; color: rgba(255, 255, 255, 0.65); text-align: center; }
.self-cam-box video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }

/* 聊天框 */
.chat-stream { background: var(--paper); border: 1px solid var(--linen); border-radius: 1.1rem; padding: 0.85rem; display: flex; flex-direction: column; gap: 0.6rem; max-height: 300px; overflow-y: auto; }
.msg-row { display: flex; }
.msg-row.user { justify-content: flex-end; }
.msg-bubble { max-width: 85%; padding: 0.6rem 0.85rem; border-radius: 1rem; font-size: 0.88rem; line-height: 1.58; }
.msg-row.ai .msg-bubble { background: #FFFFFF; border: 1px solid var(--linen); color: var(--ink); border-bottom-left-radius: 4px; }
.msg-row.user .msg-bubble { background: var(--pine); color: #FFFFFF; border-bottom-right-radius: 4px; }

/* 老照片直拖对比线舞台（左半拉过区域显示修复后，右半未拉过区域保留原图，1:1 像素严丝合缝对齐） */
.compare-stage {
  position: relative;
  width: 100%;
  height: clamp(230px, 42dvh, 360px);
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--linen);
  background: #1B221F;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: ew-resize;
}
.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.compare-repaired {
  clip-path: inset(0 calc(100% - var(--split, 52%)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--split, 52%)) 0 0);
}
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 52%);
  transform: translateX(-50%);
  width: 2.5px;
  background: #FFFDF8;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 5;
}
.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(33, 78, 62, 0.94);
  border: 2px solid #F6E2B3;
  color: #FFFDF8;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.42);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.compare-stage:hover .compare-handle {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--pine-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(246, 226, 179, 0.28);
}
.compare-badge {
  position: absolute;
  top: 0.65rem;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  background: rgba(24, 32, 29, 0.78);
  backdrop-filter: blur(4px);
  color: #FFFDF8;
  font-size: 0.74rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 4;
}
.compare-badge-left { left: 0.65rem; background: rgba(33, 78, 62, 0.88); }
.compare-badge-right { right: 0.65rem; }
.compare-hint {
  position: absolute;
  left: 50%;
  bottom: 0.65rem;
  transform: translateX(-50%);
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  background: rgba(24, 32, 29, 0.7);
  color: rgba(255, 253, 248, 0.9);
  font-size: 0.72rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.2s ease;
}
.compare-stage.dragging .compare-hint { opacity: 0.25; }

.progress-track { width: 100%; height: 0.62rem; border-radius: 999px; background: rgba(220, 212, 196, 0.7); overflow: hidden; }
.progress-fill { height: 100%; background: var(--pine); border-radius: 999px; transition: width 0.3s ease; }

/* 模态弹窗与 Toast */
#modal-root { position: fixed; inset: 0; z-index: 60; background: rgba(44, 53, 49, 0.5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 0.9rem; }
#modal-card { background: var(--card); border: 1px solid var(--linen); border-radius: 1.45rem; width: 100%; max-width: 560px; max-height: 86dvh; overflow-y: auto; padding: 1.3rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); }

#toast { position: fixed; left: 50%; bottom: calc(4.8rem + env(safe-area-inset-bottom)); transform: translate(-50%, 14px); opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 70; max-width: 92vw; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-inner { padding: 0.6rem 1.05rem; border-radius: 999px; background: rgba(29, 36, 33, 0.96); color: #FBF8F1; font-size: 0.82rem; font-weight: 600; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22); display: flex; align-items: center; gap: 0.5rem; }
.toast-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--gold); flex-shrink: 0; }
.toast-inner.error { background: var(--rose); }

.site-footer { text-align: center; font-size: 0.75rem; color: var(--sage); padding: 0.8rem 0.75rem 1.2rem; }
.site-footer:empty { display: none; padding: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; min-width: 0; }
.flex-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; min-width: 0; }
.hidden { display: none !important; }

/* ===================== 手机全机型自动适配（安卓 / 苹果 / 华为 320px ~ 767px） ===================== */
@media (max-width: 767px) {
  .desktop-only { display: none !important; }
  .mobile-only-nav { display: block !important; }

  #main-scroll-area {
    scrollbar-width: none;
    padding: clamp(0.65rem, 2.8vw, 0.95rem) max(clamp(0.65rem, 3vw, 0.95rem), env(safe-area-inset-right)) clamp(0.9rem, 3.5vw, 1.25rem) max(clamp(0.65rem, 3vw, 0.95rem), env(safe-area-inset-left));
  }
  #main-scroll-area::-webkit-scrollbar { display: none; }

  #main-header {
    padding: max(0.5rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) 0.5rem max(0.75rem, env(safe-area-inset-left));
    gap: 0.5rem;
  }
  .brand-btn { gap: 0.38rem; }
  .header-logo-full { height: clamp(30px, 8.6vw, 38px); }
  .brand-subname { font-size: clamp(13.5px, 4vw, 16.5px); letter-spacing: 0.02em; }
  #header-right-slot { max-width: 42vw; }
  .proj-select {
    max-width: 40vw;
    padding: 0.34rem 1.5rem 0.34rem 0.62rem;
    font-size: 0.78rem;
    background-position: right 0.5rem center;
  }

  /* 防止 iOS / 微信浏览器点击输入框时自动放大页面 */
  .input, select.input, textarea.input {
    font-size: max(16px, 0.95rem);
    padding: 0.65rem 0.8rem;
  }

  .auth-split { grid-template-columns: 1fr !important; gap: 0.75rem !important; }
  .auth-showcase { padding: 1rem 0.85rem !important; border-radius: 1.25rem; }
  .grid-2, .grid-3, .home-lower-grid { grid-template-columns: 1fr !important; gap: 0.65rem !important; }
  .hero-action-grid { gap: 0.45rem !important; }
  .hero-action-grid .btn {
    padding: 0.72rem 0.25rem !important;
    font-size: clamp(12.5px, 3.6vw, 15px) !important;
    white-space: nowrap;
  }

  .book-art-frame { width: clamp(210px, 62vw, 268px); height: clamp(210px, 62vw, 268px); margin-bottom: 0.95rem; }
  .book-art-frame.sub-hero { width: clamp(152px, 44vw, 198px); height: clamp(152px, 44vw, 198px); margin-bottom: 0.7rem; }
  .book-art-frame.md { width: clamp(96px, 28vw, 124px); height: clamp(96px, 28vw, 124px); }
  .book-art-frame.lg { width: clamp(160px, 48vw, 204px); height: clamp(160px, 48vw, 204px); }

  .hero-title { font-size: clamp(18.5px, 5.4vw, 23px); }
  .card { padding: clamp(0.85rem, 3.8vw, 1.15rem); border-radius: 1.2rem; }
  .card-hero { padding: clamp(1.05rem, 4.5vw, 1.4rem) clamp(0.85rem, 3.8vw, 1.15rem); }
  .sub-card { padding: 0.72rem 0.82rem; border-radius: 0.9rem; }
  .stack { gap: 0.72rem; }

  .live-call-shell { padding: 0.8rem; gap: 0.65rem; border-radius: 1.25rem; }
  .live-video-viewport {
    min-height: clamp(230px, 47dvh, 410px);
    aspect-ratio: 3 / 4;
  }
  .voice-orb-stage {
    min-height: clamp(205px, 42dvh, 330px);
    gap: 0.72rem;
    padding: 0.6rem 0.4rem 0.35rem;
  }
  #modal-card {
    padding: clamp(0.9rem, 4vw, 1.25rem);
    border-radius: 1.25rem;
    max-height: 85dvh;
  }
}

/* 紧凑短屏手机（如 iPhone SE 667px、华为/安卓开启系统大字或微信内嵌双工具栏）自动收紧纵深，一屏完整呈现 */
@media (max-width: 767px) and (max-height: 700px) {
  .book-art-frame {
    width: clamp(150px, 44vw, 186px);
    height: clamp(150px, 44vw, 186px);
    margin-bottom: 0.55rem;
  }
  .book-art-frame.sub-hero {
    width: clamp(114px, 33vw, 142px);
    height: clamp(114px, 33vw, 142px);
    margin-bottom: 0.5rem;
  }
  .book-art-frame.md, .book-art-frame.lg {
    width: clamp(82px, 24vw, 108px);
    height: clamp(82px, 24vw, 108px);
    margin-bottom: 0.45rem;
  }
  .gold-divider { margin: 0.5rem 0 0.75rem; }
  .card-hero { padding: 0.95rem 0.85rem; }
  .voice-orb-stage { min-height: 180px; gap: 0.55rem; padding: 0.4rem 0.35rem 0.25rem; }
  .voice-orb-halo { width: clamp(124px, 34vw, 158px); height: clamp(124px, 34vw, 158px); }
  .live-video-viewport { min-height: clamp(200px, 42dvh, 320px); }
  .call-circle-btn { width: 3rem; height: 3rem; font-size: 1.2rem; }
  .call-circle-btn.hangup { width: 3.35rem; height: 3.35rem; }
}

/* 超窄小屏手机（<= 359px，如老款小屏安卓机）防拥挤兜底 */
@media (max-width: 359px) {
  #main-header { padding-left: 0.55rem; padding-right: 0.55rem; gap: 0.35rem; }
  .header-logo-full { height: 28px; }
  .brand-subname { font-size: 13px; }
  #header-right-slot { max-width: 38vw; }
  .proj-select { max-width: 38vw; font-size: 11.5px; padding: 0.28rem 1.35rem 0.28rem 0.5rem; }
  .grid-2-fixed { gap: 0.45rem; }
  .grid-3-fixed { gap: 0.35rem; }
  .btn-sm { padding: 0.45rem 0.5rem; font-size: 0.78rem; }
  .btn-entry { padding: 0.85rem 0.9rem; font-size: 0.92rem; }
}

/* 微信小程序 <web-view> 套壳模式：右上角避让微信官方胶囊 + 底部安全区 */
body.is-miniprogram #main-header {
  padding-right: max(96px, calc(96px + env(safe-area-inset-right)));
}
body.is-miniprogram .mobile-only-nav {
  padding-bottom: max(0.55rem, env(safe-area-inset-bottom));
}

/* 极简进度页：单步行动卡与翻书预览样式 */
.workflow-action-box {
  background: #FFFDF8;
  border: 1.5px solid rgba(201, 59, 75, 0.35);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 6px 20px -8px rgba(201, 59, 75, 0.14);
}
.workflow-action-box.done-box {
  border-color: rgba(33, 78, 62, 0.32);
  background: #F7FBF9;
  box-shadow: 0 6px 20px -8px rgba(33, 78, 62, 0.12);
}
.flipbook-sheet {
  background: linear-gradient(180deg, #FFFDF8 0%, #FAF5EA 100%);
  border: 1.5px solid #D9CCB3;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 12px 28px -10px rgba(33, 45, 39, 0.18), inset 6px 0 14px -8px rgba(140, 116, 74, 0.25);
  min-height: 310px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.paper-flip-stage {
  background: #EDE5D4;
  border: 1px solid #D4C7AC;
  border-radius: 14px;
  padding: 10px;
  box-shadow: inset 0 2px 8px rgba(45, 38, 26, 0.12);
}
.paper-flip-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 280 / 210;
  background: #FAF6EE;
  border: 1px solid #CFC1A5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 28px -10px rgba(25, 33, 29, 0.34), -4px 0 12px -4px rgba(110, 90, 56, 0.22);
  cursor: zoom-in;
}
.paper-flip-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.paper-page-pills {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.paper-page-pill {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--linen);
  background: var(--paper);
  color: var(--sage);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.paper-page-pill.active {
  background: var(--pine);
  border-color: var(--pine);
  color: #FFFDF8;
}
.retention-30d-banner {
  background: #FFF8EB;
  border: 1px solid rgba(182, 141, 76, 0.5);
  color: #7A5418;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.55;
}
