* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #050816;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #ffffff;
}

body:not(.home-body) {
  overflow: hidden;
}

/* =========================
   角色页
========================= */

.voice-page {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.28), transparent 32%),
    radial-gradient(circle at 86% 76%, rgba(16, 185, 129, 0.22), transparent 30%),
    linear-gradient(135deg, #070b18, #0f172a 52%, #111827);
}

.avatar-stage {
  position: relative;
  width: min(100vw, 980px);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-body {
  position: relative;
  display: inline-block;
  line-height: 0;
  transform-origin: 50% 42%;
  animation: avatarBreath 4.8s ease-in-out infinite;
  will-change: transform;
  z-index: 5;
  margin-bottom: 128px;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.avatar {
  display: block;
  width: auto;
  height: auto;
  max-width: 94vw;
  max-height: 76vh;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 32px 56px rgba(0, 0, 0, 0.34));
}

.avatar-body.mode-speaking {
  animation:
    avatarBreath 3.8s ease-in-out infinite,
    avatarSpeakMove 1.8s ease-in-out infinite;
}

.avatar-body.mode-thinking {
  animation:
    avatarBreath 4.8s ease-in-out infinite,
    avatarThink 2.4s ease-in-out infinite;
}

.avatar-body.mode-recording {
  animation:
    avatarBreath 3.8s ease-in-out infinite,
    avatarListen 1.8s ease-in-out infinite;
}

.avatar-body.emotion-happy {
  filter: saturate(1.08) brightness(1.03);
}

.avatar-body.emotion-sad {
  filter: saturate(0.92) brightness(0.97);
}

.avatar-body.emotion-angry {
  filter: saturate(1.08) contrast(1.04);
}

.avatar-body.emotion-surprise {
  filter: saturate(1.05) brightness(1.04);
}

.mouth {
  position: absolute;
  left: var(--mouth-left);
  top: var(--mouth-top);
  width: var(--mouth-width);
  height: var(--mouth-height);
  transform: translate(-50%, -50%) scale(1, 1) rotate(var(--mouth-rotate, 0deg));
  transform-origin: center;
  pointer-events: none;
  opacity: 0.92;
  z-index: 20;
  transition:
    transform 120ms ease-out,
    opacity 180ms ease-out;
  filter: drop-shadow(0 1px 1px rgba(70, 20, 15, 0.18));
}

.mouth-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.avatar-stage.boy {
  --mouth-left: 50.0%;
  --mouth-top: 21.0%;
  --mouth-width: 28px;
  --mouth-height: 10px;

  --left-eye-left: 44.6%;
  --right-eye-left: 55.2%;
  --eye-top: 17.5%;
  --eye-width: 22px;
  --eye-height: 18px;
}

.avatar-stage.girl {
  --mouth-left: 50.0%;
  --mouth-top: 25.2%;
  --mouth-width: 24px;
  --mouth-height: 10px;
  --mouth-rotate: 0deg;

  --left-eye-left: 44.4%;
  --right-eye-left: 56.0%;
  --eye-top: 20.9%;
  --eye-width: 25px;
  --eye-height: 25px;
}

.avatar-stage.fast {
  --mouth-left: 50.0%;
  --mouth-top: 24.0%;
  --mouth-width: 24px;
  --mouth-height: 18px;

  --left-eye-left: 43.3%;
  --right-eye-left: 56.2%;
  --eye-top: 19.8%;
  --eye-width: 30px;
  --eye-height: 25px;
}
/* 调试用：强制闭眼 */
.avatar-body.force-eye-closed .eye-lid {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scaleY(1) !important;
  animation: none !important;
}
.eye-lid {
  position: absolute;
  top: var(--eye-top);
  width: var(--eye-width);
  height: var(--eye-height);
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(244, 190, 155, 0.96),
    rgba(234, 174, 140, 0.96)
  );
  transform: translate(-50%, -50%) scaleY(0);
  transform-origin: center;
  opacity: 0;
  pointer-events: none;
  z-index: 18;
}

.left-eye-lid {
  left: var(--left-eye-left);
}

.right-eye-lid {
  left: var(--right-eye-left);
}

.avatar-body.blinking .eye-lid {
  animation: eyeBlink 90ms ease-in-out;
}

.main-button {
  position: absolute;
  left: clamp(18px, 5vw, 64px);
  top: 48%;
  transform: translateY(-50%);
  z-index: 30;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.70));
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 1px rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    filter 180ms ease;
}

.main-button:hover {
  transform: translateY(-50%) scale(1.045);
}

.main-button.stop {
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.96), rgba(185, 28, 28, 0.88));
  color: #ffffff;
}

.main-button.waiting,
.main-button:disabled {
  opacity: 0.42;
  filter: grayscale(0.7);
  cursor: not-allowed;
  transform: translateY(-50%) scale(0.96);
}

.text-overlay,
.status-overlay,
.login-badge {
  position: absolute;
  z-index: 25;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.42);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.status-overlay {
  left: clamp(14px, 3.2vw, 44px);
  bottom: 154px;
  max-width: min(42vw, 360px);
  padding: 10px 14px;
  border-radius: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.text-overlay {
  width: min(38vw, 360px);
  height: 224px;
  padding: 14px 16px;
  border-radius: 24px;
  overflow: hidden;
}

.user-overlay {
  left: clamp(14px, 3.2vw, 44px);
  bottom: 24px;
}

.ai-overlay {
  right: clamp(14px, 3.2vw, 44px);
  bottom: 24px;
}

.label {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.status-overlay .label {
  margin: 0;
}

#status {
  font-size: 15px;
  font-weight: 800;
}

.text-overlay p {
  margin: 0;
  height: 154px;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.72;
  font-size: clamp(14px, 1.45vw, 18px);
  font-weight: 650;
  white-space: pre-wrap;
  overflow: hidden;
  scroll-behavior: smooth;
}

.login-badge {
  right: clamp(14px, 3.8vw, 54px);
  top: clamp(16px, 4vh, 42px);
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.login-badge:hover {
  background: rgba(255, 255, 255, 0.18);
}

.user-menu {
  position: absolute;
  right: clamp(14px, 3.8vw, 54px);
  top: calc(clamp(16px, 4vh, 42px) + 48px);
  z-index: 40;
  display: none;
  min-width: 132px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
}

.user-menu.show {
  display: grid;
  gap: 8px;
}

.user-menu button,
.user-menu a {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  cursor: pointer;
}

.user-menu button:hover,
.user-menu a:hover {
  background: rgba(255, 255, 255, 0.20);
}

/* =========================
   首页
========================= */

.home-body {
  overflow: hidden;
  background: #050816;
}

.home-page {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  padding: clamp(18px, 3vw, 42px);
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.30), transparent 34%),
    radial-gradient(circle at 82% 70%, rgba(34, 197, 94, 0.22), transparent 32%),
    radial-gradient(circle at 50% 105%, rgba(168, 85, 247, 0.20), transparent 34%),
    linear-gradient(135deg, #050816, #0f172a 56%, #111827);
}

.home-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: clamp(16px, 3.5vh, 36px);
}

.home-kicker {
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.home-header h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.home-header p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(15px, 1.6vw, 21px);
}

.home-user-box {
  position: relative;
  z-index: 100;
  flex: 0 0 auto;
}

.home-user-btn {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 11px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.home-user-btn:hover {
  background: rgba(255, 255, 255, 0.20);
}

.home-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 999;
  display: none;
  min-width: 138px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
}

.home-user-menu.show {
  display: grid;
}

.home-user-menu button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.home-user-menu button:hover {
  background: rgba(239, 68, 68, 0.78);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 36px);
  width: 100%;
  max-width: 1180px;
  height: calc(100vh - 190px);
  min-height: 360px;
  margin: 0 auto;
}

.role-card {
  position: relative;
  height: 100%;
  min-height: 0;
  border-radius: clamp(24px, 3vw, 38px);
  overflow: hidden;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.role-card:hover {
  transform: translateY(-8px) scale(1.012);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 44px 120px rgba(0, 0, 0, 0.46);
}

.role-card img {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  max-width: 88%;
  max-height: calc(100% - 130px);
  object-fit: contain;
  filter: drop-shadow(0 30px 48px rgba(0, 0, 0, 0.36));
  transition: transform 320ms ease;
}

.role-card:hover img {
  transform: translateX(-50%) scale(1.035);
}

.role-glow {
  position: absolute;
  inset: 18%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(60px);
}

.role-info {
  position: absolute;
  left: clamp(14px, 2.2vw, 26px);
  right: clamp(14px, 2.2vw, 26px);
  bottom: clamp(12px, 2vh, 24px);
  z-index: 2;
  padding: clamp(13px, 2vw, 20px);
  border-radius: clamp(18px, 2.4vw, 24px);
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.role-info h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.role-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
  font-size: clamp(14px, 1.6vw, 18px);
}

/* 删除 hover 浮窗 */
.role-tip {
  display: none !important;
}

/* =========================
   动画
========================= */

@keyframes avatarBreath {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.015);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes avatarSpeakMove {
  0% {
    rotate: 0deg;
  }

  25% {
    rotate: -0.45deg;
  }

  50% {
    rotate: 0.2deg;
  }

  75% {
    rotate: 0.45deg;
  }

  100% {
    rotate: 0deg;
  }
}

@keyframes avatarThink {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  50% {
    transform: translateY(-3px) rotate(-0.7deg) scale(1.004);
  }

  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes avatarListen {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  50% {
    transform: translateY(-2px) rotate(0.7deg) scale(1.004);
  }

  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes eyeBlink {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleY(0);
  }

  36% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleY(1);
  }

  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleY(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleY(0);
  }
}

/* =========================
   首页竖屏仍左右显示
========================= */

@media (max-width: 900px) {
  .home-page {
    padding: 18px 14px;
  }

  .home-header {
    margin-bottom: 14px;
  }

  .home-kicker {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .home-header h1 {
    font-size: clamp(26px, 8vw, 42px);
  }

  .home-header p {
    margin-top: 8px;
    font-size: 15px;
  }

  .home-user-btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  .home-user-menu {
    right: 0;
    top: calc(100% + 8px);
  }

  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    height: calc(100vh - 148px);
    min-height: 0;
  }

  .role-card {
    border-radius: 24px;
  }

  .role-card img {
    bottom: 96px;
    max-width: 96%;
    max-height: calc(100% - 122px);
  }

  .role-info {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .role-info h2 {
    font-size: 22px;
  }

  .role-info p {
    font-size: 13px;
    line-height: 1.55;
  }

  .avatar-stage {
    width: 100vw;
  }

  .avatar-body {
    margin-bottom: 156px;
  }

  .avatar {
    max-width: 106vw;
    max-height: 66vh;
  }

  .main-button {
    width: 70px;
    height: 70px;
    font-size: 16px;
    left: 12px;
    top: 42%;
  }

  .status-overlay {
    left: 12px;
    right: auto;
    bottom: 154px;
    max-width: calc(50vw - 18px);
    padding: 9px 11px;
  }

  .text-overlay {
    width: calc(50vw - 18px);
    height: 110px;
    padding: 12px 13px;
    border-radius: 20px;
  }

  .user-overlay {
    left: 12px;
    bottom: 28px;
  }

  .ai-overlay {
    right: 12px;
    bottom: 28px;
  }

  .text-overlay p {
    height: 64px;
    font-size: 14px;
  }

  .label {
    font-size: 12px;
  }

  #status {
    font-size: 13px;
  }

  .avatar-stage.boy {
    --mouth-width: 33px;
    --mouth-height: 14px;
    --eye-width: 22px;
    --eye-height: 17px;
  }
  .avatar-stage.girl {
    --mouth-width: 28px;
    --mouth-height: 12px;
    --eye-width: 23px;
    --eye-height: 23px;
  }
  .avatar-stage.fast {
    --mouth-width: 24px;
    --mouth-height: 10px;
    --eye-width: 27px;
    --eye-height: 26px;
  }
}

@media (max-width: 520px) {
  .home-page {
    padding: 14px 10px;
  }

  .home-header {
    align-items: flex-start;
    gap: 8px;
  }

  .home-header h1 {
    font-size: 31px;
  }

  .home-header p {
    font-size: 14px;
  }

  .role-grid {
    gap: 8px;
    height: calc(100vh - 138px);
  }

  .role-card img {
    bottom: 90px;
    max-width: 112%;
    max-height: calc(100% - 112px);
  }

  .role-info {
    padding: 10px;
  }

  .role-info h2 {
    font-size: 19px;
    margin-bottom: 6px;
  }

  .role-info p {
    font-size: 12px;
    line-height: 1.48;
  }

  .avatar-body {
    margin-bottom: 178px;
  }

  .avatar {
    max-height: 60vh;
  }

  .main-button {
    top: 38%;
    width: 62px;
    height: 62px;
    font-size: 15px;
  }

  .status-overlay {
    bottom: 154px;
    max-width: calc(50vw - 16px);
  }

  .text-overlay {
    width: calc(50vw - 16px);
    height: 106px;
  }

  .text-overlay p {
    height: 61px;
    font-size: 13px;
  }
}
/* =========================================
   大尺寸竖屏专用适配
   1080x1920 / 1440x2560 等
========================================= */

@media (min-width: 900px) and (max-aspect-ratio: 9/16) {

  /* 人物整体放大 */

  .avatar-body {
    margin-bottom: 180px;
  }

  .avatar {
    max-width: 98vw;
    max-height: 82vh;
  }

  /* 嘴和眼 */

  .avatar-stage.boy,
  .avatar-stage.girl,
  .avatar-stage.fast {
    --eye-width: 68px;
    --eye-height: 46px;
  }

  .avatar-stage.boy {
    --mouth-width: 44px;
    --mouth-height: 30px;
  }

  .avatar-stage.girl {
    --mouth-width: 38px;
    --mouth-height: 28px;
  }

  .avatar-stage.fast {
    --mouth-width: 42px;
    --mouth-height: 30px;
  }

  /* 开始按钮 */

  .main-button {
    width: 100px;
    height: 100px;
    font-size: 22px;
    left: 28px;
  }

  /* 状态栏 */

.status-overlay {
  bottom: 580px;
  max-width: 440px;
  padding: 12px 16px;
}

  #status {
    font-size: 17px;
  }



/* 用户发言框 */

.user-overlay {
    height: 300px;
}

.user-overlay p {
    height: 235px;
}



/* AI回复框 */

.ai-overlay {
    height: 700px;
}

.ai-overlay p {
    height: 620px;
}

  /* 标题 */

  .label {
    font-size: 14px;
  }

  /* 登录按钮 */

  .login-badge {
    top: 24px;
    right: 24px;
    font-size: 14px;
    padding: 12px 16px;
  }

  .user-menu {
    right: 24px;
    top: 78px;
  }

}

/* =========================
   打断开关
========================= */

.interrupt-control {
  position: absolute;
  left: clamp(18px, 5vw, 64px);
  top: calc(48% + 92px);
  transform: translateY(-50%);
  z-index: 31;

  width: 176px;
  padding: 12px 13px 10px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.46);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(18px);
}

.interrupt-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}

.interrupt-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.interrupt-slider {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.50);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.interrupt-slider::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
  transition: transform 180ms ease;
}

.interrupt-switch input:checked + .interrupt-slider {
  background: rgba(34, 197, 94, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.20),
    0 0 18px rgba(34, 197, 94, 0.28);
}

.interrupt-switch input:checked + .interrupt-slider::after {
  transform: translateX(18px);
}

.interrupt-text {
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.interrupt-control p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.45;
}

/* 宽屏：开关固定在开始按钮正下方，留出足够距离 */
@media (min-width: 901px) {
  .interrupt-control {
    top: calc(48% + 104px);
  }
}

/* 平板/普通竖屏 */
@media (max-width: 900px) {
  .interrupt-control {
    left: 12px;
    top: calc(42% + 86px);
    width: 152px;
    padding: 9px 10px 8px;
    border-radius: 18px;
  }

  .interrupt-slider {
    width: 38px;
    height: 22px;
  }

  .interrupt-slider::after {
    width: 16px;
    height: 16px;
  }

  .interrupt-switch input:checked + .interrupt-slider::after {
    transform: translateX(16px);
  }

  .interrupt-text {
    font-size: 13px;
  }

  .interrupt-control p {
    font-size: 11px;
  }
}

/* 小屏手机 */
@media (max-width: 520px) {
  .interrupt-control {
    top: calc(38% + 78px);
    width: 142px;
  }
}

/* 大尺寸竖屏 */
@media (min-width: 900px) and (max-aspect-ratio: 9/16) {
  .interrupt-control {
    left: 28px;
    top: calc(48% + 116px);
    width: 190px;
  }
}


/* =========================
   提示词轮播：右侧悬浮
========================= */

.prompt-suggestions {
  position: absolute;
  right: clamp(14px, 3.2vw, 44px);
  top: 34%;
  transform: translateY(-50%);
  z-index: 24;

  width: min(30vw, 320px);
  padding: 14px 15px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(15, 23, 42, 0.38);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  pointer-events: none;
}

.prompt-title {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.prompt-list {
  display: grid;
  gap: 9px;
  transform-origin: center;
}

.prompt-chip {
  padding: 9px 12px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.prompt-list.flip-out {
  animation: promptFlipOut 260ms ease forwards;
}

.prompt-list.flip-in {
  animation: promptFlipIn 360ms ease forwards;
}

@keyframes promptFlipOut {
  from {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }

  to {
    opacity: 0;
    transform: rotateX(78deg) translateY(-8px);
  }
}

@keyframes promptFlipIn {
  from {
    opacity: 0;
    transform: rotateX(-78deg) translateY(8px);
  }

  to {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }
}

/* 竖屏：放右侧偏上，避开人物和底部文本框 */
@media (max-width: 900px) {
  .prompt-suggestions {
    right: 12px;
    top: 38%;
    width: 210px;
    padding: 11px 12px;
    border-radius: 20px;
  }

  .prompt-title {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .prompt-list {
    gap: 7px;
  }

  .prompt-chip {
    padding: 8px 9px;
    font-size: 11px;
    border-radius: 14px;
    line-height: 1.4;
  }
}

/* 小屏手机：再压缩一点 */
@media (max-width: 520px) {
  .prompt-suggestions {
    right: 10px;
    top: 37%;
    width: 176px;
  }

  .prompt-chip {
    font-size: 10.5px;
  }
}

/* 大尺寸竖屏 */
@media (min-width: 900px) and (max-aspect-ratio: 9/16) {
  .prompt-suggestions {
    right: 24px;
    top: 38%;
    width: 280px;
  }
}
/* 修复电脑端当前状态被左下文本框/控制区盖住 */
@media (min-width: 901px) and (min-aspect-ratio: 9/16) {
  .status-overlay {
    bottom: 276px;
  }
}
