     * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }

        body {
            display: flex;
            flex-direction: column;
            height: 100vh;
           
            background-color: #f5f7fa;
        }
        
        a:link,a:visited,a:active {color:#000000;text-decoration:none;}
        a:hover {color:#FF6600;}
        a.b:link,a.b:visited,a.b:active {color:#0067B8;text-decoration:none;}
        a.b:hover {color:#FF6600;text-decoration:none;}
        a.g:link,a.g:visited,a.g:active {color:#000000;text-decoration:none;}
        a.g:hover {color:#FF6600;}
        a.w:link,a.w:visited,a.w:active,a.w:hover {color:#FFFFFF;text-decoration:none;}

        /* 顶部导航栏 - 手机版显示 */
        .mobile-header {
            display: none;
            background: white;
            padding: 15px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            z-index: 100;
            align-items: center;
            justify-content: space-between;
        }

        .mobile-header .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 20px;
            font-weight: 700;
            color: #3498db;
        }

        .mobile-header .mobile-menu-btn {
            font-size: 24px;
            color: #2c3e50;
            cursor: pointer;
        }

        /* 侧边栏样式 */
        .sidebar {
            width: 260px;
            background: #f0f2f5;
            display: flex;
            flex-direction: column;
            border-right: 1px solid #e0e5ec;
            z-index: 10;
            position: relative;
            height: 100%;
            transition: transform 0.3s ease;
        }

        .logo-area {
            padding: 10px;
            text-align: center;
            border-bottom: 1px solid #e0e5ec;
        }

        .logo {
            font-size: 24px;
            font-weight: 700;
            color: #3498db;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .menu {
            padding: 10px 0;
        }

        .menu-item {
            padding: 8px 25px;
            margin: 5px 10px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s ease;
            color: #2c3e50;
            position: relative;
        }

        .menu-item:hover {
            background: rgba(52, 152, 219, 0.1);
            color: #3498db;
        }

        .menu-item.active {
            background: rgba(52, 152, 219, 0.15);
            color: #3498db;
        }

        .menu-item i {
            font-size: 18px;
            width: 24px;
            text-align: center;
        }

        .menu-item span {
            font-size: 15px;
			color:#2c3e50;
			text-decoration: none;
        }
		
		.menu-item a  {
		    color:#2c3e50;
			text-decoration: none;
		}

        .menu-item .new-chat {
            position: absolute;
            right: 15px;
            color: #7f8c8d;
            transition: all 0.3s;
        }

        .menu-item .new-chat:hover {
            color: #3498db;
            transform: scale(1.1);
        }

        .divider {
            height: 1px;
            background: #e0e5ec;
            margin: 10px 20px 15px 20px;
        }

        .history-title {
            padding: 10px 25px;
            font-size: 13px;
            color: #7f8c8d;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .history-title i {
            cursor: pointer;
            transition: all 0.3s;
        }

        .history-title i:hover {
            color: #3498db;
        }

        .history-list {
            flex: 1;
            overflow-y: auto;
            padding: 0 10px;
        }

        .history-item {
            padding: 12px 10px;
            margin: 5px 10px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            transition: all 0.3s ease;
            color: #2c3e50;
        }

        .history-item:hover {
            background: rgba(52, 152, 219, 0.1);
        }

        .history-item.active {
            background: rgba(52, 152, 219, 0.15);
            color: #3498db;
        }

        .history-item i {
            font-size: 14px;
            color: #7f8c8d;
        }

        .history-item .content {
            flex: 1;
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .history-item .time {
            font-size: 12px;
            color: #95a5a6;
        }

     /* 滚动容器基础样式：始终保留滚动条宽度，避免抖动 */
    .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        background: white; /* 背景色设为白色（与滚动条轨道同色） */
        position: relative;
     /*   height: 100%;  */
        overflow-y: auto; /* 始终显示滚动条轨道（占位） */
        
        /* 关键：固定滚动条宽度，避免显示/隐藏时宽度变化 */
        scrollbar-width: thin; /* Firefox：固定窄滚动条宽度 */
        scrollbar-color: rgba(120, 120, 120, 0) white; /* 默认：滑块透明，轨道白色（视觉隐藏） */
    }
    
    /* WebKit浏览器（Chrome/Safari）：固定滚动条宽度 */
    .main-content::-webkit-scrollbar {
        width: 6px; /* 固定宽度（关键：避免抖动） */
        height: 6px;
    }
    .main-content::-webkit-scrollbar-track {
        background: white; /* 轨道与背景同色（白色） */
    }
    .main-content::-webkit-scrollbar-thumb {
        background-color: rgba(120, 120, 120, 0); /* 默认：滑块透明（视觉隐藏） */
        border-radius: 3px;
        transition: background-color 0.3s ease; /* 淡入淡出过渡 */
    }
    
    /* 滚动时：显示淡色滚动条 */
    .main-content.scrolling {
        scrollbar-color: rgba(120, 120, 120, 0.2) white; /* Firefox：滑块淡色 */
    }
    .main-content.scrolling::-webkit-scrollbar-thumb {
        background-color: rgba(120, 120, 120, 0.2); /* WebKit：滑块淡色 */
    }
    
    /* 鼠标悬停在滚动条上时：略微加深（增强交互感） */
    .main-content::-webkit-scrollbar-thumb:hover {
        background-color: rgba(120, 120, 120, 0.4);
    }


  

        .user-info1 {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            position: relative;
        }
		.user-info1 span{font-size: 14px; }
        .user-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: linear-gradient(45deg, #3498db, #8e44ad);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 16px;
        }

        .user-details {
            display: none;
        }

        .user-menu {
            position: absolute;
            top: 50px;
            right: 0;
            width: 150px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            padding: 10px 0;
            z-index: 100;
            display: none;
        }

        .user-menu-item {
            padding: 10px 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .user-menu-item:hover {
            background: #f5f7fa;
        }

        .user-menu-item i {
            width: 20px;
            color: #7f8c8d;
        }

        /* 右下角内容区域 */
        .content-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .content-container {
            display: flex;
            flex: 1;
            height: 100%;
            overflow: hidden;
        }

        .welcome-screen {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            padding: 20px;
            text-align: center;
            max-width: 880px;
            margin: 0 auto;
            width: 90%;
        }

        .welcome-title {
            font-size: 32px;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 15px;
        }

        .welcome-subtitle {
            font-size: 18px;
            color: #7f8c8d;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .search-container {
            width: 100%;
            position: relative;
            margin-bottom: 30px;
        }

        .search-input {
            width: 100%;
            padding: 16px 20px;
            border-radius: 15px;
            border: 1px solid #e0e5ec;
            font-size: 16px;
            outline: none;
            transition: all 0.3s;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            min-height: 100px;
            resize: vertical;
            line-height: 1.5;
        }

        .search-input:focus {
            border-color: #3498db;
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
        }

        .send-btn {
            position: absolute;
            right: 15px;
            bottom: 15px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #e0e5ec;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
        }

        .send-btn.active {
            background: #3498db;
            color: white;
        }

        .send-btn i {
            font-size: 18px;
            color: #95a5a6;
            transition: color 0.3s;
        }

        .send-btn.active i {
            color: white;
        }

        /* 常见问题样式 - 两列布局 */
        .common-questions {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .questions-title {
            font-size: 18px;
            color: #2c3e50;
            margin-bottom: 10px;
            text-align: left;
            width: 100%;
            grid-column: span 2;
            padding-left: 5px;
        }

        .question-item {
            padding: 15px 20px;
            border-radius: 12px;
            background: #f8fafc;
            border: 1px solid #e0e5ec;
            transition: all 0.3s;
            cursor: pointer;
            text-align: left;
            font-size: 16px;
            color: #2c3e50;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .question-item:hover {
            background: rgba(52, 152, 219, 0.1);
            border-color: #3498db;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        }

        .question-item i {
            color: #3498db;
            font-size: 14px;
            flex-shrink: 0;
        }
		.unlogin{
			width: 56px;
			    height: 30px;
			    background: linear-gradient(45deg, #3498db, #8e44ad);
				border-radius: 10%;
			    display: flex;
			    align-items: center;
			    justify-content: center;
			    color: white;
			    font-size: 16px;
		}

        /* 版权信息 */
        .footer {
            padding: 20px;
            text-align: center;
            color: #7f8c8d;
            font-size: 14px;

        }

        .footer a {
            color: #7f8c8d;
            text-decoration: none;
        }

        .footer a:hover {
            text-decoration: underline;
        }

        /* 响应式设计 - 手机版优化 */
        @media (max-width: 768px) {
            body {
                flex-direction: column;
            }
            
            .mobile-header {
                display: flex;
            }
            
            .sidebar {
                position: fixed;
                top: 0;
                left: 0;
                height: 100%;
                width: 260px;
                transform: translateX(-100%);
                z-index: 1000;
                box-shadow: 3px 0 15px rgba(0, 0, 0, 0.2);
            }
            
            .sidebar.active {
                transform: translateX(0);
            }
            
            .content-container {
                flex-direction: column;
            }
            
    
            
            .welcome-title {
                font-size: 24px;
            }
            
            .welcome-subtitle {
                font-size: 16px;
            }
            
            .common-questions {
                grid-template-columns: 1fr;
            }
            
            .questions-title {
                grid-column: span 1;
            }
            
            .user-menu {
                width: calc(100% - 30px);
                top: 50px;
            }
        }

        @media (max-width: 480px) {
            .welcome-title {
                font-size: 22px;
            }
            
            .welcome-subtitle {
                font-size: 14px;
            }
            
            .search-input {
                padding: 12px 15px;
                font-size: 14px;
                min-height: 80px;
            }
            
            .question-item {
                padding: 12px 15px;
                font-size: 14px;
            }
            
            .footer {
                font-size: 12px;
                padding: 15px 10px;
            }
        }

        /* 遮罩层 */
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }
        
        /* 提示信息 */
        .input-hint {
            font-size: 13px;
            color: #95a5a6;
            margin-top: 8px;
            text-align: right;
            width: 100%;
        }
		
	.logo {
	    /* 基础布局 */
	    display: inline-block;
	    position: relative;
	    padding: 8px 0;
	}
	
	.logo a {
	    /* 链接样式重置 */
	    text-decoration: none;
	    color: #2c3e50; /* 主色调：深灰蓝，专业感 */
	    display: inline-block;
	}
	
	.logo span {
	    /* 文字核心样式 */
	    font-size: 24px;
	    font-weight: 700;
	    font-family: "Microsoft YaHei", "Helvetica Neue", sans-serif;
	    letter-spacing: 0.5px;
	    text-transform: uppercase; /* 大写转换，增强力量感 */
	    position: relative;
	    padding: 0 5px;
	    transition: all 0.3s ease;
	    
	    /* 文字阴影增强质感 */
	    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
	}
	
	/* 装饰元素：底部线条动画 */
	.logo span::after {
	    content: '';
	    position: absolute;
	    bottom: -4px;
	    left: 0;
	    width: 0;
	    height: 3px;
	    background: #3498db; /* 强调色：亮蓝 */
	    transition: width 0.3s ease;
	    border-radius: 2px;
	}
	
	/* 悬停效果 */
	.logo a:hover span {
	    color: #3498db;
	    transform: translateY(-2px); /* 轻微上浮 */
	}
	
	.logo a:hover span::after {
	    width: 100%; /* 线条展开 */
	}
	
	/* 响应式调整 */
	@media (max-width: 768px) {
	    .logo span {
	        font-size: 20px;
	    }
	}
	
	
	
	
	
	
	/* 在您的CSS开头添加 */
*,
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
   
  :root {
	  --product-card-width: 220px;
	  --product-gap: 15px;
	  --product-thumb-height: 120px;
  }
  

  
  .product-thumb {
	  height: var(--product-thumb-height) !important;
  }

    






        .search-container {
            width: 100%;
            position: relative;
            margin-bottom: 20px;
        }

        .search-input {
            width: 100%;
            padding: 16px 20px 16px 50px;
            border-radius: 30px;
            border: 1px solid #e0e5ec;
            font-size: 16px;
            outline: none;
            transition: all 0.3s;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        }

        .search-input:focus {
            border-color: #3498db;
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
        }

        .search-icon {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #95a5a6;
            font-size: 20px;
        }

        .features {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            width: 100%;
        }

        .feature-card {
            width: calc(50% - 20px);
            padding: 20px;
            border-radius: 16px;
            background: #f8fafc;
            border: 1px solid #e0e5ec;
            transition: all 0.3s;
            cursor: pointer;
        }

        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        }

        .feature-card i {
            font-size: 24px;
            color: #3498db;
            margin-bottom: 15px;
        }

        .feature-card h3 {
            font-size: 18px;
            color: #2c3e50;
            margin-bottom: 10px;
        }

        .feature-card p {
            font-size: 14px;
            color: #7f8c8d;
            line-height: 1.5;
        }

        /* 聊天区域 */
        .chat-container {
            display: flex;
            flex-direction: column;
            flex: 1;   	

			align-items: center;
			justify-content: center;
			height: 100%;
			padding: 20px;
			text-align: center;
			max-width: 1000px;
			margin: 0 auto;
			width: 90%;
			overflow: hidden; /* 防止内部元素撑开容器 */	
        }


.products-grid {
    width: 100%;
    overflow: hidden;
    margin: 15px 0;
    position: relative; /* 新增：为导航箭头提供定位上下文 */
}


.param-suggestions {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
}
.suggestion {
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 4px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 0.9em;
}
.suggestion:hover {
    background: #0d6efd;
    color: white;
}

        .chat-header {
            padding: 15px 20px;
            background: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
            z-index: 5;
        }

        .back-button {
            margin-right: 15px;
            font-size: 20px;
            cursor: pointer;
            display: none;
        }

        .chat-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: linear-gradient(45deg, #e74c3c, #e67e22);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: white;
            margin-right: 15px;
        }

        .chat-info h3 {
            font-size: 18px;
            color: #2c3e50;
            margin-bottom: 3px;
        }

        .chat-info p {
            font-size: 13px;
            color: #7f8c8d;
        }

        .chat-actions {
            margin-left: auto;
            display: flex;
            gap: 15px;
        }

        .chat-actions i {
            font-size: 18px;
            color: #7f8c8d;
            cursor: pointer;
            transition: color 0.3s;
        }

        .chat-actions i:hover {
            color: #3498db;
        }

        /* 聊天消息区域 */
        .chat-messages {
			width:100%;
            flex: 1;
            padding: 15px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 15px;
			scrollbar-width: none; /* Firefox */
			-ms-overflow-style: none; /* IE 和 Edge */
        }
		/* Chrome, Safari, Opera等Webkit浏览器 */
		.chat-messages::-webkit-scrollbar {
			display: none;
		}
        .message {
            max-width: 95%;
            padding: 12px 16px;
            border-radius: 18px;
            position: relative;
            animation: fadeIn 0.4s ease;
            line-height: 1.5;
   /*         box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);  */
			
	
	
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .incoming {
            background: white;
     /*       border-top-left-radius: 5px; */
            align-self: flex-start;
         /*   border: 1px solid #eee;  */
			/* 添加以下关键属性 */
			width: 100% !important; /* 确保宽度100% */
		
			overflow: visible !important; /* 允许内部滚动 */
			text-align: left;
        }

        .outgoing {
            background: linear-gradient(90deg, #3498db, #2980b9);
            color: white;
            border-top-right-radius: 5px;
            align-self: flex-end;
        }

        .message-time {
            font-size: 10px;
            margin-top: 6px;
            opacity: 0.7;
            text-align: right;
        }

        /* 输入区域 */
        .input-area {
            padding: 15px;
            background: white;
            border-top: 1px solid #e0e7ee;
            display: flex;
            gap: 10px;
        }

        .message-input {
            flex: 1;
            padding: 12px 18px;
            border-radius: 24px;
            border: 1px solid #e0e7ee;
            font-size: 15px;
            outline: none;
            transition: border 0.3s;
            resize: none;
            height: 45px;
            max-height: 100px;
        }

        .message-input:focus {
            border-color: #3498db;
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        }

        .action-buttons {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .action-button {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: #f0f4f8;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #7f8c8d;
            font-size: 18px;
            transition: all 0.3s ease;
        }

        .action-button:hover {
            background: #3498db;
            color: white;
            transform: scale(1.05);
        }

        .send-button {
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
            box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
        }

        .send-button:hover {
            background: linear-gradient(135deg, #2980b9, #3498db);
            transform: scale(1.05);
        }

		.search-container {
            width: 100%;
            position: relative;
            margin-bottom: 10px;
            flex-shrink: 0; /* 关键：禁止输入框被压缩 */
        }

        .search-input {
            width: 100%;
            padding: 16px 20px;
            border-radius: 15px;
            border: 1px solid #e0e5ec;
            font-size: 16px;
            outline: none;
            transition: all 0.3s;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            min-height: 100px;
            resize: vertical;
            line-height: 1.5;
        }

        .search-input:focus {
            border-color: #3498db;
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
        }

	
       
        /* 提示信息 */
        .input-hint {
            font-size: 13px;
            color: #ddd;
            margin-top: 8px;
            text-align: right;
            width: 100%;
        }

        /* 响应式设计 - 手机版优化 */
        @media (max-width: 768px) {
            body {
                flex-direction: column;
            }
            
            .mobile-header {
                display: flex;
            }
            
            .sidebar {
                position: fixed;
                top: 0;
                left: 0;
                height: 100%;
                width: 260px;
                transform: translateX(-100%);
                z-index: 1000;
                box-shadow: 3px 0 15px rgba(0, 0, 0, 0.2);
            }
            
            .sidebar.active {
                transform: translateX(0);
            }
            
            .content-container {
                flex-direction: column;
            }
            

            
            .back-button {
                display: block;
            }
            
            .welcome-title {
                font-size: 24px;
            }
            
            .welcome-subtitle {
                font-size: 16px;
            }
            
            .feature-card {
                width: 100%;
            }
            
            .chat-actions {
                gap: 12px;
            }
            
            .user-menu {
                width: calc(100% - 30px);
                top: 50px;
            }
        }

        @media (max-width: 480px) {
            .welcome-icon {
                width: 60px;
                height: 60px;
                font-size: 24px;
            }
            
            .welcome-title {
                font-size: 20px;
            }
            
            .welcome-subtitle {
                font-size: 14px;
            }
            
            .search-input {
                padding: 12px 15px 12px 40px;
                font-size: 14px;
            }
            
            .search-icon {
                left: 15px;
                font-size: 16px;
            }
            
            .feature-card {
                padding: 15px;
            }
            
            .feature-card i {
                font-size: 20px;
            }
            
            .feature-card h3 {
                font-size: 16px;
            }
            
            .feature-card p {
                font-size: 13px;
            }
            
            .message {
                max-width: 90%;
                padding: 10px 14px;
            }
            
            .input-area {
                padding: 10px;
            }
            
            .action-button {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
        }


/* 响应式调整 - 在小屏幕上每行显示 fewer 产品 */
@media (max-width: 1024px) {
    .product-card {
        min-width: calc(33.333% - 10px);
        flex: 0 0 calc(33.333% - 10px);
    }
}
@media (max-width: 768px) {
    .product-card {
        min-width: calc(50% - 7.5px);
        flex: 0 0 calc(50% - 7.5px);
    }
}

@media (max-width: 480px) {
    .product-card {
        min-width: 100%;
        flex: 0 0 100%;
    }
}

/* 产品图片显示样式 */



.products-container {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    gap: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* 美化滚动条 */
}

/* 针对WebKit内核浏览器（Chrome、Safari等） */
.products-container::-webkit-scrollbar {
    display: none; /* 隐藏滚动条 */
}

/* 针对IE、Edge浏览器 */
.products-container {
    -ms-overflow-style: none; /* 隐藏滚动条 */
}

/* 针对Firefox浏览器 */
.products-container {
    scrollbar-width: none; /* 隐藏滚动条 */
}


.products-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}
.products-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* 产品卡片样式 */
.product-card {
    min-width: calc(25% - 12px); /* 每行4个产品，减去间距 */
    flex: 0 0 calc(25% - 12px);
    box-sizing: border-box;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-1px);
  /*  box-shadow: 0 5px 15px rgba(0,0,0,0.1); */
    border-color: #0d6efd;
}

.product-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.product-card h4 {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
    height: 40px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    min-height: 40px !important;
}

.price {
    color: #d32f2f;
    font-weight: bold;
    margin: 5px 0;
    font-size: 16px;
}

.view-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
    width: 100%;
    text-align: center;
}

.view-btn:hover {
    background: #0b5ed7;
    color: white;
}

/* 导航箭头 */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 10;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.nav-arrow:hover {
   opacity: 1 !important;
    background: #0d6efd !important;
    color: white !important;
}

.nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-left {
    left: 5px;
}

.nav-right {
    right: 5px;
}

/* 当产品不足8个时隐藏箭头 */
.products-grid.has-4-products .nav-right,
.products-grid.has-4-products .nav-left {
    display: none;
}

/* 高亮当前选中产品 */
.product-card.highlighted {
  /*  border: 1px solid #0d6efd;  */
    padding: 5px;
}

/* 处理中消息的特殊样式 */
.message.processing-message {
    background: linear-gradient(90deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    border: 1px dashed #dee2e6;
    width: fit-content; /* 根据内容自适应 */
    max-width: 300px; /* 最大宽度限制 */
    min-width: 120px; /* 最小宽度 */
    align-self: flex-start;
    padding: 12px 16px;
    border-radius: 18px;
    border-top-left-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.message.processing-message .message-time {
    font-size: 10px;
    margin-top: 6px;
    opacity: 0.7;
    text-align: right;
}
.message.processing-message p {
    font-style: italic;
    opacity: 0.8;
    white-space: nowrap; /* 防止换行 */
    margin: 0;
}

/* 添加闪烁动画效果 */
.message.processing-message p::after {
    content: '';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { content: ''; }
    50% { content: '...'; }
}

/* 遮罩层 */
.overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
}



 .lmember {
    padding: 10px 0px;
  
 } 

/* 修改后：右下角两行式会员信息模块（贴合页面原有风格） */
.member-info {
  /* 固定定位：右下角，不遮挡版权栏 */
  
  
 border-top:1px solid #e0e5ec;;
  padding: 12px 16px;
  
  /* 纵向排列两行内容 */
  display: flex;
  flex-direction: column;
  gap: 10px; /* 两行之间的间距 */
  
  /* 文字基础样式（匹配页面正文） */
  font-size: 14px;
  color: #2c3e50; /* 页面主文字色 */
}

/* 每行内容横向排列 */
.member-row {
  display: flex;
  align-items: center;
 
}

/* 第一行：调整升级按钮位置（右对齐） */
.first-row {
 
}

.member-name{padding-left:5px;}

/* 会员头像（匹配右上角用户头像风格） */
.member-avatar .fas {
  font-size: 24px; /* 与.user-avatar大小协调 */
  color: #3498db; /* 页面主蓝色（匹配logo、按钮色） */
}

/* 会员级别（突出显示，匹配原有VIP色） */
.member-level {
  font-weight: 600;
  color: #f59e0b; /* 页面橙色（用于强调信息） */
}

/* 升级按钮（贴合页面按钮风格，匹配.send-btn/.view-btn） */
.member-upgrade {
  padding: 4px 10px;
  background-color: #3498db;
  color: #fff;
  border-radius: 4px; /* 同.view-btn圆角 */
  font-size: 13px;
  cursor: pointer;
  transition: background 0.3s; /*  hover过渡效果 */
}
.member-upgrade:hover {
  background-color: #2980b9; /* 按钮hover深色（匹配.send-button:hover） */
}

/* 第二行：图标样式（匹配页面其他辅助图标） */
.member-icon {
  font-size: 14px;
  color: #7f8c8d; /* 页面辅助文字色（匹配.history-item i） */
}

/* 响应式调整（小屏幕不遮挡内容，匹配页面移动端逻辑） */
@media (max-width: 768px) {
  .member-info {
    padding: 10px 12px;
    gap: 8px;
    font-size: 13px;
  }
  .member-row {
    gap: 8px;
  }
  .member-avatar .fas {
    font-size: 20px;
  }
}




       /* 知识库分类导航 */
        .knowledge-nav {
            display: flex;
            gap: 10px;
          
            flex-wrap: wrap;
            padding: 10px;
    
            border-radius: 8px;
            max-width: 880px;
            margin: 0 auto;
        }
        
        .knowledge-nav-item {
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
          
            color: #475569;
            font-size: 14px;
            border: 1px solid #cbd5e1;
        }
        
        .knowledge-nav-item.active {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border-color: #667eea;
        }
        
        .knowledge-nav-item:hover {
            background: #f1f5f9;
        }
        
        .knowledge-nav-item.active:hover {
            background: linear-gradient(135deg, #5a6fd8, #6a4190);
        }

        /* 知识库展示区域 */
        .knowledge-section {
            margin-top: 3px;
        }
        
        .section-title {
            font-size: 20px;
            font-weight: 600;
            color: #333;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        /* 修改换一批按钮样式 */
        .refresh-btn {
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 8px 16px;
            cursor: pointer;
            font-size: 14px;
            color: #475569;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .refresh-btn:hover {
            background: #e2e8f0;
            color: #334155;
        }

        /* 企业知识库 - 左右结构 */
        .company-knowledge {
            margin-bottom: 30px;
         
            padding: 20px;
            border-radius: 12px;
            max-width: 880px;
            margin: 0 auto 20px
            
        }
        
        .company-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .company-card {
            border: 1px solid #e5e7eb;
            
            border-radius: 12px;
            padding: 20px;
            background-color: #ffffff;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        .company-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
            border-color: #667eea;
        }
        
        .company-logo {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: white;
        }
        
        .company-info {
            flex: 1;
        }
        
        .company-name {
            font-weight: 500;
            margin-bottom: 8px;
            color: #333;
            font-size: 16px;
        }
        
        .company-stats {
            display: flex;
            gap: 15px;
            font-size: 13px;
            color: #666;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }