/*切换part导航条*/
.part-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px 0;
}

.part-nav-item {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(145deg, #e0f2e9, #f0f0f0);
    color: #2e8b57;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(46,139,87,0.1);
}

.part-nav-item:hover {
    background: linear-gradient(145deg, #f0f0f0, #e0f2e9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46,139,87,0.2);
}

.part-nav-item.active {
    background: linear-gradient(145deg, #2e8b57, #3da76d);
    color: white;
    box-shadow: 0 4px 12px rgba(46,139,87,0.3);
}

/*主体显示框*/
.chat-container {
    height: 500px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    max-width: 80%;
}

.bot-message {
    background-color: #f0f0f0;
    margin-right: auto;
}

.user-message {
    background-color: #007bff;
    color: white;
    margin-left: auto;
}

.loading {
    font-style: italic;
    color: #666;
}

.input-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/*题库问题选择框*/
.question-input-container {
    position: relative;
}

#question-input,
#user-data-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.question-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}
.question-dropdown::-webkit-scrollbar {
    height: 12px;
}

.question-dropdown::-webkit-scrollbar-track {
    background: #e0f2e9;
    border-radius: 4px;
}

.question-dropdown::-webkit-scrollbar-thumb {
    background-color: #2e8b57;
    border-radius: 4px;
    border: 2px solid #e0f2e9;
}

.question-dropdown::-webkit-scrollbar-thumb:hover {
    background-color: #246b43;
}

.question-option {
    padding: 8px;
    cursor: pointer;
}

.question-option:hover {
    background-color: #f0f0f0;
}
/*输入框与开始按钮*/
.start-button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.start-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.input-area {
    margin-top: 20px;
}

#user-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}
