
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;
    }

.account-container {
    position: fixed; /* 固定定位 */
    top: 3%; /* 垂直居中 */
    right: 16.5%; /* 距离右侧20px */
    transform: translateY(-50%); /* 垂直居中调整 */
    display: flex;
    align-items: center;
    padding: 10px;
}

.login-button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    .login-button:hover {
        background-color: #0056b3;
    }

    .login-button:active {
        background-color: #004494;
    }

#accountInfo {
    margin-left: 10px;
    font-size: 16px;
    color: #333;
}

/* 导航容器样式 */
.navigation-container {
    width: 50%; /* 与搜索框宽度一致 */
    max-width: 1000px; /* 与搜索框最大宽度一致 */
    margin: 5px auto 0; /* 上下边距，自动左右边距实现居中 */
    padding: 10px; /* 内边距 */
    text-align: center; /* 文本居中显示 */

    border-radius: 4px; /* 圆角 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 阴影效果 */
}

.nav-list {
    list-style: none; /* 移除列表样式 */
    padding: 0; /* 移除内边距 */
    margin: 0; /* 移除外边距 */
}

    .nav-list li {
        display: inline-block; /* 横向排列 */
        margin-right: 20px; /* 项目之间的间距 */
    }

        .nav-list li a {
            display: inline-block; /* 横向排列 */
            text-decoration: none; /* 移除下划线 */
            color: #3385ff; /* 链接文本颜色 */
            font-size: 16px; /* 字体大小 */
            vertical-align: middle; /* 垂直居中对齐 */
        }

            .nav-list li a:hover {
                text-decoration: underline; /* 鼠标悬停时显示下划线 */
            }


.site-icon {
    width: 20px; /* 图标宽度 */
    height: 20px; /* 图标高度 */
    margin-right: 10px; /* 图标与链接之间的间距 */
    vertical-align: middle; /* 垂直居中对齐 */
}

.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: 90px; /* 距离顶部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-table {
    width: 100%;
    border-collapse: collapse;
}

    .category-results-table td {
        padding: 10px;
        border: 1px solid #ddd;
        text-align: left;
    }

@media (max-width: 1800px) {
    .category-selection-container {
        width: 100px;
        right: 10px;
    }
}

footer {
    text-align: center;
    position: fixed;
    width: 100%;
    height: 40px;
    bottom: 0;
    z-index: 201;
    background: #f7f7f7;
    clear: both;
    padding: 10px 0; /* 上下内边距 */
    user-select: none;
}

    footer a {
        color: #666666;
        text-decoration: none;
        font-size: 12px;
        font-family: "Lucida Grande", "微软雅黑", "宋体", Arial;
    }
