/* 引入高级谷歌字体：Noto Serif SC (思源宋体，增加故事感与温润品质) 及 Outfit (现代高阶无衬线，适配英文与数字) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;700&family=Outfit:wght@400;600;700&display=swap');

:root {
  --ink: #24211e;
  --muted: #6f6860;
  --paper: #f7f1e8;
  --paper-strong: #fffaf2;
  --line: rgba(56, 45, 35, 0.14);
  --rose: #c97975;
  --moss: #78866b;
  --blue: #6f8fa3;
  --gold: #d8a95f;
  --shadow: 0 24px 70px rgba(49, 39, 31, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 16%, rgba(201, 121, 117, 0.22), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(111, 143, 163, 0.2), transparent 30%),
    linear-gradient(145deg, #efe2d3 0%, #f8f3ea 48%, #e8eee8 100%);
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.phone-stage {
  position: relative;
  width: min(430px, 100%);
  min-height: min(850px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.92), rgba(247, 241, 232, 0.88)),
    #f7f1e8;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.ambient {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.46;
  pointer-events: none;
  z-index: -1;
}

.ambient-a {
  top: -80px;
  left: -70px;
  background: #e6a59a;
}

.ambient-b {
  right: -90px;
  bottom: 120px;
  background: #9fb7a1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 8px;
  transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1), transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.eyebrow,
.step {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 23px;
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif', serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

h2 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.18;
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
}

/* 核心页面自适应伸缩布局 (解决按钮固底与滚动穿帮的 Bug) */
.screen {
  display: none;
  padding: 14px 22px 24px;
  animation: rise 420ms ease both;
  height: calc(min(850px, calc(100vh - 48px)) - 76px);
  flex-direction: column;
}

.screen.active {
  display: flex;
}

/* 首屏与显影屏不需要全高伸缩，自适应展示 */
.screen[data-screen="feed"],
.screen[data-screen="developing"] {
  display: none;
  height: auto;
}

.screen[data-screen="feed"].active,
.screen[data-screen="developing"].active {
  display: block;
}

/* 滚动区域定义 */
.scroll-container {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: 14px;
}

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

/* 固定在底部的操作底座栏 */
.bottom-action-bar {
  flex-shrink: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(247, 241, 232, 0.96) 20%, #f7f1e8 100%);
  padding-top: 8px;
  margin-top: auto;
  z-index: 5;
}

.bottom-action-bar .selection-tray {
  margin-top: 4px;
}

.bottom-action-bar .primary-button {
  margin-top: 10px;
}

.feed-card,
.result-card,
.mood-chip,
.identity-huge-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.72);
  box-shadow: 0 18px 44px rgba(48, 39, 32, 0.12);
  backdrop-filter: blur(18px);
}

.feed-card {
  position: relative;
  padding: 14px;
}

/* 一体化海报首页容器 */
.feed-card-full {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  box-shadow: 0 18px 44px rgba(48, 39, 32, 0.12);
}

.feed-card-full img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* 首页海报绝对定位悬浮按钮 */
.floating-btn {
  position: absolute;
  bottom: 8%;
  left: 8%;
  right: 8%;
  width: 84% !important;
  background: rgba(255, 250, 242, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #3b2c25 !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 32px rgba(125, 97, 82, 0.12), 0 0 0 0 rgba(255, 255, 255, 0.4);
  animation: button-pulse 2s infinite;
}

.floating-btn:hover {
  background: rgba(255, 250, 242, 0.45) !important;
  transform: translateY(-1px);
}

@keyframes button-pulse {
  0% {
    box-shadow: 0 8px 32px rgba(125, 97, 82, 0.12), 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 8px 32px rgba(125, 97, 82, 0.12), 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 8px 32px rgba(125, 97, 82, 0.12), 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.film-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.film-strip span {
  height: 7px;
  border-radius: 99px;
  background: rgba(36, 33, 30, 0.14);
}

.feed-visual,
.result-image,
.developing-photo {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #ded2c3;
}

.feed-visual {
  aspect-ratio: 4 / 3;
}

.feed-visual img,
.result-image img,
.developing-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.feed-visual img {
  filter: saturate(0.92) contrast(0.96) brightness(1.02);
}

.grain {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(36, 33, 30, 0.16) 100%),
    repeating-radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.caption-pill {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #fffaf2;
  background: rgba(36, 33, 30, 0.54);
  font-size: 12px;
}

.feed-copy {
  padding: 18px 6px 4px;
}

.quote {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif', serif;
  letter-spacing: 0.05em;
}

.subcopy,
.section-head p,
.result-tip span {
  color: var(--muted);
  line-height: 1.65;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  font-weight: 760;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  color: #fffaf2;
  background: linear-gradient(135deg, #2d2a25, #7d6152);
  box-shadow: 0 14px 34px rgba(71, 54, 45, 0.28);
}

.primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.primary-button:not(:disabled):hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.section-head {
  margin-bottom: 18px;
}

/* 页面顶端头部导航（返回与标记） */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(56, 45, 35, 0.08);
}

.back-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  transition: all 200ms ease;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(56, 45, 35, 0.08);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  transform: translateX(-2px);
}

.header-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* 开启今日疗愈透明定位按钮 */
.start-healing-btn {
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 6.8%;
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: #6d4729;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 238, 219, 0.68)),
    rgba(255, 250, 242, 0.78);
  box-shadow: 0 16px 34px rgba(111, 73, 44, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif', serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  z-index: 5;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.start-healing-btn:hover {
  color: #56361f;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 234, 212, 0.82)),
    rgba(255, 250, 242, 0.9);
  box-shadow: 0 18px 42px rgba(111, 73, 44, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.start-healing-btn:active {
  transform: scale(0.98);
}

/* 陪伴视角性别选择透明定位大按钮 */
.gender-overlay-btn {
  position: absolute;
  bottom: 10.5%;
  width: 42%;
  height: 21%;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gender-overlay-btn.female-btn {
  left: 6%;
}

.gender-overlay-btn.male-btn {
  right: 6%;
}

.gender-overlay-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.06);
}

.gender-overlay-btn.selected {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(0.97);
}

/* 身份分支列表 */
.identity-huge-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.identity-huge-card {
  position: relative;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.identity-huge-card .card-emoji {
  font-size: 32px;
  flex-shrink: 0;
  display: block;
  transition: transform 300ms ease;
}

.identity-huge-card .card-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.identity-huge-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  line-height: 1.3;
}

.identity-huge-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.identity-huge-card:hover {
  transform: translateY(-3px);
}

.identity-huge-card:hover .card-emoji {
  transform: scale(1.1) translateY(-2px);
}

.identity-huge-card:active {
  transform: scale(0.98) translateY(0);
}

/* 身份卡片分级晕染与选中特效 */
.identity-huge-list button:nth-child(1) {
  background: radial-gradient(circle at bottom right, rgba(111, 143, 163, 0.14), transparent 55%), rgba(255, 255, 255, 0.65);
}
.identity-huge-list button:nth-child(1)::after {
  content: "";
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(111, 143, 163, 0.12);
  filter: blur(6px);
  pointer-events: none;
}
.identity-huge-list button:nth-child(1):hover,
.identity-huge-list button:nth-child(1).selected {
  border-color: var(--blue);
  background: radial-gradient(circle at bottom right, rgba(111, 143, 163, 0.24), transparent 55%), rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 28px rgba(111, 143, 163, 0.12);
}

.identity-huge-list button:nth-child(2) {
  background: radial-gradient(circle at bottom right, rgba(216, 169, 95, 0.14), transparent 55%), rgba(255, 255, 255, 0.65);
}
.identity-huge-list button:nth-child(2)::after {
  content: "";
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(216, 169, 95, 0.12);
  filter: blur(6px);
  pointer-events: none;
}
.identity-huge-list button:nth-child(2):hover,
.identity-huge-list button:nth-child(2).selected {
  border-color: var(--gold);
  background: radial-gradient(circle at bottom right, rgba(216, 169, 95, 0.24), transparent 55%), rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 28px rgba(216, 169, 95, 0.12);
}

.identity-huge-list button:nth-child(3) {
  background: radial-gradient(circle at bottom right, rgba(120, 134, 107, 0.14), transparent 55%), rgba(255, 255, 255, 0.65);
}
.identity-huge-list button:nth-child(3)::after {
  content: "";
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(120, 134, 107, 0.12);
  filter: blur(6px);
  pointer-events: none;
}
.identity-huge-list button:nth-child(3):hover,
.identity-huge-list button:nth-child(3).selected {
  border-color: var(--moss);
  background: radial-gradient(circle at bottom right, rgba(120, 134, 107, 0.24), transparent 55%), rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 28px rgba(120, 134, 107, 0.12);
}

/* DIY 树洞心声样式 */
.diy-box {
  display: block;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: rgba(255, 250, 242, 0.52);
  box-shadow: 0 10px 24px rgba(48, 39, 32, 0.04);
  backdrop-filter: blur(10px);
}

.diy-box span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.diy-box textarea {
  width: 100%;
  border: 0;
  outline: 0;
  resize: none;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  line-height: 1.5;
  padding: 0;
}

.diy-box textarea::placeholder {
  color: rgba(111, 104, 96, 0.45);
}

/* 情绪多选卡片墙布局 */
.mood-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  padding: 2px 0 4px;
}

.mood-chip {
  position: relative;
  width: calc(var(--card-w, 50%) - 5px);
  min-height: var(--card-h, 74px);
  padding: 12px 13px;
  border: 1px solid var(--line);
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 242, 0.52)),
    var(--tone, rgba(255, 255, 255, 0.5));
  box-shadow: 0 12px 28px rgba(48, 39, 32, 0.08);
  text-align: left;
  transform: rotate(var(--tilt, 0deg)) translateY(var(--lift, 0));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mood-chip.selected {
  border-color: rgba(36, 33, 30, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 250, 242, 0.76), rgba(255, 255, 255, 0.42)),
    var(--tone-selected, rgba(201, 121, 117, 0.18));
  box-shadow: 0 18px 38px rgba(48, 39, 32, 0.15);
  transform: rotate(0deg) translateY(-3px);
}

.mood-chip:active {
  transform: rotate(0deg) translateY(1px) scale(0.98);
}

.mood-chip strong {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
  line-height: 1.25;
}

.mood-chip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.mood-chip::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(36, 33, 30, 0.16);
}

.mood-chip.selected::after {
  background: var(--ink);
}

.selection-tray {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 13px;
  border: 1px solid rgba(56, 45, 35, 0.1);
  border-radius: 18px;
  background: rgba(36, 33, 30, 0.06);
  color: var(--muted);
  font-size: 12px;
}

.selection-tray strong {
  max-width: 52%;
  color: var(--ink);
  font-size: 13px;
  text-align: right;
}

/* 正在显影屏幕样式 */
.developer-panel {
  display: grid;
  gap: 18px;
  padding-top: 42px;
}

.developing-photo {
  aspect-ratio: 2 / 3;
  background: #f2eadf;
}

.developing-photo img {
  filter: blur(12px) saturate(0.5) brightness(0.9);
  transition: filter 1.5s ease-in-out;
}

.developing-photo.developing img {
  filter: blur(2px) saturate(0.9) brightness(1);
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(255, 250, 242, 0.58), transparent);
  animation: scan 2.2s ease-in-out infinite;
}

.typing {
  min-height: 56px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

/* 结果卡片屏幕样式 */
.result-card {
  overflow: hidden;
  padding: 14px;
}

.result-card.share-ready {
  animation: card-flash 800ms ease both;
}

.result-image {
  border-radius: 20px;
  aspect-ratio: 2 / 3;
  background: #f2eadf;
}

.result-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.result-tip {
  text-align: center;
  padding: 14px 6px 4px;
}

.result-tip span {
  font-size: 12px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.button-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
}

/* 唤醒卡片前端生成弹窗样式 (方案 A - 高级毛玻璃悬浮效果) */
.share-modal {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 100;
  animation: fade-in 250ms ease both;
}

.share-modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(36, 33, 30, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 8%;
  bottom: 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  background: rgba(255, 250, 242, 0.88);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
  animation: scale-up 320ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  display: grid;
  place-items: center;
  z-index: 10;
}

.share-image-wrapper {
  width: 100%;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 12px;
  box-shadow: 0 10px 30px rgba(48, 39, 32, 0.15);
  background: #f2eadf;
}

.share-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 18px;
}

.share-instructions {
  text-align: center;
}

.share-instructions strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
}

.share-instructions span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scale-up {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scan {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(360%);
  }
}

@keyframes card-flash {
  0% {
    box-shadow: 0 18px 44px rgba(48, 39, 32, 0.12);
  }
  30% {
    transform: scale(0.98);
    box-shadow: 0 0 0 4px rgba(120, 134, 107, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 18px 44px rgba(48, 39, 32, 0.12);
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding: 0;
  }

  .phone-stage {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .quote {
    font-size: 22px;
  }

  .feed-visual {
    aspect-ratio: 1 / 1;
  }
}

/* ================= 全屏模式 & 身份四选一重构样式 ================= */

/* 模拟手机 Stage 框内的全屏海报模式 */

/* 处于前两页时，phone-stage 本身需在 PC 端指定固定高度，以供子元素 % 继承 */
.phone-stage.full-page-mode {
  height: min(850px, calc(100vh - 48px));
}

/* 仅将前两页的 screen 容器在 phone-stage 内部百分百撑满，并去掉 padding */
.phone-stage.full-page-mode .screen[data-screen="feed"],
.phone-stage.full-page-mode .screen[data-screen="gender"] {
  height: 100%;
  padding: 0;
  margin: 0;
}

@media (max-width: 520px) {
  .phone-stage.full-page-mode .screen[data-screen="feed"],
  .phone-stage.full-page-mode .screen[data-screen="gender"] {
    height: 100vh;
  }
}

.phone-stage.full-page-mode .feed-card-full {
  border: 0;
  border-radius: 0; /* 圆角由父级 phone-stage 的 overflow: hidden 自动裁剪 */
  height: 100%;     /* 高度完全充满 screen */
  width: 100%;
  box-shadow: none;
}

/* 身份页需要保持海报原始比例，避免 cover 裁切导致透明热区和画面错位 */
.phone-stage.full-page-mode .screen[data-screen="gender"] {
  align-items: center;
  justify-content: center;
  background: #fff8ec;
}

.phone-stage.full-page-mode .screen[data-screen="gender"] .feed-card-full {
  width: min(100%, calc(100vh * 941 / 1672));
  height: auto;
  max-height: 100%;
  aspect-ratio: 941 / 1672;
}

/* 左上角透明返回首页热区定位 */
.back-to-feed-btn {
  position: absolute;
  top: 3.5%;
  left: 6%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0);
  border: 2px solid transparent;
  cursor: pointer;
  z-index: 10;
  transition: all 250ms ease;
}

.back-to-feed-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.back-to-feed-btn:active {
  transform: scale(0.92);
}

/* 4选1绝对定位透明点击区域，重合底图上的四个选项 */
.identity-opt-btn {
  position: absolute;
  width: 41.9%;
  height: 16.1%;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.identity-opt-btn.student-opt {
  top: 60.1%;
  left: 6.2%;
}

.identity-opt-btn.career-opt {
  top: 60.1%;
  right: 6.5%;
}

.identity-opt-btn.male-opt {
  top: 77.25%;
  left: 6.2%;
}

.identity-opt-btn.female-opt {
  top: 77.25%;
  right: 6.5%;
}

.identity-opt-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.identity-opt-btn.selected {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(0.97);
}
