#examForm {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px 15px;
    align-items: center;
    background-color: #d9d9d9;
    padding: 20px;
    max-width: 600px;
    border-radius: 8px;
    font-family: sans-serif;
}

#examForm label {
    font-weight: bold;
    color: white;
    background-color: #00549f;
    padding: 10px;
    border-radius: 4px;
    text-align: left;
}

#examForm select,
#examForm input[type="password"] {
    padding: 8px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

#examForm button {
    grid-column: span 2;
    padding: 8px 20px;
    height: 40px; 
    background-color: #00549f;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    width: fit-content;
    cursor: pointer;
    transition: background-color 0.3s;
    justify-self: start;
}

#examForm button:hover {
    background-color: #003f7d;
}

#exam_result {
    margin-top: 20px;
    max-width: 600px;
}

#exam_result table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    text-align: left;
    font-size: 15px;
}

/* 表头 */
#exam_result th {
    background-color: #00549f;
    color: white;
    padding: 8px;
    text-align: left;
}

/* 通用单元格 */
#exam_result td {
    padding: 8px;
    text-align: left;
}

/* 偶数行：浅灰色 */
#exam_result tr:nth-child(even) td {
    background-color: #f2f2f2;
}

/* 奇数行：深一点灰 */
#exam_result tr:nth-child(odd) td {
    background-color: #dddddd94;
}

