body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    color: #fff; /* 字体颜色 */
    background: url('bg.jpg') no-repeat center center fixed; /* 使用本地图片 */
    background-size: cover; /* 背景覆盖 */
}
hr {
    border: 1px solid #ccc; /* 设置分隔线颜色 */
    margin: 20px 0; /* 设置上下间距 */
}
#container {
    display: flex; /* 使用 flexbox 布局 */
    justify-content: space-between; /* 左右对齐 */
    max-width: 1200px; /* 增加容器宽度 */
    margin: auto;
}
#project-container {
    background-color: rgba(255, 255, 255, 0.4); /* 白色半透明背景 */
    padding: 20px; /* 内边距 */
    border-radius: 10px; /* 圆角 */
    flex-grow: 1; /* 使项目列表区域占据剩余空间 */
}
h1 {
    color: #007BFF; /* 更好看的字体颜色 */
    text-align: center; /* 居中对齐 */
}
h2 {
    color: #007BFF; /* 更好看的字体颜色 */
    text-align: center; /* 居中对齐 */
}
#project-list {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    margin-bottom: 20px; /* 底部间距 */
}
.project {
    width: calc(16.66% - 10px); /* 每个项目占据 16.66% 的宽度（6个一行），减去间距 */
    box-sizing: border-box; /* 包括内边距和边框 */
    margin: 5px; /* 上下左右间距 */
    display: flex; /* 使用 flexbox */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}
.project button {
    width: 100%; /* 按钮宽度 */
    padding: 12px; /* 按钮内边距 */
    background-color: white; /* 默认按钮颜色 */
    color: black; /* 字体颜色 */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s; /* 背景颜色和阴影过渡效果 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 阴影效果 */
    font-size: 16px; /* 字体大小 */
}
.project button.selected {
    background-color: #007BFF; /* 选中状态颜色 */
    color: white; /* 选中状态字体颜色 */
}
#output {
    width: calc(100% - 20px); /* 扩大输入框宽度 */
    height: 100px; /* 增加输入框高度 */
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px; /* 字体大小 */
    overflow-y: auto; /* 允许垂直滚动 */
    resize: none; /* 禁止手动调整大小 */
}
#button-container {
    display: flex;
    justify-content: space-between; /* 左右对齐 */
    margin-top: 10px; /* 上方间距 */
}
.action {
    background-color: #28a745; /* 操作按钮颜色 */
    color: white; /* 字体颜色 */
    border: none;
    padding: 15px 20px; /* 增加内边距 */
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px; /* 增加字体大小 */
    transition: background-color 0.3s; /* 背景颜色过渡效果 */
    flex: 1; /* 使按钮均匀分布 */
    margin: 0 5px; /* 按钮间距 */
}
.action:hover {
    background-color: #0056b3; /* 悬停效果 */
}
/* 添加新的样式 */
.small-action {
    padding: 10px 15px; /* 减小内边距 */
    font-size: 14px; /* 减小字体大小 */
    flex: 0.5; /* 使按钮宽度适应内容 */
    margin: 0 5px; /* 按钮间距 */
    background-color: #28a745; /* 按钮背景颜色 */
    color: white; /* 字体颜色 */
    border: none; /* 去掉边框 */
    border-radius: 5px; /* 圆角 */
    cursor: pointer; /* 鼠标悬停时显示手型 */
    transition: background-color 0.3s; /* 背景颜色过渡效果 */
}

.small-action:hover {
    background-color: #0056b3; /* 悬停时的背景颜色 */
}
#notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: none; /* 初始隐藏 */
    z-index: 1000; /* 确保在最上层 */
}
#history-container {
    background-color: rgba(255, 255, 255, 0.4); /* 白色半透明背景 */
    padding: 20px;
    border-radius: 10px;
    width: 320px; /* 设置历史选择区域的宽度 */
    margin-left: 20px; /* 与项目选择区域的间距 */
    flex-shrink: 0; /* 防止缩小 */
    height: 900px; /* 固定高度 */
    overflow: hidden; /* 不显示滚动条 */
    margin-top: 10px; /* 向下移动 */
    white-space: normal; /* 允许换行 */
    word-wrap: break-word; /* 强制换行 */
}
.history-item {
    padding: 10px 0; /* 每条历史记录的内边距 */
    border-bottom: 1px solid #fff; /* 分隔线 */
}
.history-item:last-child {
    border-bottom: none; /* 最后一条记录不显示分隔线 */
}
#history-list {
    color: white; /* 默认文字颜色为白色 */
    mix-blend-mode: difference; /* 使文字颜色适应背景 */
}