/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* 垂直排列 */
    height: 100%;
}

/* 容器样式 */
.container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    width: 100%;
}

.bottom {
    text-align: center; /* 居中对齐 */
    font-size: 10px; /* 设置字体大小 */
    color: gray; /* 设置字体颜色为灰色 */
    margin: 10px 0; /* 添加上下边距 */
    padding: 10px 0; /* 添加内边距 */
    position: relative; /* 确保底部信息显示在底部 */
}

/* 标题样式 */
h1 {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* 表单样式 */
form {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 14px;
    color: #555;
    margin-bottom: 0.5rem;
}

input[type="text"],
select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
select:focus {
    border-color: #409EFF;
    outline: none;
}

/* 按钮样式 */
button {
    background-color: #409EFF;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #3078c6;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 20px;
    }

    input[type="text"],
    select,
    button {
        padding: 0.5rem;
        font-size: 12px;
    }
}

/* 查询结果样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.total-score {
    background-color: #e6f7ff; /* 浅蓝色 */
    font-weight: bold;
}

.ranking {
    background-color: #fff3e6; /* 浅橙色 */
    font-weight: bold;
}

.subject-score {
    background-color: #f9f9f9; /* 浅灰色 */
}

.highlight {
    background-color: #ffe6e6; /* 浅红色，用于突出显示 */
}

#radarChart {
    width: 600px;
    height: 400px;
    margin: 20px auto;
    background-color: #fff; /* 白色背景 */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
}

.negative {
    color: red; /* 负值显示为红色 */
}

.positive {
    color: green; /* 正值显示为绿色 */
}

.exam-title {
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}
