diff --git a/src/app/_components/core/mobile-shell.module.css b/src/app/_components/core/mobile-shell.module.css index 197af616..ffc8034e 100644 --- a/src/app/_components/core/mobile-shell.module.css +++ b/src/app/_components/core/mobile-shell.module.css @@ -5,7 +5,7 @@ justify-content: center; width: 100%; min-height: 100dvh; - background: inherit; + background: #000000; /* 显式黑,桌面端 500px 外圈为黑色 */ } .content { diff --git a/src/app/chat/components/character-intro.module.css b/src/app/chat/components/character-intro.module.css deleted file mode 100644 index adaddc8c..00000000 --- a/src/app/chat/components/character-intro.module.css +++ /dev/null @@ -1,17 +0,0 @@ -/* CharacterIntro 角色介绍样式 */ - -.intro { - padding: var(--spacing-2, 8px) var(--spacing-5, 20px); -} - -.card { - padding: var(--spacing-3, 12px); - background: var(--color-bubble-background, rgba(255, 255, 255, 0.05)); - border-radius: var(--radius-md, 8px); - font-size: var(--font-size-sm, 14px); - line-height: 1.5; - color: var(--color-text-secondary, #9e9e9e); - max-height: 7.5em; /* 5 行 max */ - overflow: hidden; - backdrop-filter: blur(10px); -} diff --git a/src/app/chat/components/character-intro.tsx b/src/app/chat/components/character-intro.tsx deleted file mode 100644 index 4bccf83a..00000000 --- a/src/app/chat/components/character-intro.tsx +++ /dev/null @@ -1,40 +0,0 @@ -"use client"; -/** - * CharacterIntro 角色介绍卡片 - * - * 原始 Dart: lib/ui/chat/widgets/character_intro.dart(49 行) - * - * 视觉:模糊背景卡片,灰色字体,5 行 max - * 用途:首次进入聊天时展示 AI 角色介绍(Elio 设定) - */ -import styles from "./character-intro.module.css"; - -export interface CharacterIntroProps { - /** 角色介绍文本 */ - text?: string; - /** 最大行数(默认 5) */ - maxLines?: number; -} - -const DEFAULT_TEXT = - "Meet Elio Silvestri, your exclusive AI boyfriend. " + - "He's charming, witty, and always there for you. " + - "Chat with him anytime, anywhere — about your day, your dreams, or anything in between."; - -export function CharacterIntro({ text, maxLines = 5 }: CharacterIntroProps) { - return ( -