@keyframes s1-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.s1-iphone-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 680px;
  background: transparent;
}
.s1-iphone-frame {
  position: relative;
  flex-shrink: 0;
  width: 393px;
  height: 852px;
  transform: scale(0.8);
  transform-origin: center top;
}
.s1-btn-mute { position: absolute; left: -4px; top: 108px; width: 4px; height: 32px; background: #3a3a3c; border-radius: 9999px; }
.s1-btn-vol-up { position: absolute; left: -4px; top: 160px; width: 4px; height: 64px; background: #3a3a3c; border-radius: 9999px 0 0 9999px; }
.s1-btn-vol-down { position: absolute; left: -4px; top: 236px; width: 4px; height: 64px; background: #3a3a3c; border-radius: 9999px 0 0 9999px; }
.s1-btn-power { position: absolute; right: -4px; top: 176px; width: 4px; height: 80px; background: #3a3a3c; border-radius: 0 9999px 9999px 0; }
.s1-outer-frame {
  position: absolute; inset: 0; border-radius: 54px;
  background: linear-gradient(145deg, #5a5a5e 0%, #2c2c2e 40%, #1c1c1e 100%);
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08), inset 0 1px 0 rgba(255,255,255,0.15);
}
.s1-screen-bezel {
  position: absolute; inset: 10px; border-radius: 46px; background: #f2f0ec;
  overflow: hidden; display: flex; flex-direction: column;
}
.s1-blob-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; user-select: none; }
.s1-blob-base { position: absolute; inset: 0; background: linear-gradient(160deg, #c8c0f0 0%, #a8d8f8 35%, #b0e8e0 65%, #c4b0f5 100%); opacity: 0.55; }
.s1-blob { position: absolute; border-radius: 50%; }
.s1-blob-tr-purple { top: -80px; right: -60px; width: 360px; height: 360px; background: radial-gradient(circle, #a898e8 0%, transparent 65%); filter: blur(30px); opacity: 0.95; }
.s1-blob-tl-blue { top: -30px; left: -40px; width: 300px; height: 300px; background: radial-gradient(circle, #80c4f8 0%, transparent 65%); filter: blur(34px); opacity: 0.85; }
.s1-blob-tc-lavender { top: 60px; left: 30%; width: 240px; height: 240px; background: radial-gradient(circle, #c8b0f8 0%, transparent 65%); filter: blur(30px); opacity: 0.8; }
.s1-blob-ml-teal { top: 35%; left: -50px; width: 300px; height: 300px; background: radial-gradient(circle, #88d8e8 0%, transparent 65%); filter: blur(36px); opacity: 0.8; }
.s1-blob-mr-bluepurple { top: 40%; right: -50px; width: 300px; height: 300px; background: radial-gradient(circle, #a8a0f0 0%, transparent 65%); filter: blur(34px); opacity: 0.8; }
.s1-blob-mc-green { top: 50%; left: 20%; width: 260px; height: 260px; background: radial-gradient(circle, #90e0d0 0%, transparent 65%); filter: blur(32px); opacity: 0.7; }
.s1-blob-bl-purple { bottom: -40px; left: -40px; width: 320px; height: 320px; background: radial-gradient(circle, #b8a0f0 0%, transparent 65%); filter: blur(34px); opacity: 0.9; }
.s1-blob-br-blue { bottom: -30px; right: -40px; width: 300px; height: 300px; background: radial-gradient(circle, #88c8f8 0%, transparent 65%); filter: blur(32px); opacity: 0.85; }
.s1-blob-bc-teal { bottom: 60px; left: 25%; width: 260px; height: 260px; background: radial-gradient(circle, #80d8d0 0%, transparent 65%); filter: blur(30px); opacity: 0.75; }

.s1-status-bar { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px 28px 4px; flex-shrink: 0; }
.s1-status-time { font-size: 15px; font-weight: 600; color: #1c1c1e; font-family: 'Noto Sans SC', sans-serif; }
.s1-status-icons { display: flex; align-items: center; gap: 6px; }
.s1-battery { display: flex; align-items: center; gap: 2px; }
.s1-battery-body { position: relative; width: 25px; height: 12px; border-radius: 3px; border: 1px solid #374151; display: flex; align-items: center; }
.s1-battery-fill { border-radius: 2px; margin: 1.5px; width: 90%; height: 7px; background: #34c759; }
.s1-battery-cap { border-radius: 0 1.5px 1.5px 0; width: 2px; height: 5px; background: #555; }

.s1-dynamic-island { position: absolute; z-index: 20; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 34px; background: #000; border-radius: 20px; }

.s1-top-nav { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 8px; flex-shrink: 0; }
.s1-top-nav-left, .s1-top-nav-right { display: flex; align-items: center; gap: 12px; }
.s1-icon-btn { padding: 4px; background: none; border: none; cursor: pointer; color: #4b5563; }
.s1-pill-btn { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.82); border-radius: 9999px; padding: 6px 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); border: 1px solid #f3f4f6; cursor: pointer; }
.s1-circle-btn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #d1d5db; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.6); cursor: pointer; }

.s1-white-overlay { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(to bottom, transparent 20%, rgba(255,255,255,0.7) 45%, rgba(255,255,255,0.95) 65%); }

.s1-main-content { position: relative; z-index: 10; flex: 1; overflow: hidden; }
.s1-home-screen { display: flex; flex-direction: column; height: 100%; padding: 12px 20px 8px; }
.s1-home-mascot { display: flex; flex-direction: column; align-items: flex-start; }
.s1-home-logo { width: 96px; object-fit: contain; }
.s1-home-welcome { margin-top: 12px; }
.s1-home-title { font-size: 20px; font-weight: 700; color: #111827; line-height: 1.375; }
.s1-home-desc { color: #6b7280; font-size: 14px; margin-top: 8px; line-height: 1.625; }
.s1-home-spacer { flex: 1; }
.s1-quick-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.s1-quick-btn { width: 100%; background: rgba(255,255,255,0.88); border-radius: 16px; padding: 16px; text-align: center; color: #374151; font-size: 15px; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,0.05); border: none; cursor: pointer; backdrop-filter: blur(6px); transition: all 0.15s; }
.s1-quick-btn:active { box-shadow: none; transform: scale(0.99); }

.s1-chat-screen { padding: 20px 16px 16px; }
.s1-user-bubble { width: 100%; }
.s1-user-bubble-inner { border-radius: 16px; padding: 12px 16px; background: rgba(210,205,240,0.55); backdrop-filter: blur(4px); }
.s1-user-msg-text { color: #1f2937; font-size: 15px; line-height: 1.625; }
.s1-typing-indicator { display: flex; align-items: center; gap: 8px; margin-top: 16px; margin-left: 16px; }
.s1-typing-dots { display: flex; align-items: center; gap: 5px; }
.s1-dot { border-radius: 50%; background: #9ca3af; }
.s1-dot-1 { width: 6px; height: 6px; animation: s1-bounce 900ms 0ms infinite; opacity: 0.5; }
.s1-dot-2 { width: 8px; height: 8px; animation: s1-bounce 900ms 180ms infinite; opacity: 1; }
.s1-dot-3 { width: 8px; height: 8px; animation: s1-bounce 900ms 360ms infinite; opacity: 1; }
.s1-typing-text { color: #9ca3af; font-size: 14px; }
.s1-ai-response { margin-top: 16px; }
.s1-ai-text { color: #1f2937; font-size: 15px; line-height: 1.7; white-space: pre-line; }
.s1-ai-actions { border-top: 1px dashed #e5e7eb; margin-top: 16px; padding-top: 12px; display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.s1-ai-action-btn { background: none; border: none; cursor: pointer; color: #9ca3af; padding: 4px; transition: color 0.15s; }
.s1-ai-action-btn:hover { color: #6b7280; }

.s1-input-bar { position: relative; z-index: 10; padding: 0 16px 12px; flex-shrink: 0; }
.s1-input-bird { display: flex; justify-content: flex-start; margin-bottom: -20px; padding-left: 4px; }
.s1-input-box { border-radius: 16px; padding: 12px 16px; background: rgba(255,255,255,0.96); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.s1-input-field { width: 100%; background: transparent; border: none; outline: none; color: #1f2937; font-size: 15px; font-family: 'Noto Sans SC', sans-serif; margin-bottom: 8px; }
.s1-input-field::placeholder { color: #9ca3af; }
.s1-input-actions { display: flex; align-items: center; justify-content: space-between; }
.s1-input-icon-btn { padding: 4px; background: none; border: none; cursor: pointer; color: #9ca3af; transition: color 0.15s; }
.s1-input-icon-btn:hover { color: #4b5563; }
.s1-input-left { display: flex; align-items: center; gap: 12px; }
.s1-send-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; background: #00C853; transition: all 0.15s; }
.s1-send-btn .s1-stop-icon { display: none; }
.s1-send-btn.s1-stop-mode { background: #ef4444; border-radius: 50%; }
.s1-send-btn.s1-stop-mode .s1-send-icon { display: none; }
.s1-send-btn.s1-stop-mode .s1-stop-icon { display: block; }
.s1-send-btn.s1-inactive { background: #e5e7eb; border-radius: 50%; }
.s1-send-btn.s1-inactive .s1-send-icon { stroke: #9ca3af; }
.s1-disclaimer { text-align: center; font-size: 12px; color: #ccc; margin-top: 6px; }

.s1-sidebar-overlay { position: absolute; inset: 0; z-index: 30; display: flex; }
.s1-sidebar-panel { width: 84%; display: flex; flex-direction: column; box-shadow: 0 25px 50px rgba(0,0,0,0.25); overflow: hidden; position: relative; background: #f2f0ec; }
.s1-sidebar-inner { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.s1-sidebar-backdrop { flex: 1; background: rgba(0,0,0,0.22); border: none; cursor: pointer; }
.s1-sidebar-top-nav { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 8px; }
.s1-sidebar-nav-left, .s1-sidebar-nav-right { display: flex; align-items: center; gap: 12px; }
.s1-sidebar-section-title { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; }
.s1-sidebar-section-title span { color: #6b7280; font-size: 15px; font-weight: 500; }
.s1-sidebar-list { position: relative; z-index: 10; flex: 1; overflow-y: auto; padding: 0 16px 16px; }
.s1-sidebar-group { margin-bottom: 4px; }
.s1-group-header { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 4px; background: none; border: none; cursor: pointer; }
.s1-group-label { font-size: 15px; font-weight: 600; color: #1f2937; display: flex; align-items: center; gap: 4px; }
.s1-chevron { transition: transform 0.2s; }
.s1-chevron.s1-collapsed { transform: rotate(-90deg); }
.s1-group-items { }
.s1-group-items.s1-collapsed { display: none; }
.s1-conversation-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px; border-radius: 12px; }
.s1-conversation-item:hover { background: rgba(255,255,255,0.6); }
.s1-conv-text { color: #374151; font-size: 14px; }
.s1-conv-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.s1-conv-time { color: #9ca3af; font-size: 12px; }
.s1-conv-active { border: 1px solid #52B8AD; background: rgba(82,184,173,0.1); padding: 10px 12px; border-radius: 12px; }
.s1-agent-section { margin-top: 8px; padding-top: 8px; }
.s1-agent-header { display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 600; color: #1f2937; margin-bottom: 10px; padding: 0 4px; background: none; border: none; cursor: pointer; }
.s1-agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.s1-agent-card { border-radius: 12px; padding: 12px 8px; text-align: center; }
.s1-agent-count { font-size: 20px; font-weight: 700; }
.s1-agent-label { font-size: 10px; margin-top: 2px; }
.s1-desktop-card { margin-top: 12px; background: #fff; border-radius: 12px; padding: 14px; }
.s1-desktop-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.s1-desktop-info { display: flex; align-items: center; gap: 8px; }
.s1-desktop-icon-wrap { width: 28px; height: 28px; background: #f3f4f6; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.s1-desktop-name { color: #1f2937; font-size: 13.5px; font-weight: 600; }
.s1-desktop-status { display: flex; align-items: flex-start; justify-content: space-between; }
.s1-desktop-status-line { display: flex; align-items: center; gap: 8px; }
.s1-desktop-running-badge { display: inline-block; background: #059669; color: #fff; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 9999px; }
.s1-desktop-conv { color: #374151; font-size: 13px; margin-top: 6px; }
.s1-desktop-path { color: #9ca3af; font-size: 11px; margin-top: 2px; }
.s1-desktop-time { color: #9ca3af; font-size: 12px; }
.s1-sidebar-bottom { position: relative; z-index: 10; border-top: 1px solid rgba(255,255,255,0.4); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.3); backdrop-filter: blur(8px); }
.s1-sidebar-account { display: flex; align-items: center; gap: 10px; color: #374151; font-size: 14px; }
.s1-avatar-circle { width: 28px; height: 28px; border-radius: 50%; background: #8b5cf6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.s1-bottom-bar { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; padding: 10px 0 12px; gap: 12px; flex-shrink: 0; }
.s1-demo-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 40px; border-radius: 9999px; font-weight: 700; font-size: 16px; border: none; cursor: pointer; background: linear-gradient(135deg, #3dba8a, #2da876); color: #fff; box-shadow: 0 6px 24px rgba(61,186,138,0.6), 0 2px 8px rgba(0,0,0,0.15); transition: all 0.2s ease; width: 86%; max-width: 320px; letter-spacing: 0.02em; }
.s1-demo-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(61,186,138,0.75), 0 3px 10px rgba(0,0,0,0.2); }
.s1-demo-btn:active { transform: scale(0.96); }
.s1-demo-btn.s1-demo-active { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 6px 24px rgba(239,68,68,0.55), 0 2px 8px rgba(0,0,0,0.15); }
.s1-demo-icon { font-size: 18px; line-height: 1; }
.s1-home-indicator { width: 134px; height: 5px; border-radius: 9999px; background: #1c1c1e; }

/* ── 场景二：远程桌面 ── */

.s2-phone-wrapper { display: flex; align-items: flex-start; justify-content: center; min-height: 680px; background: transparent; }
.s2-phone-frame { position: relative; flex-shrink: 0; width: 393px; height: 852px; transform: scale(0.8); transform-origin: center top; }
.s2-screen { position: absolute; inset: 10px; border-radius: 46px; background: #0f172a; overflow: hidden; display: flex; flex-direction: column; }
.s2-status-bar { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px 28px 4px; flex-shrink: 0; }
.s2-status-time { font-size: 15px; font-weight: 600; color: #1c1c1e; font-family: 'Noto Sans SC', sans-serif; }
.s2-status-icons { display: flex; align-items: center; gap: 6px; }
.s2-battery { display: flex; align-items: center; gap: 2px; }
.s2-battery-body { position: relative; width: 25px; height: 12px; border-radius: 3px; border: 1px solid #374151; display: flex; align-items: center; }
.s2-battery-fill { border-radius: 2px; margin: 1.5px; width: 90%; height: 7px; background: #34c759; }
.s2-battery-cap { border-radius: 0 1.5px 1.5px 0; width: 2px; height: 5px; background: #555; }
.s2-dynamic-island { position: absolute; z-index: 20; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 34px; background: #000; border-radius: 20px; }
.s2-main { position: relative; z-index: 10; flex: 1; display: flex; flex-direction: column; padding: 12px 16px 8px; }
.s2-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.s2-header-title { color: #fff; font-size: 18px; font-weight: 700; }
.s2-connected { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.s2-pc-screen { flex: 1; background: #1e293b; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(99,102,241,0.3); }
.s2-pc-topbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #0f172a; border-bottom: 1px solid rgba(255,255,255,0.06); }
.s2-pc-dots { display: flex; gap: 5px; }
.s2-pc-dots i { width: 8px; height: 8px; border-radius: 50%; }
.s2-pc-dots i:nth-child(1) { background: #ef4444; }
.s2-pc-dots i:nth-child(2) { background: #f59e0b; }
.s2-pc-dots i:nth-child(3) { background: #22c55e; }
.s2-pc-url { color: rgba(255,255,255,0.4); font-size: 11px; font-family: monospace; }
.s2-pc-body { padding: 12px; font-family: 'Cascadia Code', 'Fira Code', monospace; font-size: 11px; line-height: 1.6; flex: 1; overflow: hidden; }
.s2-pc-line { color: rgba(255,255,255,0.7); white-space: nowrap; }
.s2-pc-prompt { color: #818cf8; }
.s2-pc-cmd { color: #22d3ee; }
.s2-pc-output { color: rgba(255,255,255,0.4); font-size: 10px; }
.s2-pc-cursor { color: #22d3ee; animation: s2-blink 1s step-end infinite; }
@keyframes s2-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.s2-toolbar { display: flex; gap: 8px; }
.s2-tool-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6); font-size: 10px; cursor: pointer; transition: all 0.15s; }
.s2-tool-btn span { font-size: 10px; }
.s2-tool-btn.s2-tool-active { background: rgba(99,102,241,0.2); border-color: rgba(99,102,241,0.4); color: #a5b4fc; }
.s2-home-indicator { width: 134px; height: 5px; border-radius: 9999px; background: #1c1c1e; margin: 8px auto 4px; }