/* 基本页面样式 */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

/* 主容器样式 */
.container {
    text-align: center;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    width: 80%;
    max-width: 1000px;
    margin: 20px auto; /* 修改 margin 以在顶部和底部有一些空间 */
}

/* Logo样式 */
.logo {
    margin-bottom: 20px;
}

.logo img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 班级列表样式 */
.grade-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.grade-list li {
    margin: 10px;
    flex: 1 0 20%;
}

.grade-list li a {
    display: inline-flex; /* 使用 flex 布局 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    text-decoration: none;
    color: white;
    background-color: #007bff;
    font-size: 18px;
    padding: 10px 15px; /* 增加 padding 以适应更多文本 */
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    text-align: center; /* 文本居中 */
}

.grade-list li a:hover {
    background-color: #0056b3;
    color: #fff;
    transform: scale(1.05);
}

/* 随机分组样式 */
.random-group {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.random-group h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

/* 随机分组按钮样式 */
.random-group button {
    background-color: #28a745; /* 翠绿色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    display: inline-block;
margin: 10px; /* 同样增加外边距 */
}

/* 为随机分组按钮添加 hover 效果 */
.random-group button:hover {
    background-color: #218838; /* 较深的绿色 */
    color: #fff;
    transform: scale(1.05);
}


/* 随机分组按钮样式 */
.random-group button {
    background-color: #28a745; /* 翠绿色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    display: inline-block;
}

/* 为随机分组按钮添加 hover 效果 */
.random-group button:hover {
    background-color: #218838; /* 较深的绿色 */
    color: #fff;
    transform: scale(1.05);
}

/* 小组选项按钮样式 */
.group-option {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: left;
    display: inline-block;
    margin: 5px;
}

.group-option:hover {
    background-color: #45a049;
}

.group-options p {
    font-size: 18px; /* 增大字体大小 */
    font-family: Arial, sans-serif; /* 调整字体 */
    color: #333; /* 字体颜色 */
    margin-bottom: 10px; /* 增加底部间距 */
}
/* 结果面板样式 */
.result-panel {
    text-align: center;
    margin-top: 10px;
    font-size: 20px; /* 增加字体大小 */
    font-weight: bold; /* 字体加粗 */
    color: #d35400; /* 更显著的颜色 */
    padding: 20px;
    border-radius: 10px;
}

/* 导航按钮的基本样式 */
.nav-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: red; /* 按钮背景色 */
    color: white; /* 文字颜色 */
    border: none;
    border-radius: 5px; /* 圆角 */
    transition: background-color 0.3s, transform 0.3s; /* 过渡效果 */
    font-size: 16px; /* 字体大小 */
    text-align: center; /* 文本居中 */
    vertical-align: middle; /* 垂直居中 */
    cursor: pointer; /* 鼠标样式 */
margin: 10px; /* 同样增加外边距 */
    text-decoration: none; /* 去除下划线 */
}

/* 导航按钮的悬停效果 */
.nav-button:hover {
    background-color: red; /* 悬停时更深的背景色 */
    color: white; /* 保持文字颜色为白色 */
    transform: scale(1.05); /* 鼠标悬停时放大按钮 */
}

.icon {
    width: 16px; /* 图标宽度 */
    height: 16px; /* 图标高度 */
    margin-right: 5px; /* 图标和文本之间的间距 */
    vertical-align: middle; /* 与文本垂直居中 */
}