* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

h2 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

h3 {
    color: #555;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fafafa;
}

.import-container, .voice-input-container, .export-container {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="file"] {
    margin-bottom: 10px;
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.student-list-container {
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: white;
}

#student-list {
    list-style-type: none;
}

#student-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delete-student-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-left: 10px;
}

.delete-student-btn:hover {
    background-color: #c0392b;
}

.status-indicator {
    margin-top: 10px;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 4px;
    text-align: center;
}

#recording-status {
    font-weight: bold;
}

.recognized-text {
    margin-top: 15px;
    padding: 10px;
    background-color: #ecf0f1;
    border-radius: 4px;
    min-height: 50px;
}

.grading-table-container {
    margin-bottom: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #3498db;
    color: white;
}

tbody tr:hover {
    background-color: #f5f5f5;
}

.delete-btn {
    background-color: #e74c3c;
    padding: 5px 10px;
    font-size: 14px;
}

.delete-btn:hover {
    background-color: #c0392b;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .section {
        padding: 15px;
    }
    
    button {
        width: 100%;
        margin-bottom: 10px;
    }
}

.manual-add-container {
    display: flex;
    margin-bottom: 10px;
}

.manual-add-container input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

.manual-add-container button {
    padding: 8px 15px;
}

.manual-input-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.manual-grade-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.manual-grade-form select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1;
    min-width: 150px;
}

.manual-grade-form button {
    padding: 8px 15px;
}

.match-info {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    font-size: 14px;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* 学生选择对话框样式 */
.selection-dialog-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.selection-dialog {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.selection-dialog h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.selection-student-list {
    list-style: none;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.selection-student-list li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.selection-student-list li:hover {
    background-color: #f0f7ff;
}

.selection-dialog button {
    margin-top: 10px;
    display: block;
    width: 100%;
}

/* 调试面板样式 */
.debug-panel {
    margin-top: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f8f8;
}

.debug-header {
    padding: 10px;
    background-color: #eee;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.debug-header h3 {
    margin: 0;
    color: #333;
}

.debug-header button {
    padding: 5px 10px;
    margin-left: 10px;
    font-size: 12px;
    background-color: #6c757d;
}

.debug-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    font-family: monospace;
    font-size: 13px;
    background-color: #272822;
    color: #f8f8f2;
}

.log-item {
    padding: 3px 0;
    border-bottom: 1px solid #444;
    white-space: pre-wrap;
    word-break: break-word;
}

.incorrect-btn {
    margin-top: 10px;
    background-color: #6c757d;
    color: white;
}

.incorrect-btn:hover {
    background-color: #5a6268;
}

.incorrect-btn:disabled {
    background-color: #ced4da;
    cursor: not-allowed;
}

/* 姓氏匹配对话框样式 */
.surname-match-dialog-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.surname-match-dialog {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.surname-match-dialog h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.surname-match-list {
    list-style: none;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.surname-match-list li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.surname-match-list li:hover {
    background-color: #f0f7ff;
}

.surname-match-list li.highlight {
    background-color: #e3f2fd;
    font-weight: bold;
}

.surname-match-dialog button {
    margin-top: 15px;
    padding: 8px 12px;
}

/* 表扬名单对话框 */
.praise-dialog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.praise-dialog {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 80%;
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
}

.praise-dialog h3 {
    margin-bottom: 15px;
    color: #3498db;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.praise-dialog pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 16px;
}

.praise-dialog button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

.praise-dialog button:hover {
    background-color: #2980b9;
}

/* 为导出容器中的按钮添加间距 */
.export-container button {
    margin-right: 10px;
}

.export-container button:last-child {
    margin-right: 0;
} 