|
@@ -0,0 +1,713 @@
|
|
|
+:host {
|
|
|
+ // 定义CSS变量
|
|
|
+ --primary-bg: #ffffff;
|
|
|
+ --secondary-bg: #f8f9fc;
|
|
|
+ --card-bg: #ffffff;
|
|
|
+ --border-color: #e1e6ef;
|
|
|
+ --primary-text: #2d3748;
|
|
|
+ --secondary-text: #718096;
|
|
|
+ --accent-color: #4361ee;
|
|
|
+ --warning-color: #f59e0b;
|
|
|
+ --danger-color: #ef4444;
|
|
|
+ --success-color: #10b981;
|
|
|
+ --ai-color: #8b5cf6;
|
|
|
+ --chat-ai-bg: rgba(139, 92, 246, 0.08);
|
|
|
+ --chat-user-bg: rgba(67, 97, 238, 0.08);
|
|
|
+ --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
|
|
|
+
|
|
|
+ display: block;
|
|
|
+ min-height: 100vh;
|
|
|
+ background: var(--primary-bg);
|
|
|
+ color: var(--primary-text);
|
|
|
+ background-image:
|
|
|
+ radial-gradient(circle at 90% 15%, rgba(248, 249, 252, 0.8) 0%, transparent 25%),
|
|
|
+ radial-gradient(circle at 10% 85%, rgba(248, 249, 252, 0.8) 0%, transparent 25%);
|
|
|
+ overflow-x: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+* {
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+ box-sizing: border-box;
|
|
|
+ font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
|
|
|
+}
|
|
|
+
|
|
|
+body {
|
|
|
+ background: var(--primary-bg);
|
|
|
+ color: var(--primary-text);
|
|
|
+ min-height: 100vh;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ background-image:
|
|
|
+ radial-gradient(circle at 90% 15%, rgba(248, 249, 252, 0.8) 0%, transparent 25%),
|
|
|
+ radial-gradient(circle at 10% 85%, rgba(248, 249, 252, 0.8) 0%, transparent 25%);
|
|
|
+ overflow-x: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+/* Logo 样式 */
|
|
|
+.logo {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ gap: 1rem;
|
|
|
+ padding: 1.5rem 0;
|
|
|
+ animation: fadeIn 0.8s ease-out;
|
|
|
+}
|
|
|
+
|
|
|
+.logo-icon {
|
|
|
+ color: var(--ai-color);
|
|
|
+ font-size: 2.5rem;
|
|
|
+ animation: float 3s ease-in-out infinite;
|
|
|
+}
|
|
|
+
|
|
|
+.logo-text {
|
|
|
+ font-size: 1.8rem;
|
|
|
+ font-weight: 700;
|
|
|
+ background: linear-gradient(90deg, #8b5cf6, #4361ee);
|
|
|
+ -webkit-background-clip: text;
|
|
|
+ -webkit-text-fill-color: transparent;
|
|
|
+ letter-spacing: 1px;
|
|
|
+ text-shadow: 0 2px 10px rgba(139, 92, 246, 0.1);
|
|
|
+}
|
|
|
+
|
|
|
+/* 主容器 */
|
|
|
+.main-container {
|
|
|
+ display: flex;
|
|
|
+ flex: 1;
|
|
|
+ padding: 1rem 2rem 3rem;
|
|
|
+ gap: 2rem;
|
|
|
+ max-width: 1600px;
|
|
|
+ margin: 0 auto;
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+
|
|
|
+/* 动画定义 */
|
|
|
+@keyframes fadeIn {
|
|
|
+ from { opacity: 0; transform: translateY(10px); }
|
|
|
+ to { opacity: 1; transform: translateY(0); }
|
|
|
+}
|
|
|
+
|
|
|
+@keyframes slideInLeft {
|
|
|
+ from { opacity: 0; transform: translateX(-20px); }
|
|
|
+ to { opacity: 1; transform: translateX(0); }
|
|
|
+}
|
|
|
+
|
|
|
+@keyframes slideInRight {
|
|
|
+ from { opacity: 0; transform: translateX(20px); }
|
|
|
+ to { opacity: 1; transform: translateX(0); }
|
|
|
+}
|
|
|
+
|
|
|
+@keyframes pulse {
|
|
|
+ 0% { transform: scale(1); }
|
|
|
+ 50% { transform: scale(1.05); }
|
|
|
+ 100% { transform: scale(1); }
|
|
|
+}
|
|
|
+
|
|
|
+@keyframes float {
|
|
|
+ 0% { transform: translateY(0px); }
|
|
|
+ 50% { transform: translateY(-8px); }
|
|
|
+ 100% { transform: translateY(0px); }
|
|
|
+}
|
|
|
+
|
|
|
+@keyframes glow {
|
|
|
+ 0% { box-shadow: 0 0 5px rgba(139, 92, 246, 0.3); }
|
|
|
+ 50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); }
|
|
|
+ 100% { box-shadow: 0 0 5px rgba(139, 92, 246, 0.3); }
|
|
|
+}
|
|
|
+
|
|
|
+/* AI助手主内容区 */
|
|
|
+.ai-container {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ flex: 1;
|
|
|
+ background: var(--card-bg);
|
|
|
+ border-radius: 16px;
|
|
|
+ border: 1px solid var(--border-color);
|
|
|
+ box-shadow: var(--card-shadow);
|
|
|
+ overflow: hidden;
|
|
|
+ transform: translateY(20px);
|
|
|
+ opacity: 0;
|
|
|
+ animation: fadeIn 0.6s forwards 0.3s;
|
|
|
+}
|
|
|
+
|
|
|
+.ai-header {
|
|
|
+ padding: 1.5rem;
|
|
|
+ border-bottom: 1px solid var(--border-color);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 1rem;
|
|
|
+ background: rgba(139, 92, 246, 0.05);
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+
|
|
|
+.ai-title {
|
|
|
+ font-size: 1.5rem;
|
|
|
+ font-weight: 600;
|
|
|
+ color: var(--ai-color);
|
|
|
+}
|
|
|
+
|
|
|
+.ai-status {
|
|
|
+ padding: 0.25rem 0.75rem;
|
|
|
+ background: rgba(16, 185, 129, 0.1);
|
|
|
+ color: var(--success-color);
|
|
|
+ border-radius: 1rem;
|
|
|
+ font-size: 0.9rem;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 0.5rem;
|
|
|
+ animation: pulse 2s infinite;
|
|
|
+}
|
|
|
+
|
|
|
+.ai-status-dot {
|
|
|
+ width: 8px;
|
|
|
+ height: 8px;
|
|
|
+ background: var(--success-color);
|
|
|
+ border-radius: 50%;
|
|
|
+ animation: pulse 1.5s infinite;
|
|
|
+}
|
|
|
+
|
|
|
+/* AI聊天区域 */
|
|
|
+.ai-chat-container {
|
|
|
+ display: flex;
|
|
|
+ flex: 1;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+.chat-history {
|
|
|
+ width: 280px;
|
|
|
+ border-right: 1px solid var(--border-color);
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ background: var(--secondary-bg);
|
|
|
+}
|
|
|
+
|
|
|
+.history-header {
|
|
|
+ padding: 1rem;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ border-bottom: 1px solid var(--border-color);
|
|
|
+}
|
|
|
+
|
|
|
+.new-chat-btn {
|
|
|
+ background: var(--accent-color);
|
|
|
+ color: white;
|
|
|
+ border: none;
|
|
|
+ border-radius: 0.75rem;
|
|
|
+ padding: 0.6rem 1rem;
|
|
|
+ cursor: pointer;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 0.5rem;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+ font-weight: 500;
|
|
|
+ box-shadow: 0 4px 10px rgba(67, 97, 238, 0.2);
|
|
|
+}
|
|
|
+
|
|
|
+.new-chat-btn:hover {
|
|
|
+ background: #3551d4;
|
|
|
+ transform: translateY(-2px);
|
|
|
+ box-shadow: 0 6px 15px rgba(67, 97, 238, 0.3);
|
|
|
+}
|
|
|
+
|
|
|
+.new-chat-btn:active {
|
|
|
+ transform: translateY(1px);
|
|
|
+}
|
|
|
+
|
|
|
+.history-list {
|
|
|
+ flex: 1;
|
|
|
+ overflow-y: auto;
|
|
|
+ padding: 1rem;
|
|
|
+}
|
|
|
+
|
|
|
+.history-item {
|
|
|
+ padding: 0.8rem 1rem;
|
|
|
+ border-radius: 0.75rem;
|
|
|
+ margin-bottom: 0.5rem;
|
|
|
+ cursor: pointer;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+ background: var(--card-bg);
|
|
|
+ border: 1px solid var(--border-color);
|
|
|
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
|
|
|
+ transform: scale(0.95);
|
|
|
+ opacity: 0.8;
|
|
|
+ animation: fadeIn 0.5s forwards;
|
|
|
+}
|
|
|
+
|
|
|
+.history-item:nth-child(1) { animation-delay: 0.1s; }
|
|
|
+.history-item:nth-child(2) { animation-delay: 0.2s; }
|
|
|
+.history-item:nth-child(3) { animation-delay: 0.3s; }
|
|
|
+.history-item:nth-child(4) { animation-delay: 0.4s; }
|
|
|
+.history-item:nth-child(5) { animation-delay: 0.5s; }
|
|
|
+
|
|
|
+.history-item:hover {
|
|
|
+ background: rgba(67, 97, 238, 0.05);
|
|
|
+ border-color: rgba(67, 97, 238, 0.3);
|
|
|
+ transform: translateX(5px);
|
|
|
+}
|
|
|
+
|
|
|
+.history-item.active {
|
|
|
+ background: rgba(67, 97, 238, 0.08);
|
|
|
+ border-color: rgba(67, 97, 238, 0.4);
|
|
|
+ transform: scale(1);
|
|
|
+ opacity: 1;
|
|
|
+ box-shadow: 0 5px 15px rgba(67, 97, 238, 0.1);
|
|
|
+}
|
|
|
+
|
|
|
+.history-title {
|
|
|
+ font-weight: 500;
|
|
|
+ margin-bottom: 0.25rem;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 0.5rem;
|
|
|
+ color: var(--primary-text);
|
|
|
+}
|
|
|
+
|
|
|
+.history-date {
|
|
|
+ font-size: 0.8rem;
|
|
|
+ color: var(--secondary-text);
|
|
|
+}
|
|
|
+
|
|
|
+/* 主聊天区域 */
|
|
|
+.chat-main {
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+}
|
|
|
+
|
|
|
+.chat-messages {
|
|
|
+ flex: 1;
|
|
|
+ padding: 1.5rem;
|
|
|
+ overflow-y: auto;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 1.5rem;
|
|
|
+ background: var(--secondary-bg);
|
|
|
+}
|
|
|
+
|
|
|
+.message {
|
|
|
+ max-width: 80%;
|
|
|
+ padding: 1.2rem;
|
|
|
+ border-radius: 16px;
|
|
|
+ position: relative;
|
|
|
+ line-height: 1.6;
|
|
|
+ transform-origin: bottom;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+ opacity: 0;
|
|
|
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
|
|
|
+}
|
|
|
+
|
|
|
+.ai-message {
|
|
|
+ background: var(--chat-ai-bg);
|
|
|
+ border-bottom-left-radius: 0;
|
|
|
+ align-self: flex-start;
|
|
|
+ border: 1px solid rgba(139, 92, 246, 0.15);
|
|
|
+ animation: slideInLeft 0.4s forwards;
|
|
|
+}
|
|
|
+
|
|
|
+.user-message {
|
|
|
+ background: var(--chat-user-bg);
|
|
|
+ border-bottom-right-radius: 0;
|
|
|
+ align-self: flex-end;
|
|
|
+ border: 1px solid rgba(67, 97, 238, 0.15);
|
|
|
+ animation: slideInRight 0.4s forwards;
|
|
|
+}
|
|
|
+
|
|
|
+.message-header {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 0.5rem;
|
|
|
+ margin-bottom: 0.5rem;
|
|
|
+}
|
|
|
+
|
|
|
+.message-avatar {
|
|
|
+ width: 28px;
|
|
|
+ height: 28px;
|
|
|
+ border-radius: 50%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ font-size: 0.9rem;
|
|
|
+ font-weight: bold;
|
|
|
+ color: white;
|
|
|
+}
|
|
|
+
|
|
|
+.ai-avatar {
|
|
|
+ background: var(--ai-color);
|
|
|
+ animation: pulse 2s infinite;
|
|
|
+}
|
|
|
+
|
|
|
+.user-avatar-small {
|
|
|
+ background: var(--accent-color);
|
|
|
+}
|
|
|
+
|
|
|
+.message-name {
|
|
|
+ font-weight: 600;
|
|
|
+}
|
|
|
+
|
|
|
+.ai-name {
|
|
|
+ color: var(--ai-color);
|
|
|
+}
|
|
|
+
|
|
|
+.message-time {
|
|
|
+ font-size: 0.8rem;
|
|
|
+ color: var(--secondary-text);
|
|
|
+ margin-top: 0.5rem;
|
|
|
+ opacity: 0.7;
|
|
|
+}
|
|
|
+
|
|
|
+.message-content {
|
|
|
+ font-size: 0.95rem;
|
|
|
+ color: var(--primary-text);
|
|
|
+}
|
|
|
+
|
|
|
+.message-actions {
|
|
|
+ display: flex;
|
|
|
+ gap: 0.5rem;
|
|
|
+ margin-top: 0.8rem;
|
|
|
+ opacity: 0;
|
|
|
+ transform: translateY(10px);
|
|
|
+ transition: all 0.3s ease;
|
|
|
+}
|
|
|
+
|
|
|
+.message:hover .message-actions {
|
|
|
+ opacity: 1;
|
|
|
+ transform: translateY(0);
|
|
|
+}
|
|
|
+
|
|
|
+.action-btn {
|
|
|
+ background: rgba(255, 255, 255, 0.8);
|
|
|
+ color: var(--secondary-text);
|
|
|
+ border: 1px solid var(--border-color);
|
|
|
+ border-radius: 0.5rem;
|
|
|
+ padding: 0.4rem 0.8rem;
|
|
|
+ font-size: 0.85rem;
|
|
|
+ cursor: pointer;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 0.3rem;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+ backdrop-filter: blur(4px);
|
|
|
+}
|
|
|
+
|
|
|
+.action-btn:hover {
|
|
|
+ background: rgba(255, 255, 255, 0.9);
|
|
|
+ color: var(--primary-text);
|
|
|
+ transform: translateY(-2px);
|
|
|
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
|
|
+}
|
|
|
+
|
|
|
+.chat-input-container {
|
|
|
+ padding: 1.5rem;
|
|
|
+ border-top: 1px solid var(--border-color);
|
|
|
+ background: var(--card-bg);
|
|
|
+}
|
|
|
+
|
|
|
+.chat-input-area {
|
|
|
+ display: flex;
|
|
|
+ gap: 1rem;
|
|
|
+ background: var(--secondary-bg);
|
|
|
+ border: 1px solid var(--border-color);
|
|
|
+ border-radius: 0.75rem;
|
|
|
+ padding: 1rem;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
|
|
|
+}
|
|
|
+
|
|
|
+.chat-input-area:focus-within {
|
|
|
+ border-color: var(--ai-color);
|
|
|
+ box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
|
|
|
+ transform: translateY(-2px);
|
|
|
+}
|
|
|
+
|
|
|
+.chat-input {
|
|
|
+ flex: 1;
|
|
|
+ background: transparent;
|
|
|
+ border: none;
|
|
|
+ color: var(--primary-text);
|
|
|
+ font-size: 1rem;
|
|
|
+ resize: none;
|
|
|
+ height: 60px;
|
|
|
+ max-height: 150px;
|
|
|
+ outline: none;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+}
|
|
|
+
|
|
|
+.chat-input::placeholder {
|
|
|
+ color: var(--secondary-text);
|
|
|
+}
|
|
|
+
|
|
|
+.send-btn {
|
|
|
+ background: var(--ai-color);
|
|
|
+ color: white;
|
|
|
+ border: none;
|
|
|
+ width: 50px;
|
|
|
+ height: 50px;
|
|
|
+ border-radius: 50%;
|
|
|
+ cursor: pointer;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ font-size: 1.2rem;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+ align-self: flex-end;
|
|
|
+ box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
|
|
|
+ animation: pulse 2s infinite;
|
|
|
+}
|
|
|
+
|
|
|
+.send-btn:hover {
|
|
|
+ background: #7c3aed;
|
|
|
+ transform: scale(1.05);
|
|
|
+ box-shadow: 0 6px 15px rgba(139, 92, 246, 0.4);
|
|
|
+}
|
|
|
+
|
|
|
+.send-btn:active {
|
|
|
+ transform: scale(0.95);
|
|
|
+}
|
|
|
+
|
|
|
+/* AI功能面板 */
|
|
|
+.ai-features {
|
|
|
+ width: 350px;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 1.5rem;
|
|
|
+}
|
|
|
+
|
|
|
+.feature-card {
|
|
|
+ background: var(--card-bg);
|
|
|
+ border-radius: 16px;
|
|
|
+ border: 1px solid var(--border-color);
|
|
|
+ box-shadow: var(--card-shadow);
|
|
|
+ padding: 1.5rem;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+ transform: translateY(20px);
|
|
|
+ opacity: 0;
|
|
|
+ animation: fadeIn 0.6s forwards;
|
|
|
+}
|
|
|
+
|
|
|
+.feature-card:nth-child(1) { animation-delay: 0.1s; }
|
|
|
+.feature-card:nth-child(2) { animation-delay: 0.2s; }
|
|
|
+.feature-card:nth-child(3) { animation-delay: 0.3s; }
|
|
|
+.feature-card:nth-child(4) { animation-delay: 0.4s; }
|
|
|
+
|
|
|
+.feature-card:hover {
|
|
|
+ transform: translateY(-5px);
|
|
|
+ box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
|
|
|
+ border-color: var(--ai-color);
|
|
|
+}
|
|
|
+
|
|
|
+.feature-header {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 0.8rem;
|
|
|
+ margin-bottom: 1.2rem;
|
|
|
+}
|
|
|
+
|
|
|
+.feature-icon {
|
|
|
+ width: 48px;
|
|
|
+ height: 48px;
|
|
|
+ border-radius: 50%;
|
|
|
+ background: rgba(139, 92, 246, 0.1);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ font-size: 1.5rem;
|
|
|
+ color: var(--ai-color);
|
|
|
+ transition: all 0.3s ease;
|
|
|
+}
|
|
|
+
|
|
|
+.feature-card:hover .feature-icon {
|
|
|
+ transform: rotate(10deg) scale(1.1);
|
|
|
+ background: rgba(139, 92, 246, 0.15);
|
|
|
+}
|
|
|
+
|
|
|
+.feature-title {
|
|
|
+ font-size: 1.25rem;
|
|
|
+ font-weight: 600;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+ color: var(--primary-text);
|
|
|
+}
|
|
|
+
|
|
|
+.feature-card:hover .feature-title {
|
|
|
+ color: var(--ai-color);
|
|
|
+}
|
|
|
+
|
|
|
+.feature-desc {
|
|
|
+ color: var(--secondary-text);
|
|
|
+ margin-bottom: 1.2rem;
|
|
|
+ line-height: 1.6;
|
|
|
+}
|
|
|
+
|
|
|
+.feature-btn {
|
|
|
+ background: rgba(139, 92, 246, 0.1);
|
|
|
+ color: var(--ai-color);
|
|
|
+ border: none;
|
|
|
+ border-radius: 0.75rem;
|
|
|
+ padding: 0.8rem 1.5rem;
|
|
|
+ width: 100%;
|
|
|
+ cursor: pointer;
|
|
|
+ font-weight: 500;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ gap: 0.5rem;
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
|
|
+}
|
|
|
+
|
|
|
+.feature-btn:hover {
|
|
|
+ background: rgba(139, 92, 246, 0.15);
|
|
|
+ transform: translateY(-2px);
|
|
|
+ box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
|
|
|
+}
|
|
|
+
|
|
|
+/* AI分析图表 */
|
|
|
+.ai-chart-container {
|
|
|
+ height: 240px;
|
|
|
+ margin-top: 1rem;
|
|
|
+}
|
|
|
+
|
|
|
+/* 快速命令 */
|
|
|
+.quick-commands {
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: repeat(2, 1fr);
|
|
|
+ gap: 0.8rem;
|
|
|
+ margin-top: 1rem;
|
|
|
+}
|
|
|
+
|
|
|
+.command-btn {
|
|
|
+ background: var(--secondary-bg);
|
|
|
+ border: 1px solid var(--border-color);
|
|
|
+ color: var(--secondary-text);
|
|
|
+ border-radius: 0.75rem;
|
|
|
+ padding: 0.8rem;
|
|
|
+ text-align: left;
|
|
|
+ cursor: pointer;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+ font-size: 0.9rem;
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+.command-btn:hover {
|
|
|
+ color: var(--primary-text);
|
|
|
+ border-color: var(--accent-color);
|
|
|
+ transform: translateY(-3px);
|
|
|
+ box-shadow: 0 4px 10px rgba(67, 97, 238, 0.1);
|
|
|
+}
|
|
|
+
|
|
|
+/* 通知效果 */
|
|
|
+.notification {
|
|
|
+ position: fixed;
|
|
|
+ top: 20px;
|
|
|
+ right: 20px;
|
|
|
+ padding: 15px 25px;
|
|
|
+ border-radius: 12px;
|
|
|
+ background: var(--success-color);
|
|
|
+ color: white;
|
|
|
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
|
|
+ z-index: 2000;
|
|
|
+ transform: translateX(200%);
|
|
|
+ transition: transform 0.4s ease;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 10px;
|
|
|
+}
|
|
|
+
|
|
|
+.notification.show {
|
|
|
+ transform: translateX(0);
|
|
|
+}
|
|
|
+
|
|
|
+.notification.error {
|
|
|
+ background: var(--danger-color);
|
|
|
+}
|
|
|
+
|
|
|
+.notification.warning {
|
|
|
+ background: var(--warning-color);
|
|
|
+}
|
|
|
+
|
|
|
+.notification.info {
|
|
|
+ background: var(--accent-color);
|
|
|
+}
|
|
|
+
|
|
|
+/* 加载动画 */
|
|
|
+.thinking-dots {
|
|
|
+ display: flex;
|
|
|
+ gap: 6px;
|
|
|
+ padding: 8px 0;
|
|
|
+}
|
|
|
+
|
|
|
+.dot {
|
|
|
+ width: 10px;
|
|
|
+ height: 10px;
|
|
|
+ border-radius: 50%;
|
|
|
+ background: var(--ai-color);
|
|
|
+ animation: dotPulse 1.5s infinite ease-in-out;
|
|
|
+}
|
|
|
+
|
|
|
+.dot:nth-child(1) { animation-delay: 0s; }
|
|
|
+.dot:nth-child(2) { animation-delay: 0.2s; }
|
|
|
+.dot:nth-child(3) { animation-delay: 0.4s; }
|
|
|
+
|
|
|
+@keyframes dotPulse {
|
|
|
+ 0%, 100% { transform: translateY(0); opacity: 0.5; }
|
|
|
+ 50% { transform: translateY(-8px); opacity: 1; }
|
|
|
+}
|
|
|
+
|
|
|
+/* 响应式设计 */
|
|
|
+@media (max-width: 1200px) {
|
|
|
+ .ai-features {
|
|
|
+ width: 300px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .chat-history {
|
|
|
+ width: 240px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@media (max-width: 992px) {
|
|
|
+ .main-container {
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+
|
|
|
+ .ai-features {
|
|
|
+ width: 100%;
|
|
|
+ flex-direction: row;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ }
|
|
|
+
|
|
|
+ .feature-card {
|
|
|
+ flex: 1;
|
|
|
+ min-width: 300px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@media (max-width: 768px) {
|
|
|
+ .chat-history {
|
|
|
+ width: 200px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .message {
|
|
|
+ max-width: 90%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .feature-card {
|
|
|
+ min-width: 100%;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@media (max-width: 576px) {
|
|
|
+ .chat-history {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .history-header {
|
|
|
+ padding: 0.8rem;
|
|
|
+ }
|
|
|
+
|
|
|
+ .new-chat-btn span {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+}
|