/* 快捷入口样式 */
.quick-access {
    margin-top: 20px;
}

.quick-item {
    display: block;
    text-decoration: none;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.quick-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.quick-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.quick-item span {
    display: block;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.hot-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4757;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* 问题分类导航 */
.faq-categories {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-pills .nav-link {
    color: #333 !important;
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-pills .nav-link:hover {
    background: #f8f9fa;
    color: var(--primary-color) !important;
}

.nav-pills .nav-link.active {
    background: var(--primary-color) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.2);
}

/* 搜索框样式 */
.search-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-box .form-control {
    height: 50px;
    border-radius: 25px;
    padding-left: 20px;
    font-size: 16px;
    border: 2px solid #eee;
}

.search-box .btn {
    border-radius: 25px;
    padding: 0 30px;
    height: 50px;
    font-size: 16px;
    margin-left: 10px;
}

/* 热门问题列表 */
.hot-questions {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-title {
    color: #333;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.question-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.question-item:last-child {
    border-bottom: none;
}

.question-item:hover {
    background: rgba(26, 35, 126, 0.05);
}

.question-item i:first-child {
    color: var(--primary-color);
    font-size: 20px;
    margin-right: 15px;
    margin-top: 3px;
}

.question-content {
    flex: 1;
    padding-right: 15px;
}

.question-text {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.answer-text {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    padding: 10px 0;
    margin-top: 5px;
}

.question-item i:last-child {
    color: #999;
    font-size: 14px;
    margin-top: 3px;
    transition: transform 0.3s ease;
}

.question-item.active i:last-child {
    transform: rotate(90deg);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .quick-item {
        padding: 15px;
    }

    .quick-icon {
        font-size: 24px;
    }

    .quick-item span {
        font-size: 14px;
    }

    .faq-categories .nav-link {
        padding: 6px 12px;
        margin: 0 2px;
        font-size: 14px;
    }

    .search-box .form-control,
    .search-box .btn {
        height: 40px;
        font-size: 14px;
    }

    .question-item {
        padding: 12px;
    }

    .question-text {
        font-size: 15px;
    }

    .answer-text {
        font-size: 13px;
    }
}

/* 输入指示器样式 */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #90949c;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 消息文本样式优化 */
.message-text {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}

/* 打字机效果光标 */
.message-text.typing::after {
    content: '|';
    display: inline-block;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* 聊天界面整体样式 */
.chat-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    min-height: calc(100vh - 60px);
}

.chat-header {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chat-header h1 {
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
}

.chat-header h1 i {
    margin-right: 10px;
    font-size: 28px;
}

/* 消息容器样式 */
#messageContainer {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    height: calc(100vh - 280px);
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 消息样式 */
.message {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-content {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 15px;
    position: relative;
}

.user-message {
    display: flex;
    justify-content: flex-end;
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.ai-message .message-content {
    background: #f0f2f5;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

/* 输入区域样式 */
.input-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 10px;
}

#messageInput {
    flex: 1;
    border: 2px solid #eee;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#messageInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
    outline: none;
}

#sendButton {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#sendButton:hover {
    background: #3949ab;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.2);
}

#sendButton i {
    font-size: 18px;
}

/* 输入指示器样式优化 */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(144, 148, 156, 0.1);
    border-radius: 15px;
    width: fit-content;
    margin-top: 8px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .chat-container {
        padding: 10px;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-header h1 {
        font-size: 20px;
    }
    
    .message-content {
        max-width: 90%;
        padding: 12px 15px;
    }
    
    #messageInput {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    #sendButton {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 滚动条美化 */
#messageContainer::-webkit-scrollbar {
    width: 8px;
}

#messageContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#messageContainer::-webkit-scrollbar-thumb {
    background: #c5cae9;
    border-radius: 4px;
}

#messageContainer::-webkit-scrollbar-thumb:hover {
    background: #9fa8da;
} 