/* ══════════════════════════════════════════════════════════════════
   Feature Showcase — v5 (Apple-style sticky scroll switch)
   ══════════════════════════════════════════════════════════════════ */

/* ── Sticky 滚动容器 ─────────────────────────────── */
.fs-sticky-container {
  position: relative;
  height: calc(100vh * 6);
}

.fs-sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── 单个 Showcase（叠在一起）────────────────────── */
.feature-showcase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 60px max(calc((100vw - 1200px) / 2), 36px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-showcase.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── 序号装饰 ────────────────────────────────────── */
.feature-showcase::before {
  content: attr(data-index);
  position: absolute;
  top: 40px;
  left: max(calc((100vw - 1200px) / 2), 36px);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  color: rgba(74,127,165,0.04);
  z-index: 0;
  pointer-events: none;
}

/* ── 背景图（全屏淡入）──────────────────────────── */
.fs-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.fs-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.85) brightness(1.05);
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.feature-showcase.active .fs-hero-img {
  transform: scale(1);
}
.fs-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(250,250,247,0.95) 0%,
    rgba(250,250,247,0.85) 30%,
    rgba(250,250,247,0.6) 60%,
    rgba(250,250,247,0.3) 100%
  );
  pointer-events: none;
}

/* ── 文字区域（左侧）──────────────────────────────── */
.fs-text-overlay {
  position: relative;
  z-index: 2;
  flex: 0 0 320px;
  max-width: 360px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}
.feature-showcase.active .fs-text-overlay {
  opacity: 1;
  transform: translateY(0);
}

.fs-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4A7FA5;
  margin-bottom: 14px;
  background: rgba(74,127,165,0.08);
  padding: 4px 12px;
  border-radius: 16px;
}
.fs-badge svg { width: 13px; height: 13px; }

.fs-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  color: #1A1714;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.fs-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #4A4542;
  margin-bottom: 20px;
}

.fs-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fs-bullets li {
  font-size: 13px;
  line-height: 1.5;
  color: #4A4542;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fs-bullets li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4A7FA5;
  flex-shrink: 0;
}
.fs-bullets strong {
  font-weight: 600;
  color: #1A1714;
}

/* ── Demo 容器（右侧）────────────────────────────── */
.fs-demo-wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 720px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}
.feature-showcase.active .fs-demo-wrap {
  opacity: 1;
  transform: translateY(0);
}
.fs-demo-wrap::before { display: none; }

/* ── 进度点指示器 ──────────────────────────────────── */
.fs-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.fs-dots.visible {
  opacity: 1;
  pointer-events: auto;
}
.fs-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(74,127,165,0.3);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.fs-dot.active {
  background: #4A7FA5;
  border-color: #4A7FA5;
  transform: scale(1.2);
}
.fs-dot:hover:not(.active) {
  border-color: #4A7FA5;
  background: rgba(74,127,165,0.15);
}

/* ══════════════════════════════════════════════════════════════════
   拟真 Alice App 模拟器（大尺寸）
   ══════════════════════════════════════════════════════════════════ */

.fd-window {
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.15),
    0 4px 16px rgba(0,0,0,0.08),
    0 0 0 1px rgba(0,0,0,0.04);
  background: #FAFAF7;
  font-family: -apple-system, 'SF Pro Text', 'Inter', sans-serif;
  font-size: 13px;
  user-select: none;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.fd-window:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 70px rgba(0,0,0,0.18),
    0 6px 20px rgba(0,0,0,0.10),
    0 0 0 1px rgba(0,0,0,0.04);
}

/* macOS Title Bar */
.fd-titlebar {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: #F0EDE8;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
  gap: 8px;
}
.fd-traffic-lights {
  display: flex;
  gap: 7px;
}
.fd-traffic-lights span {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.fd-tl-close { background: #FF5F57; }
.fd-tl-minimize { background: #FFBD2E; }
.fd-tl-maximize { background: #28C840; }

.fd-titlebar-text {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #8A8480;
  font-weight: 500;
}
.fd-titlebar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fd-model-badge {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(74,127,165,0.1);
  color: #4A7FA5;
  font-weight: 500;
}

/* App Body — 固定高度，避免动画期间窗口跳变 */
.fd-body {
  display: flex;
  flex: 0 0 480px;
  overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────── */
.fd-sidebar {
  width: 210px;
  background: #F5F3EE;
  border-right: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.fd-sb-header {
  padding: 14px 14px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fd-sb-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(74,127,165,0.25);
}
.fd-sb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fd-sb-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  color: #1A1714;
}
.fd-sb-subtitle {
  font-size: 10px;
  color: #8A8480;
  margin-top: -2px;
}

.fd-sb-search {
  margin: 4px 12px 6px;
  height: 28px;
  background: rgba(0,0,0,0.04);
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
  font-size: 11px;
  color: #AEA9A4;
}
.fd-sb-search svg { width: 12px; height: 12px; opacity: 0.4; }

.fd-sb-new-btn {
  margin: 2px 12px 8px;
  height: 32px;
  background: #4A7FA5;
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
}
.fd-sb-new-btn svg { width: 14px; height: 14px; }

.fd-sb-sessions {
  flex: 1;
  overflow: hidden;
  padding: 0 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fd-sb-session {
  padding: 8px 10px;
  border-radius: 8px;
}
.fd-sb-session.active { background: rgba(0,0,0,0.06); }
.fd-sb-session-title {
  font-size: 12px;
  font-weight: 500;
  color: #1A1714;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fd-sb-session-date { font-size: 10px; color: #AEA9A4; margin-top: 2px; }

.fd-sb-channels {
  padding: 6px 12px 8px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fd-sb-channel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #6B6460;
}
.fd-sb-channel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.fd-sb-channel-dot.green { background: #22C55E; }
.fd-sb-channel-dot.blue { background: #3B82F6; }
.fd-sb-channel-dot.red { background: #EA4335; }

.fd-sb-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 8px 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.fd-sb-footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: #AEA9A4;
}
.fd-sb-footer-item svg { width: 16px; height: 16px; stroke: #AEA9A4; }
.fd-sb-footer-item.active { color: #4A7FA5; }
.fd-sb-footer-item.active svg { stroke: #4A7FA5; }

/* ── Main Chat Area ──────────────────────────────────── */
.fd-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #FAFAF7;
}

.fd-chat {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}
.fd-chat::-webkit-scrollbar { display: none; }

.fd-timestamp {
  text-align: center;
  font-size: 11px;
  color: #AEA9A4;
  padding: 4px 0;
}

/* ── Message Bubbles ─────────────────────────────────── */
.fd-msg {
  max-width: 78%;
  opacity: 0;
  transform: translateY(10px);
}
.fd-msg.show { animation: fdMsgIn 0.4s ease forwards; }

.fd-msg-user {
  align-self: flex-end;
  background: #4A7FA5;
  color: #fff;
  padding: 8px 16px;
  border-radius: 18px 4px 18px 18px;
  font-size: 13px;
  line-height: 1.5;
}

.fd-msg-ai-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  align-self: flex-start;
  max-width: 85%;
}
.fd-msg-ai-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 2px;
}
.fd-msg-ai-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fd-msg-ai {
  background: #EBE8E2;
  color: #1A1714;
  padding: 8px 16px;
  border-radius: 4px 18px 18px 18px;
  font-size: 13px;
  line-height: 1.6;
}

/* Typing */
.fd-typing {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  align-self: flex-start;
  opacity: 0;
}
.fd-typing.show { animation: fdMsgIn 0.3s ease forwards; }
.fd-typing-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.fd-typing-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fd-typing-dots {
  display: inline-flex;
  gap: 4px;
  padding: 10px 16px;
  background: #EBE8E2;
  border-radius: 4px 18px 18px 18px;
}
.fd-typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #AEA9A4;
  animation: fdDot 1.2s ease infinite;
}
.fd-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.fd-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes fdDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}
@keyframes fdMsgIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Tool Status ─────────────────────────────────────── */
.fd-tool-status {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #8A8480;
  padding: 4px 0 2px 36px;
  opacity: 0;
  transform: translateY(6px);
}
.fd-tool-status.show { animation: fdMsgIn 0.3s ease forwards; }
.fd-tool-status svg { width: 13px; height: 13px; }
.fd-tool-status .fd-tool-rounds { color: #AEA9A4; }

/* ── Memory Tag ──────────────────────────────────────── */
.fd-memory-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(201,169,110,0.12);
  color: #B8963E;
  margin-top: 4px;
}

/* ── Result Card ─────────────────────────────────────── */
.fd-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(74,127,165,0.06);
  border: 1px solid rgba(74,127,165,0.1);
  align-self: flex-start;
  margin-left: 36px;
  opacity: 0;
  transform: translateY(8px);
}
.fd-result.show { animation: fdMsgIn 0.4s ease forwards; }
.fd-result-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(74,127,165,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fd-result-icon svg { width: 16px; height: 16px; stroke: #4A7FA5; }
.fd-result-text { flex: 1; min-width: 0; }
.fd-result-title { font-weight: 600; color: #1A1714; font-size: 13px; }
.fd-result-sub { color: #8A8480; font-size: 11px; margin-top: 2px; }
.fd-result-check { color: #22C55E; flex-shrink: 0; }
.fd-result-check svg { width: 16px; height: 16px; }

/* ── Agent Cards ─────────────────────────────────────── */
.fd-agents-row {
  display: flex;
  gap: 8px;
  align-self: flex-start;
  width: calc(100% - 36px);
  margin-left: 36px;
}
.fd-agent-card {
  flex: 1;
  background: #F5F3EE;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(8px);
}
.fd-agent-card.show { animation: fdMsgIn 0.35s ease forwards; }
.fd-agent-card-header { display: flex; align-items: center; gap: 6px; }
.fd-agent-avatar { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.fd-agent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fd-agent-card-name { font-size: 12px; font-weight: 600; color: #1A1714; }
.fd-agent-card-status { margin-left: auto; font-size: 10px; color: #AEA9A4; }
.fd-agent-card-task { font-size: 11px; color: #6B6460; }
.fd-agent-progress { height: 3px; border-radius: 2px; background: rgba(0,0,0,0.06); overflow: hidden; }
.fd-agent-progress-bar { height: 100%; border-radius: 2px; background: #4A7FA5; width: 0%; transition: width 1.2s ease; }

/* ── File Cards ──────────────────────────────────────── */
.fd-file-row { display: flex; gap: 8px; align-self: flex-start; width: calc(100% - 36px); margin-left: 36px; }
.fd-file-card {
  flex: 1;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
}
.fd-file-card.show { animation: fdMsgIn 0.35s ease forwards; }
.fd-file-ext { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; margin-bottom: 4px; }
.fd-file-ext.pptx { background: rgba(234,88,12,0.1); color: #EA580C; }
.fd-file-ext.docx { background: rgba(37,99,235,0.1); color: #2563EB; }
.fd-file-ext.xlsx { background: rgba(22,163,74,0.1); color: #16A34A; }
.fd-file-ext.pdf  { background: rgba(220,38,38,0.1); color: #DC2626; }
.fd-file-name { font-size: 10px; color: #8A8480; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Channel Cards ───────────────────────────────────── */
.fd-channel-row { display: flex; gap: 8px; align-self: flex-start; width: calc(100% - 36px); margin-left: 36px; }
.fd-channel-card {
  flex: 1;
  background: #F5F3EE;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  opacity: 0;
  transform: scale(0.94);
}
.fd-channel-card.show { animation: fdCardIn 0.35s ease forwards; }
.fd-channel-icon { width: 28px; height: 28px; margin: 0 auto 4px; border-radius: 6px; overflow: hidden; }
.fd-channel-icon img { width: 100%; height: 100%; object-fit: contain; }
.fd-channel-name { font-size: 11px; color: #4A4542; font-weight: 500; }
.fd-channel-status { font-size: 10px; color: #22C55E; margin-top: 2px; }
@keyframes fdCardIn { to { opacity: 1; transform: scale(1); } }

/* ── Model List ──────────────────────────────────────── */
.fd-model-list { display: flex; flex-direction: column; gap: 4px; align-self: flex-start; width: calc(100% - 36px); margin-left: 36px; }
.fd-model-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(0,0,0,0.02); border: 1px solid transparent;
  font-size: 12px; transition: all 0.4s ease;
  opacity: 0; transform: translateX(-8px);
}
.fd-model-item.show { animation: fdSlideIn 0.35s ease forwards; }
.fd-model-item.active { background: rgba(74,127,165,0.08); border-color: rgba(74,127,165,0.15); }
@keyframes fdSlideIn { to { opacity: 1; transform: translateX(0); } }
.fd-model-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fd-model-name { color: #1A1714; font-weight: 500; }
.fd-model-tag { margin-left: auto; font-size: 10px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,0.04); color: #8A8480; }
.fd-model-item.active .fd-model-tag { background: rgba(34,197,94,0.1); color: #22C55E; }

/* ── Code Block ──────────────────────────────────────── */
.fd-code {
  font-family: 'PT Mono', 'Menlo', monospace;
  font-size: 11px; line-height: 1.6;
  color: #4A4542; background: #F0EDE8;
  border-radius: 8px; padding: 10px 12px;
  overflow: hidden; white-space: pre;
  align-self: flex-start; margin-left: 36px;
  max-width: calc(100% - 36px);
  opacity: 0; transform: translateY(8px);
}
.fd-code.show { animation: fdMsgIn 0.4s ease forwards; }
.fd-code .kw { color: #4A7FA5; font-weight: 600; }
.fd-code .str { color: #22C55E; }
.fd-code .cm { color: #AEA9A4; }

/* ── Input Bar ───────────────────────────────────────── */
.fd-input-bar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
  background: #FAFAF7;
}
.fd-input-plus { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #AEA9A4; font-size: 16px; font-weight: 300; }
.fd-input-field { flex: 1; font-size: 13px; color: #AEA9A4; }
.fd-input-send { width: 28px; height: 28px; border-radius: 50%; background: #4A7FA5; display: flex; align-items: center; justify-content: center; }
.fd-input-send svg { width: 14px; height: 14px; stroke: #fff; fill: none; }

/* ── Replay Button ───────────────────────────────────── */
.fd-replay {
  position: absolute;
  top: 48px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  color: #8A8480;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}
.fd-window[data-state="done"] .fd-replay {
  opacity: 1;
  pointer-events: auto;
}
.fd-replay:hover { background: rgba(0,0,0,0.08); color: #4A4542; }
.fd-replay svg { width: 14px; height: 14px; }

/* ══════════════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .feature-showcase {
    flex-direction: column;
    gap: 24px;
    padding: 40px 32px;
    align-items: flex-start;
  }
  .fs-text-overlay { flex: none; max-width: 100%; }
  .fs-title { font-size: 32px; }
  .fs-desc { font-size: 14px; }
  .fs-demo-wrap { max-width: 100%; width: 100%; }
  .feature-showcase::before { font-size: 80px; top: 20px; }
  .fs-dots { right: 12px; gap: 10px; }

  .fd-sidebar { width: 170px; }
  .fd-body { flex: 0 0 400px; }
}

@media (max-width: 600px) {
  .fs-sticky-container { height: calc(100vh * 4); }
  .feature-showcase {
    flex-direction: column;
    gap: 16px;
    padding: 32px 20px;
    align-items: flex-start;
  }
  .feature-showcase::before { display: none; }
  .fs-title { font-size: 26px; }
  .fs-desc { font-size: 13px; }
  .fs-dots { right: 8px; gap: 8px; }
  .fs-dot { width: 8px; height: 8px; }

  .fd-sidebar { display: none; }
  .fd-window { border-radius: 12px; }
  .fd-titlebar { height: 32px; padding: 0 10px; }
  .fd-titlebar-text { font-size: 11px; }
  .fd-model-badge { font-size: 9px !important; padding: 1px 6px !important; }
  .fd-body { flex: 0 0 320px; padding: 10px; gap: 8px; }
  .fd-msg { max-width: 92%; }
  .fd-msg-ai, .fd-msg-user { font-size: 12px; padding: 8px 10px; }
  .fd-avatar { width: 24px; height: 24px; }
  .fd-tool-status { font-size: 10px; padding: 6px 8px; margin-left: 28px; }
  .fd-result { padding: 8px 10px; margin-left: 28px; max-width: calc(100% - 28px); }
  .fd-result-title { font-size: 11px; }
  .fd-result-sub { font-size: 10px; }
  .fd-input-bar { height: 40px; padding: 0 10px; }
  .fd-input-field { font-size: 11px; }
  .fd-input-send { width: 24px; height: 24px; }
  .fd-input-send svg { width: 12px; height: 12px; }
  .fd-replay { width: 26px; height: 26px; top: 36px; right: 8px; }
  .fd-replay svg { width: 12px; height: 12px; }

  .fd-model-list { margin-left: 28px; width: calc(100% - 28px); }
  .fd-model-item { padding: 5px 8px; font-size: 11px; }
  .fd-model-dot { width: 6px; height: 6px; }
  .fd-model-tag { font-size: 9px; padding: 1px 4px; }

  .fd-code { font-size: 10px; padding: 8px 10px; margin-left: 28px; max-width: calc(100% - 28px); }

  .fd-channel-row { gap: 8px; padding: 6px; margin-left: 28px; }
  .fd-channel-card { min-width: 56px; padding: 6px 4px; }
  .fd-channel-icon { width: 22px; height: 22px; }
  .fd-channel-name { font-size: 9px; }
  .fd-channel-status { font-size: 8px; }
}

@media (max-width: 400px) {
  .fs-hero { min-height: 220px; }
  .fs-title { font-size: 20px; }
  .fs-desc { font-size: 12px; }
  .fd-body { flex: 0 0 260px; }
  .fd-msg-ai, .fd-msg-user { font-size: 11px; padding: 6px 8px; }
}
