 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            max-width: 80%;
            margin: 0 auto;
            padding: 20px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        header {
            text-align: center;
            padding: 20px 0;
            border-bottom: 1px solid #eee;
        }
        
        header h1 {
            color: #2c3e50;
            margin-bottom: 10px;
        }
        
        header p {
            color: #666;
        }
        
        /* 聊天界面样式 */
        .chat-container {
            display: flex;
            flex-direction: column;
            height: 600px;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            overflow: hidden;
            margin-top: 20px;
        }
        
        .chat-header {
            padding: 15px 20px;
            background-color: #166188;
            color: white;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background-color: #f9f9f9;
            display: flex;
            flex-direction: column;
        }
        
        .message {
            max-width: 70%;
            margin-bottom: 15px;
            padding: 10px 15px;
            border-radius: 18px;
            line-height: 1.4;
        }
        
        .message.user {
            background-color: #e9e9eb;
            color: #333;
            align-self: flex-end;
            border-bottom-right-radius: 4px;
        }
        
        .message.ai {
            background-color: #004652;
            color: #fff;
            align-self: flex-start;
            border-bottom-left-radius: 4px;
        }
        
        .message .time {
            font-size: 11px;
            margin-top: 5px;
            opacity: 0.7;
            text-align: right;
        }
        
        .chat-input-area {
            display: flex;
            padding: 15px;
            background-color: #f0f0f0;
            border-top: 1px solid #eee;
        }
        
        .chat-input {
            flex: 1;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 25px;
            font-size: 16px;
            margin-right: 10px;
            resize: none;
            height: 50px;
        }
        
        .chat-input:focus {
            outline: none;
            border-color: #3498db;
        }
        
        .send-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #166188;
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s;
        }
        
        .send-btn:hover {
            background-color: #2980b9;
        }
        
        .loading {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            align-self: flex-start;
        }
        
        .loading-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #666;
            margin: 0 3px;
            animation: bounce 1.4s infinite ease-in-out both;
        }
        
        .loading-dot:nth-child(1) {
            animation-delay: -0.32s;
        }
        
        .loading-dot:nth-child(2) {
            animation-delay: -0.16s;
        }
        
        @keyframes bounce {
            0%, 80%, 100% {
                transform: scale(0);
            }
            40% {
                transform: scale(1);
            }
        }
        
        /* 响应式设计 */
        @media (max-width: 600px) {
            .container {
                padding: 10px;
            }
            
            .message {
                max-width: 85%;
            }
        }

        /* 自动识别的链接样式 */
        .auto-link {
            text-decoration: underline;
            transition: color 0.2s;
        }

        /* 网址链接样式 */
        .url-link {
            color: #2563eb; /* 蓝色 - 区分网址 */
        }

        .url-link:hover {
            color: #1d4ed8;
        }

        /* 电话链接样式 */
        .phone-link {
            color: #10b981; /* 绿色 - 区分电话 */
        }

        .phone-link:hover {
            color: #059669;
        }

        /* 邮箱链接样式 */
        .email-link {
            color: #f97316; /* 橙色 - 区分邮箱 */
        }

        .email-link:hover {
            color: #ea580c;
        }

        /* 移除链接在点击后的默认样式 */
        .auto-link:visited {
            color: inherit;
        }

        /* 历史记录相关样式 */
        .history-btn {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            margin-right: 10px;
        }

        .history-panel {
            position: fixed;
            top: 0;
            right: 0;
            width: 300px;
            height: 100%;
            background-color: white;
            box-shadow: -2px 0 10px rgba(0,0,0,0.1);
            transform: translateX(100%);
            transition: transform 0.3s ease;
            z-index: 1000;
            padding: 20px;
            overflow-y: auto;
        }

        .history-panel.active {
            transform: translateX(0);
        }

        .history-item {
            padding: 10px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .history-item:hover {
            background-color: #f5f5f5;
        }

        .history-item .text {
            font-size: 14px;
            color: #333;
        }

        .history-item .time {
            font-size: 12px;
            color: #999;
            margin-top: 5px;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 999;
            display: none;
        }