body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    /* 让背景色铺满整个可视区域 */
    min-height: 100vh; 
}

.container {
    max-width: 100%;
    margin: 0px auto;
	padding: 20px 0 20px 0;
    background-color: #f4f4f4;
    box-shadow: none;
    border-radius: 5px;
    /* 设置固定高度为 600px，可按需调整 */
    height: 600px;
}

.search-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-left: 0px;
	padding-right: 10px;
}


#back-icon {
    margin-right: 15px;
    cursor: pointer;
}

#back-icon:hover {
    fill: #0056b3;
    stroke: #0056b3;
}


.search-box {
    display: flex;
    gap: 10px;
    flex-grow: 1;
}

#search-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#search-button {
    padding: 5px 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#search-button:hover {
    background-color: #0056b3;
}

/* 分类标签样式 */
.category-nav {
    /* display: flex; */
    justify-content: space-between;
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
}

.category-item {
    flex: 0 0 auto;
    min-width: auto;
    padding: 0 10px 10px;
    height: 40px;
    line-height: 40px;
    background-color: transparent;
    border: none;
    font-size: 14px;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
    font-weight: 400;
    position: relative;
}

.category-item:hover {
    color: #007AFF;
}

.category-item.active {
    color: #007AFF;
    font-weight: 500;
}

.category-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: calc(100% - 20px);
    background-color: #007AFF;
}

/* ======搜索结果的样式========== */
.search-results {
    min-height: 200px;
    height: 600px; /* 设置固定高度 */
    background-color: #f4f4f4; /* 设置背景颜色 */
    border-radius: 8px; /* 添加圆角 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 添加阴影 */
    overflow: auto; /* 当内容超出高度时显示滚动条 */
}

/* Web端使用传统分页，不需要加载更多按钮 */

.result-item {
    padding: 1.25rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease, box-shadow 0.2s ease; /* 添加阴影过渡效果 */
    background-color: #f4f4f4; /* 设置白色背景 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* 添加基础阴影 */
}

.permission-warning::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 5px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="red" d="M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"/></svg>') no-repeat center / contain;
    display: inline-block;
    vertical-align: middle;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: #e9e9e9; /* 鼠标悬停时改变背景颜色 */
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); /* 鼠标悬停时增强阴影 */
}

.result-item h3 {
    color: #212529; /* 设置标题颜色 */
    font-size: 1.125rem; /* 增大标题字体大小 */
    margin: 0 0 0.5rem 0; /* 设置标题外边距 */
    font-weight: 500; /* 调整标题字体粗细 */
}

.result-item p {
    color: #6c757d; /* 设置描述颜色 */
    font-size: 0.9375rem; /* 调整描述字体大小 */
    margin: 0; /* 去除描述外边距 */
}

/* 未找到结果提示样式 */

/* 分页控件样式 */
.pagination-controls {
    margin: 20px 0;
    text-align: center;
}

.pagination-info {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background-color: #f0f0f0;
    border-color: #007BFF;
}

.pagination-btn.active {
    background-color: #007BFF;
    color: white;
    border-color: #007BFF;
}

.pagination-btn.disabled {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.page-btn {
    min-width: 35px;
    text-align: center;
}

/* Web端始终使用传统分页，不需要模式切换按钮 */

/* 结果统计样式 */
.result-stats {
    padding: 10px 0;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
.result-item:only-child {
    text-align: center; /* 文字居中 */
    color: #6c757d; /* 设置提示文字颜色 */
    padding: 2rem; /* 增大内边距 */
}

.highlight {
    color: #007AFF; /* 设置关键词颜色，可按需调整 */
    font-weight: bold; /* 加粗关键词，可按需调整 */
}