/* 搜索栏样式 */
.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-bar input[type="text"] {
    width: 50%;
    height: 45px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.search-bar button {
    height: 45px;
    line-height: 45px;
    text-align: center;
    padding: 0 20px;
    font-size: 16px;
    border: none;
    background-color: #798095;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #2c2d41;
}

#searchButton {
    border-radius: 0;
    color: #fff;
    font-family: 'icomoon';
}

/* 新添加的展示法律法规部分样式 */
.laws-display {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
}

.laws-display table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.laws-display th,
.laws-display td {
    height: 30px;
    line-height: 30px;
    border-bottom: 1px solid #ccc;
    font-size: 16px;
    padding: 10px;
    text-align: center;
}

.laws-display td .square {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    text-align: center;
    background-color: #8d99af;
    color: white;
    border-radius: 5px;
}

/* 查询结果布局 */
.search-results {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto 20px auto;
}

.search-results li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100px;
    margin: 10px 0;
    border-bottom: 1px solid #ccc;
}

.search-results h3 {
    font-size: 1.5em;
    display: inline-block;
    margin-bottom: 5px;
}

.search-results h3 .publication-date {
    float: right;
    font-size: 15px;
    line-height: 27px;
    color: #666;
}

.search-results p {
    font-size: 1.2em;
    word-wrap: break-word;
}

.highlight {
    background-color: yellow;
}

/* 底部页码样式 */
.pagination {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #2c2d41;
    text-decoration: none;
    transition: background-color 0.3s;
}

.page-link:hover {
    background-color: #e9ecef;
}

.page-numbers span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    color: #2c2d41;
    cursor: pointer;
}

.page-numbers .active {
    font-weight: bold;
    background-color: #8d99af;
    color: #fff;
    border-radius: 4px;
}

.jump-form {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.jump-input {
    width: 70px;
    padding: 8px;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.jump-button {
    padding: 8px 16px;
    margin-left: 5px;
    border: none;
    background-color: #8d99af;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.jump-button:hover {
    background-color: #2c2d41;
}