
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-wrap: wrap; /* 允许子元素在需要时换行 */
    justify-content: center;
    align-items: center;
    height: auto;
    margin: 0;
    background-color: #f8f8f8;
}

.search-container {
    display: flex;
    align-items: center;
    width: 50%; /* Adjusted width to be larger */
    max-width: 1000px; /* Adjusted max-width to be larger */
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden; /* To ensure the border is not cut off */
    gap: 10px; /* Adds space between the elements */
}

.back-button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #ff4949;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.back-button:hover {
    background-color: #ff3d3d;
}

.back-button:active {
    background-color: #e03131;
}

.search-input {
    flex-grow: 1;
    padding: 15px;
    font-size: 18px;
    border: 1px solid #ddd; /* Default border color */
    outline: none; /* Removes the focus outline */
    border-radius: 4px;
    transition: border-color 0.3s ease-in-out; /* Smooth transition for border color */
}

.search-input:hover, .search-input:focus {
    border-color: #3385ff; /* Change border color when input is hovered or focused */
}

.search-button {
    padding: 15px 20px;
    font-size: 18px;
    color: white;
    background-color: #3385ff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-button:hover {
    background-color: #3174e6;
}

.search-button:active {
    background-color: #2f67c4;
}

.results-container {
    width: 50%;
    max-width: 1800px;
}

.results-table {

    width: 100%;
    border-collapse: collapse;
    margin-top: 10px; /* Adds space above the table */
}

.results-table thead {
    background-color: #3385ff;
    color: white;

}

.results-table th, .results-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    min-width: 100px;
    vertical-align: top; /* Aligns content to the top */
}

.results-table tr:nth-child(even) {
    background-color: #f2f2f2;
}
.result-title {
    color: #3385ff; /* Blue color for links */
    text-decoration: none; /* Removes underline from links */
    display: block; /* Allows the title to be on a separate line */
    margin-bottom: 5px; /* Adds space below the title */
}

.result-title:hover {
    text-decoration: underline; /* Adds underline on hover */
}

.result-abstract {
    font-size: 14px;
    color: #555; /* Subtle color for abstract */
    display: block; /* Allows the abstract to be on a separate line */
}
.pagination-container {
    text-align: center; /* 使分页控件居中 */
    margin-top: 20px;
}

.pagination-button {
    cursor: pointer;
    padding: 5px 10px;
    margin: 5px 5px;
}

.category-selection-container {
    position: fixed; /* 固定位置 */
    top: 20px; /* 距离顶部20px */
    right: 320px; /* 距离右侧20px */
    display: flex;
    flex-direction: column; /* 按钮垂直排列 */
    gap: 10px; /* 添加按钮之间的间距 */
    z-index: 1000; /* 确保按钮组在最上层 */
}

.category-button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #3385ff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    .category-button:hover {
        background-color: #3174e6;
    }

    .category-button:active {
        background-color: #2f67c4;
    }

.category-results-container {
    position: fixed; /* 固定位置 */
    top: 20px; 
    right: 150px; 
    width: 200px; /* 设置表格宽度 */
    max-height: 1000px; /* 设置表格最大高度 */
    overflow-y: auto; /* 超出部分滚动 */
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 添加阴影效果 */
}

.category-results-table {
    width: 100%;
    border-collapse: collapse;
}

    .category-results-table td {
        padding: 10px;
        border: 1px solid #ddd;
        text-align: left;
    }