/* ===== moments.css — 仿朋友圈 UI ===== */

/* --- 时间线 --- */
.moments-timeline {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--color-bg);
  scroll-behavior: smooth;
}
.moments-timeline::-webkit-scrollbar { width: 2px; }
.moments-timeline::-webkit-scrollbar-thumb { background: var(--color-divider); }

/* --- 动态卡片 --- */
.moment-card {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  gap: 10px;
  animation: card-in var(--duration-mid) var(--ease-soft) both;
}
.moment-card.is-event {
  background: var(--color-event-bg);
}
.moment-card.is-current {
  position: relative;
}
.moment-card.is-current::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
}
.moment-card.is-community {
  background: linear-gradient(180deg, rgba(7, 193, 96, 0.04) 0%, transparent 50%);
}
.moment-card.is-community .moment-avatar {
  background: linear-gradient(135deg, #07C160 0%, #38D77F 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.moment-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--color-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  border: 1px solid var(--color-divider);
  animation: breath 4s var(--ease-soft) infinite;
}

.moment-body {
  flex: 1;
  min-width: 0;
}

.moment-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.moment-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}
.moment-relation {
  font-size: 11px;
  color: var(--color-text-mute);
  background: var(--color-soft);
  padding: 1px 6px;
  border-radius: 8px;
}
.moment-time {
  font-size: 11px;
  color: var(--color-text-mute);
  margin-left: auto;
  font-family: var(--font-num);
}

.moment-content {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text);
  margin: 6px 0;
  word-break: break-word;
}
.moment-content.is-event {
  font-weight: 500;
}

/* --- 评论区（与正文明显区分）--- */
.moment-comments {
  background: var(--color-card);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 8px;
  font-size: 12.5px;          /* 比正文 14px 小 */
  line-height: 1.7;
}
.moment-comment-row {
  display: block;
  color: var(--color-text-sub);   /* 默认灰 */
  word-break: break-word;
}
.moment-comment-row .comment-name {
  color: var(--color-accent);
  font-weight: 500;
  margin-right: 2px;
}
.moment-comment-row.is-mine {
  color: var(--color-text);
}
.moment-comment-row.is-mine .comment-name {
  color: var(--color-primary);
}
.moment-comment-row.is-play-dead {
  color: var(--color-text-mute);
  font-style: italic;
}

/* --- 配图（emoji 九宫格模拟） --- */
.moment-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 8px 0;
  max-width: 220px;
}
.moment-image {
  aspect-ratio: 1;
  background: var(--color-card);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 1px solid var(--color-divider);
}

/* --- 底部操作 --- */
.moment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-sub);
}
.moment-action {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background var(--duration-fast);
  cursor: pointer;
}
.moment-action:hover {
  background: var(--color-soft);
}
.moment-action-icon {
  font-size: 14px;
  line-height: 1;
}

/* --- 其他评论列表（仅在事件卡显示） --- */
.moment-other-comments {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--color-soft);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text-sub);
}
.moment-other-comments .other-name {
  color: var(--color-text);
  font-weight: 500;
  margin-right: 4px;
}

/* --- 空状态 --- */
.empty-state {
  padding: 80px 20px;
  text-align: center;
}
.empty-emoji {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.empty-text {
  color: var(--color-text-mute);
  font-size: 13px;
}

/* --- 评论弹层 --- */
.comment-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade-in var(--duration-fast) var(--ease-soft);
}
.comment-modal-mask {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}
.comment-modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--color-bg);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-modal);
  padding: 16px;
  animation: slide-up var(--duration-mid) var(--ease-spring);
  margin: 0 auto;
  /* 适配手机外框 */
  max-width: min(480px, var(--phone-w));
}
.comment-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.comment-target {
  font-size: 14px;
  font-weight: 600;
}
.comment-close {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--color-card);
  color: var(--color-text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.comment-input-wrap {
  background: var(--color-soft);
  border-radius: 10px;
  padding: 12px;
}
.comment-input {
  width: 100%;
  min-height: 60px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  background: transparent;
}
.comment-input::placeholder {
  color: var(--color-text-mute);
}
.comment-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-divider);
}
.meter-label {
  font-size: 11px;
  color: var(--color-text-mute);
}
.meter-track {
  flex: 1;
  height: 4px;
  background: var(--color-divider);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.meter-fill {
  height: 100%;
  width: 0%;
  background: var(--color-account-green);
  border-radius: 2px;
  transition: width var(--duration-fast) var(--ease-soft), background-color var(--duration-fast);
}
.meter-fill.is-warn { background: var(--color-account-yellow); }
.meter-fill.is-danger { background: var(--color-account-red); }
.meter-fill.is-pending {
  width: 100% !important;
  background: linear-gradient(90deg,
    transparent 0%, rgba(0,0,0,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: meter-shimmer 1.2s linear infinite;
}
.meter-track.is-pending { background: rgba(0,0,0,0.04); }
.meter-score.is-pending {
  color: var(--color-text-mute, #999);
  animation: meter-blink 1s ease-in-out infinite;
}
@keyframes meter-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
@keyframes meter-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.meter-score {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  min-width: 28px;
  text-align: right;
  color: var(--color-text-sub);
}
.comment-modal-footer {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.comment-modal-footer .btn { flex: 1; }

/* --- 舆论事件弹层 --- */
.event-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in var(--duration-fast) var(--ease-soft);
}
.event-modal-mask {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}
.event-modal-panel {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: var(--color-bg);
  border-radius: 16px;
  padding: 20px;
  animation: pop-in var(--duration-mid) var(--ease-spring);
}
.event-tag {
  display: inline-block;
  padding: 3px 8px;
  background: var(--color-event-tag);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 10px;
}
.event-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.event-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 10px;
}
.event-other-comments {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.7;
  background: var(--color-soft);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 14px;
}
.event-other-comments .other-row { display: block; }
.event-other-comments .other-name { color: var(--color-text); font-weight: 500; }
.event-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.event-choice {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  background: var(--color-bg);
  transition: all var(--duration-fast);
}
.event-choice:hover, .event-choice:active {
  border-color: var(--color-accent);
  background: var(--color-event-bg);
}

/* --- 通知条 --- */
.notification-layer {
  position: absolute;
  top: calc(var(--statusbar-h) + var(--header-h) + var(--account-h));
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  padding: 0 12px;
}
.notification-bar {
  background: rgba(250, 81, 81, 0.95);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  box-shadow: 0 2px 12px rgba(250, 81, 81, 0.3);
  animation: notif-in var(--duration-mid) var(--ease-spring);
  cursor: pointer;
}
.notification-bar.is-leaving {
  animation: notif-out var(--duration-mid) var(--ease-soft) forwards;
}
.notification-bar .notif-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 1.4s ease-in-out infinite;
}
.notification-bar .notif-text { flex: 1; }
.notification-bar .notif-action {
  font-size: 12px;
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 10px;
}

/* --- 假装查看弹层 --- */
.peek-modal {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  animation: fade-in var(--duration-fast);
}
.peek-modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.peek-modal-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


.peek-modal-footer {
  padding: 16px;
  border-top: 1px solid var(--color-divider);
}

/* --- 顶部 header 昵称 --- */
.app-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-nickname {
  font-size: 12px;
  color: var(--color-text-sub);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   报告页 + 公共池弹层 + 详情弹层（重建段）
   ============================================================ */

/* --- 报告页容器 --- */
#reportPage {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--color-bg);
  overflow-y: auto;
  animation: fade-in var(--duration-mid) var(--ease-soft);
}
.report-page-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}
.report-title {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: var(--color-text);
  margin: 0 0 6px;
}
.report-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-sub);
  margin: 0 0 24px;
}

/* --- 标签卡片 --- */
.report-label-card {
  background: linear-gradient(135deg, #FFF1F0 0%, #FDE9D7 100%);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(92, 42, 40, 0.06);
}
.report-label-emoji {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 6px;
}
.report-label-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.report-label-desc {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.6;
  margin-bottom: 14px;
}
.report-label-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* --- 报告分节 --- */
.report-section {
  background: var(--color-card);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.report-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}
.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.report-stat {
  background: var(--color-bg);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
}
.report-stat-num {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.2;
  margin-bottom: 4px;
}
.report-stat-label {
  font-size: 11px;
  color: var(--color-text-sub);
}

/* --- AI 锐评 --- */
.report-ai-card {
  background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
  color: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.report-ai-title {
  font-size: 14px;
  font-weight: 600;
  color: #FDE9D7;
  margin-bottom: 8px;
}
.report-ai-body {
  font-size: 13px;
  line-height: 1.7;
  color: #E0E0E0;
  white-space: pre-wrap;
  margin-bottom: 12px;
}
.report-ai-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.report-ai-actions .btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  height: 32px;
  padding: 0 12px;
}
.report-ai-actions .btn:hover,
.report-ai-actions .btn:active {
  background: rgba(255, 255, 255, 0.2);
}

/* --- 标签列表 --- */
.report-labels-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.report-relation-bubble {
  display: inline-block;
  background: var(--color-event-bg);
  color: var(--color-accent);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
}

/* --- 底部双行按钮 --- */
.report-bottom-actions {
  text-align: center;
  background: transparent;
  padding: 20px 0 0;
}
.report-actions-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}
.report-actions-row:last-child {
  margin-bottom: 0;
}
.report-actions-row .btn {
  flex: 1;
  max-width: 160px;
  height: 42px;
  font-size: 13px;
  font-weight: 500;
}

.report-watermark {
  text-align: center;
  font-size: 11px;
  color: var(--color-text-mute);
  margin: 24px 0 0;
}

/* ============================================================
   通用弹层（detail / community browser 共享）
   ============================================================ */
.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in var(--duration-fast);
}
.detail-modal-mask {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  backdrop-filter: blur(2px);
  z-index: 0;
}
.detail-modal-panel {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  animation: modal-in var(--duration-mid) var(--ease-spring);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.detail-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-divider);
  flex-shrink: 0;
}
.detail-modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}
.detail-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.detail-modal-intro {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.6;
  margin: 0 0 14px;
  padding: 8px 10px;
  background: var(--color-soft);
  border-radius: 8px;
}
.circle-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--color-card);
  color: var(--color-text-sub);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}
.circle-close:hover, .circle-close:active {
  background: var(--color-divider);
  color: var(--color-text);
}

/* ============================================================
   公共池弹层
   ============================================================ */
.community-browser-panel {
  max-height: 86vh;
}
.community-empty {
  text-align: center;
  padding: 48px 20px;
}
.community-empty-icon {
  font-size: 56px;
  margin-bottom: 8px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.community-empty-text {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.7;
}
.community-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.community-item {
  background: var(--color-soft);
  border-radius: 10px;
  padding: 12px 14px;
  transition: all var(--duration-fast);
}
.community-item:hover {
  background: var(--color-card);
}
.community-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.community-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
}
.community-time {
  font-size: 11px;
  color: var(--color-text-mute);
}
.community-text {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 8px;
  word-break: break-word;
}
.community-stats {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--color-text-sub);
  margin-bottom: 8px;
}
.community-stat {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.community-stat-label {
  padding: 1px 8px;
  background: var(--color-event-bg);
  color: var(--color-accent);
  border-radius: 8px;
  font-size: 10px;
}
.community-comments {
  border-top: 1px dashed var(--color-divider);
  padding-top: 8px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.community-comment {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.5;
}
.community-comment-name {
  color: var(--color-text);
  font-weight: 500;
}
.community-comment-more {
  font-size: 11px;
  color: var(--color-text-mute);
  margin-top: 4px;
}
.community-more {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-mute);
  padding: 12px 0 4px;
}

/* ============================================================
   详细分析弹层（标签解剖）
   ============================================================ */
.detail-item {
  background: var(--color-soft);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}
.detail-item:last-child {
  margin-bottom: 0;
}
.detail-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.detail-emoji {
  font-size: 24px;
}
.detail-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
}
.detail-score {
  font-size: 12px;
  color: var(--color-accent);
  background: var(--color-event-bg);
  border-radius: 10px;
  padding: 2px 10px;
  font-weight: 500;
}
.detail-trigger {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.5;
  margin-bottom: 8px;
}
.detail-explain {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-bg);
  border-left: 3px solid var(--color-accent);
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 10px;
}
.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.detail-actions .btn {
  height: 30px;
  font-size: 12px;
  padding: 0 12px;
}

/* --- 文字工具类 --- */
.text-mute {
  color: var(--color-text-mute);
}
.text-small {
  font-size: 12px;
}

/* ============================================================
   私信卡（消息气泡样式）
   ============================================================ */
.moment-card.is-pm {
  background: linear-gradient(180deg, rgba(7, 193, 96, 0.05) 0%, transparent 80%);
  border-left: 3px solid #07c160;
}
.moment-card.is-pm .moment-avatar.is-pm {
  background: #07c160;
  color: #fff;
  font-size: 20px;
}
.moment-card.is-pm .moment-relation {
  color: #07c160;
  background: rgba(7, 193, 96, 0.1);
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 10px;
}
.pm-preview {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.6;
  padding: 10px 12px;
  background: var(--color-soft);
  border-radius: 8px;
  border-left: 2px solid #07c160;
  margin: 6px 0 8px;
  font-style: italic;
}
.pm-responded {
  font-size: 12px;
  color: var(--color-text-sub);
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(92, 42, 40, 0.04);
  border-radius: 6px;
}
.pm-responded b {
  color: var(--color-accent);
  font-weight: 500;
}

/* 私信弹层 tag 配色（绿色） */
.event-tag.is-pm {
  background: rgba(7, 193, 96, 0.12);
  color: #07c160;
}

/* 选项 delta 提示（事件 + 私信共用） */
.event-delta {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}
.event-delta.is-pos {
  background: rgba(82, 196, 26, 0.15);
  color: #389e0d;
}
.event-delta.is-neg {
  background: rgba(245, 34, 45, 0.12);
  color: #cf1322;
}

/* 私信发送人署名（弹层内） */
.event-from {
  font-size: 12px;
  color: #07c160;
  margin: -8px 0 6px;
  font-weight: 500;
}

/* ============================================================
   私信顶部红色 toast 弹窗（屏幕上方悬浮）
   内含：发送人头像 + 完整 body + 4 个回复选项 + 6s 倒计时
   ============================================================ */
.pm-toast-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;            /* 在 eventModal 之上 */
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 12px 16px 0;
  animation: pm-toast-in 0.3s var(--ease-spring);
}
.pm-toast-layer.is-leaving {
  animation: pm-toast-out 0.2s var(--ease-soft) forwards;
}
@keyframes pm-toast-in {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pm-toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-30%); }
}

.pm-toast {
  pointer-events: auto;
  background: linear-gradient(180deg, #fa5151 0%, #d9344a 100%);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 24px rgba(217, 52, 74, 0.4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 头部：头像 + 标题 + 倒计时 */
.pm-toast-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pm-toast-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  animation: pm-toast-shake 1.2s ease-in-out infinite;
}
@keyframes pm-toast-shake {
  0%, 100% { transform: rotate(0deg); }
  20%      { transform: rotate(-12deg); }
  40%      { transform: rotate(10deg); }
  60%      { transform: rotate(-6deg); }
  80%      { transform: rotate(3deg); }
}
.pm-toast-head-text {
  flex: 1;
  min-width: 0;
}
.pm-toast-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1px;
}
.pm-toast-sub {
  font-size: 11px;
  opacity: 0.88;
}
.pm-toast-countdown {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-num);
}

/* 私信正文（白底） */
.pm-toast-body-text {
  background: rgba(255, 255, 255, 0.95);
  color: #2c2c2c;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.7;
  max-height: 120px;
  overflow-y: auto;
  word-break: break-word;
}

/* 4 个回复选项（白底按钮） */
.pm-toast-choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pm-choice {
  background: rgba(255, 255, 255, 0.95);
  color: #2c2c2c;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s var(--ease-soft);
  font-family: inherit;
  line-height: 1.5;
}
.pm-choice:hover, .pm-choice:active {
  background: #fff;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.pm-choice.is-play-dead {
  background: rgba(255, 255, 255, 0.6);
  color: #888;
  font-style: italic;
}
