body {
    font-family: sans-serif;
    margin: 0;
    padding: 30px;
    background-color: #34495e; /* 深灰色背景 */
    color: #ecf0f1; /* 亮灰色文字 */
}

header {
    background-color: #2c3e50; /* 较深的背景色 */
    padding: 0; /* 移除 header 的内边距 */
    text-align: center;
    margin-bottom: 10px; /* 减小 header 的底部外边距 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 增加阴影效果 */
    border-radius: 10px;
}

header h1 {
    font-size: 1.344em; /* 再次缩小 20% 后的字体大小 (相对于之前的 1.68em) */
    font-weight: 500;
    margin: 0; /* 移除 h1 的外边距 */
    padding: 0; /* 移除 h1 的内边距 */
    color: #ffffff;
    display: inline-block; /* 重要：使其只占据内容所需的空间 */
    line-height: 1; /* 减小 h1 的行高 */
}

main {
    /* 可以添加一些样式 */
}

#搜索区域 {
    margin-bottom: 30px;
    text-align: center;
}

#标签选择区域 {
    margin-bottom: 30px;
}

#分类导航栏 {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

#已选标签区域 {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

#提示词显示区域 {
    /* 可以添加一些样式 */
}

/* 项容器样式 */
.项容器 {
    border: 1px solid #555; /* 更深的边框颜色 */
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #455A64; /* 稍微暗淡的背景色 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #fff; /* 文字颜色 */
}

.项容器:hover {
    background-color: #546E7A; /* 鼠标悬停时改变背景色 */
    transform: translateY(-2px);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
}

/* 提示词容器样式 */
.提示词容器 {
    cursor: pointer;
    margin-bottom: 15px; /* 提示词和标签之间增加更多间距 */
    padding-bottom: 10px; /* 提示词底部增加内边距 */
    border-bottom: 1px solid #777; /* 提示词底部增加分隔线 */
}

/* 标签预览容器样式 */
.标签预览容器 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* 标签之间的间距 */
    padding-top: 10px; /* 标签顶部增加内边距 */
}

/* 标签容器样式 */
.标签容器 {
    display: inline-block;
    padding: 6px 12px; /* 稍微减小内边距 */
    background-color: #607D8B; /* 标签背景色 */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9em; /* 稍微缩小字体 */
}

.标签容器:hover {
    background-color: #546E7A; /* 鼠标悬停时改变背景色 */
}

/* 标签预览样式 */
.标签预览 {
    color: #fff; /* 标签文字颜色 */
}

.标签 {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 8px;
    margin-bottom: 8px;
    background-color: #455A64; /* 标签背景色 */
    border: 1px solid #555; /* 标签边框颜色 */
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease; /* 添加 transform 过渡 */
    color: #fff; /* 标签文字颜色 */
}

.标签:hover {
    background-color: #546E7A;
    transform: scale(1.05); /* 鼠标悬停时稍微放大 */
}

.标签.选中 {
    background-color: #2ecc71; /* 绿色选中 */
    color: white;
}

#已选标签区域 .已选标签 {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 8px;
    margin-bottom: 8px;
    background-color: #8e44ad; /* 紫色背景 */
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#已选标签区域 .已选标签:hover {
    background-color: #71338a; /* 鼠标悬停时加深颜色 */
    transform: scale(1.05);
}

#搜索框 {
    width: 400px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #555; /* 搜索框边框颜色 */
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #455A64; /* 搜索框背景色 */
    color: #fff; /* 搜索框文字颜色 */
    transition: box-shadow 0.2s ease; /* 添加阴影过渡 */
}

#搜索框:focus {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* 聚焦时增加阴影 */
    outline: none; /* 移除默认的聚焦边框 */
}

/* 分类导航栏样式 */
#分类导航栏 button {
    padding: 10px 18px;
    margin-right: 8px;
    margin-bottom: 8px;
    border: none;
    border-radius: 8px;
    background-color: #2980b9; /* 蓝色按钮 */
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #fff; /* 按钮文字颜色 */
}

#分类导航栏 button:hover {
    background-color: #34984b; /* 稍微亮一点的蓝色 */
    transform: scale(1.05); /* 鼠标悬停时稍微放大 */
}

#分类导航栏 button[data-被选择="true"] {
    background-color: #8e44ad; /* 紫色选中 */
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 增加阴影 */
    transform: scale(1.05); /* 稍微放大 */
}
