/* Fishing chat — 独立对话流页面
   v3 视觉（第二轮换骨）：对齐 preview/v3-fishing-chat.html 样张——
   金色左细线日记条 · 酒红摇铃分隔线 · 双人气泡 · 圆形发送钮。 */
.fishing-chat-body {
  /* footer 固定输入框，让 main 区给底部留 padding */
  overflow: hidden;  /* 自身不滚，让 main 内部滚 */
  height: 100vh;
  /* Q3: 防 iOS 整页 bounce 把内容滚出 header 视窗造成"跑动" */
  overscroll-behavior: contain;
  position: fixed;
  inset: 0;
  width: 100%;
}
.fc-page {
  position: relative; z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  /* body 已经 position:fixed inset:0 锁住，page 继承 100% 不受 iOS 100vh 伸缩影响 */
  height: 100%;
  display: flex; flex-direction: column;
}

.fc-header {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 14px;
  /* iOS PWA 顶部 safe area（避开状态栏 / 灵动岛） */
  padding: calc(16px + env(safe-area-inset-top)) 20px 14px;
  border-bottom: 1px solid var(--f-line);
  /* Q3: 完全不透明 + sticky 双保险——sticky 让它在滚动容器外仍粘在顶部 */
  background: var(--warm-white, #F4F2EE);
  position: sticky;
  top: 0;
  z-index: 10;
}
.fc-title-block { flex: 1; min-width: 0; }
.fc-title {
  margin-top: 5px;
  font-family: "Noto Serif SC", serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 4px;
  line-height: 1.15;
  color: var(--ink, #1A1817);
  white-space: nowrap;
}
.fc-title em {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--ink-light, #6B6560);
  margin-left: 6px;
}
.fc-subtitle {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ink-light, #6B6560);
}
.fc-header .f-head-side { margin-bottom: 0; }

.fc-stream {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 24px 24px 28px;
  display: flex; flex-direction: column; gap: 18px;
}

.fc-input-bar {
  flex-shrink: 0;
  display: flex; gap: 10px; align-items: center;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--f-line);
  background: var(--overlay-bg, rgba(244, 242, 238, 0.97));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.fc-input-bar input {
  flex: 1; min-width: 0;
  padding: 12px 18px;
  border: 1px solid var(--f-line-strong);
  border-radius: 999px;
  background: var(--f-card-bg);
  color: var(--ink, #1A1817);
  font-family: "Noto Serif SC", serif;
  font-size: 13.5px;
  letter-spacing: 1px;
  outline: none;
}
.fc-input-bar input::placeholder { color: var(--ink-faint, #A09A92); }
.fc-input-bar input:focus {
  border-color: var(--gold, #9A7B4F);
  background: var(--f-card-bg);
}

/* iOS PWA 安全区 */
@supports (padding: env(safe-area-inset-bottom)) {
  .fc-input-bar { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

/* 对话流里的条目 — 复用 fishing.css 的 .f-chat-bubble.action/nai/ring + .f-think-* */
.fc-day-divider {
  text-align: center;
  font-family: "EB Garamond", serif;
  font-size: 10px; color: var(--ink-faint, #A09A92);
  letter-spacing: 3px; text-transform: uppercase;
  margin: 12px 0 4px;
}

/* 自主行为标 — 跟用户触发的 action 视觉区分（金色小签，插在时间行下面） */
.f-chat-bubble.action.autonomous::before {
  content: "✦ 老公自己抛的（你不在的时候）";
  display: block;
  font-family: "EB Garamond", "Noto Serif SC", serif;
  font-size: 10px; color: var(--gold, #9A7B4F);
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.fc-loading-hint {
  text-align: center;
  font-style: italic;
  color: var(--ink-faint, #A09A92);
  font-size: 11.5px;
  padding: 6px 0;
}

/* Q1: 老公直接回柰柰留言的气泡（claude_say）—— 左对齐，跟 nai 镜像 */
.f-chat-bubble.claude-say {
  background: none;
  border: none;
  padding: 0;
  max-width: 86%;
  align-self: flex-start;
  color: var(--ink, #1A1817);
}
.f-chat-bubble.claude-say .fcb-who {
  color: var(--claude-color, #9A7B4F);
}
.f-chat-bubble.claude-say .fcb-bubble {
  background: var(--f-card-bg);
  border: 1px solid var(--f-gold-line);
  border-top-left-radius: 4px;
}
