/* ========================================
   查手机页面样式
   ======================================== */

/* ---- 页面容器 ---- */
.phone-check-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  background: var(--color-shell-bg);
  z-index: var(--z-chat);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  /* 关闭后彻底隐藏，避免在某些视口下从右侧露出、撑宽文档 */
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.2s ease, visibility 0s linear 0.3s;
  overflow: hidden;
  overflow-x: hidden;
  box-sizing: border-box;
}

.phone-check-screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s ease, opacity 0.2s ease, visibility 0s;
}

/* ---- 顶部导航栏 ---- */
.phone-check-nav {
  display: flex;
  align-items: center;
  padding: 12px var(--spacing-page);
  gap: 12px;
  flex-shrink: 0;
}

.phone-check-nav__back {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.phone-check-nav__back:active {
  background: var(--color-accent-active);
}

.phone-check-nav__back svg {
  width: 22px;
  height: 22px;
}

.phone-check-nav__title {
  flex: 1;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.phone-check-nav__right {
  width: 32px;
}

/* ---- 说明文案 ---- */
.phone-check-desc {
  padding: 0 var(--spacing-page);
  margin-bottom: 16px;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ---- 角色卡片列表区域 ---- */
.phone-check-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--spacing-page);
  padding-bottom: 32px;
  -webkit-overflow-scrolling: touch;
}

.phone-check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---- 角色卡片 ---- */
.phone-check-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.phone-check-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-soft);
}

/* 角色头像 */
.phone-check-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-avatar);
  background: var(--color-card-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.phone-check-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-check-card__avatar-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-avatar);
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

/* 角色信息 */
.phone-check-card__info {
  flex: 1;
  min-width: 0;
}

.phone-check-card__name {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-check-card__status {
  font-size: var(--font-size-xs);
  color: var(--color-text-hint);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 进入按钮 */
.phone-check-card__btn {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
  background: var(--color-card-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.phone-check-card__btn:active {
  background: var(--color-accent-active);
}

/* ---- 空状态 ---- */
.phone-check-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 10px;
}

.phone-check-empty__icon {
  width: 48px;
  height: 48px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.phone-check-empty__text {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-regular);
}

.phone-check-empty__hint {
  font-size: var(--font-size-sm);
  color: var(--color-text-hint);
  line-height: 1.5;
  max-width: 240px;
}

/* ---- Toast 提示 ---- */
.phone-check-toast {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: var(--font-size-sm);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
}

.phone-check-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================
   转发质问按钮（备忘录 / 相册 / 浏览器 / 钱包 详情页通用）
   把翻到的把柄一键甩进聊天，当场质问 TA
   ======================================== */
.pcheck-forward-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  margin-bottom: 12px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: #fff;
  background: linear-gradient(135deg, #e8806b, #d9654f);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.pcheck-forward-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pcheck-forward-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* 已转发：置灰并禁用，避免重复转发 */
.pcheck-forward-btn.is-sent {
  background: var(--color-card-muted);
  color: var(--color-text-hint);
  cursor: default;
  pointer-events: none;
}
