html {
    height: 100%;
    background: #fff;
}

body {
    padding-top: 0px !important;
    padding-bottom: 50px;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    position: relative;
}

.container {
    padding-right: 10px;
    padding-left: 10px;
    margin-right: auto;
    margin-left: auto;
}

.form-search label {
    font-weight: normal;
    margin-right: 5px;
}

.header {
    background: #007bff;
    padding: 24px 0 30px 0;
}

.header h3 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 28px;
    text-align: center;
}

/* 搜索结果列表 */
.result-list {
    margin: 0;
}

.result-list dd {
    margin-bottom: 20px;
    /*border-bottom:1px solid #f3f3f3;*/
}

.result-list dd:last-child {
    margin-bottom: 0;
}

.result-list dd .description {
    font-size: 14px;
    color: #666;
}

.result-list dd .extra, .result-list dd a {
    font-size: 13px;
    color: green;
    margin-top: 5px;
}

.result-list dd .extra span {
    margin-right: 5px;
}

.result-list dd .extra strong {
    font-weight: 400;
    margin-right: 1px;
}

.result-list h4 {
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 3px;
    line-height: 1.54;
}

.result-list h4 a {
    color: #007bff;
}

.result-list em {
    color: #c00;
    font-style: normal;
}

/* 相关搜索 */
.search-suggestion {
    background-color: #F5F5F5;
    padding: 10px;
    margin-bottom: 15px;
}

.search-results {
    margin-bottom: 25px;
}

.search-links {
    margin: 0 0 25px 0;
}

.search-links a {
    color: #007bff;
    margin-right: 5px;
}

/* 分页样式 */
.pager li {
    margin: 0 .4em;
    display: inline-block
}

.pager li:first-child > a, .pager li:first-child > span, .pager li:last-child > a, .pager li:last-child > span {
    padding: .5em 1.2em
}

.pager li > a, .pager li > span {
    background: 0 0;
    border: 1px solid #e6e6e6;
    border-radius: .25em;
    padding: .5em .93em;
    font-size: 14px
}

/* 搜索建议 */
.autocomplete-suggestions {
    text-align: left;
    cursor: default;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    -moz-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    background-clip: padding-box;
    position: absolute;
    display: none;
    z-index: 1029;
    max-height: 254px;
    overflow: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

.autocomplete-search .autocomplete-suggestion {
    padding: 5px 12px;
}

.autocomplete-search .autocomplete-suggestion:hover {
    background: #f0f0f0;
}

footer {
    background-color: #222222;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0;
    text-align: center;
    height: 50px;
    line-height: 50px;
}

footer p {
    font-size: 12px;
    margin: 0;
}

.m-1 {
    margin-top: 5px !important;
    margin-right: 5px !important;
    margin-bottom: 5px !important;
    margin-left: 5px !important;
}
.mt-1 {
    margin-top: 5px !important;
}
.mr-1 {
    margin-right: 5px !important;
}
.mb-1 {
    margin-bottom: 5px !important;
}
.ml-1 {
    margin-left: 5px !important;
}
.mx-1 {
    margin-left: 5px !important;
    margin-right: 5px !important;
}
.my-1 {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}
.m-2 {
    margin-top: 10px !important;
    margin-right: 10px !important;
    margin-bottom: 10px !important;
    margin-left: 10px !important;
}
.mt-2 {
    margin-top: 10px !important;
}
.mr-2 {
    margin-right: 10px !important;
}
.mb-2 {
    margin-bottom: 10px !important;
}
.ml-2 {
    margin-left: 10px !important;
}
.mx-2 {
    margin-left: 10px !important;
    margin-right: 10px !important;
}
.my-2 {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}
.m-3 {
    margin-top: 15px !important;
    margin-right: 15px !important;
    margin-bottom: 15px !important;
    margin-left: 15px !important;
}
.mt-3 {
    margin-top: 15px !important;
}
.mr-3 {
    margin-right: 15px !important;
}
.mb-3 {
    margin-bottom: 15px !important;
}
.ml-3 {
    margin-left: 15px !important;
}
.mx-3 {
    margin-left: 15px !important;
    margin-right: 15px !important;
}
.my-3 {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}
.m-4 {
    margin-top: 20px !important;
    margin-right: 20px !important;
    margin-bottom: 20px !important;
    margin-left: 20px !important;
}
.mt-4 {
    margin-top: 20px !important;
}
.mr-4 {
    margin-right: 20px !important;
}
.mb-4 {
    margin-bottom: 20px !important;
}
.ml-4 {
    margin-left: 20px !important;
}
.mx-4 {
    margin-left: 20px !important;
    margin-right: 20px !important;
}
.my-4 {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}
.p-1 {
    padding-top: 5px !important;
    padding-right: 5px !important;
    padding-bottom: 5px !important;
    padding-left: 5px !important;
}
.pt-1 {
    padding-top: 5px !important;
}
.pr-1 {
    padding-right: 5px !important;
}
.pb-1 {
    padding-bottom: 5px !important;
}
.pl-1 {
    padding-left: 5px !important;
}
.px-1 {
    padding-left: 5px !important;
    padding-right: 5px !important;
}
.py-1 {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}
.p-2 {
    padding-top: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 10px !important;
}
.pt-2 {
    padding-top: 10px !important;
}
.pr-2 {
    padding-right: 10px !important;
}
.pb-2 {
    padding-bottom: 10px !important;
}
.pl-2 {
    padding-left: 10px !important;
}
.px-2 {
    padding-left: 10px !important;
    padding-right: 10px !important;
}
.py-2 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
.p-3 {
    padding-top: 15px !important;
    padding-right: 15px !important;
    padding-bottom: 15px !important;
    padding-left: 15px !important;
}
.pt-3 {
    padding-top: 15px !important;
}
.pr-3 {
    padding-right: 15px !important;
}
.pb-3 {
    padding-bottom: 15px !important;
}
.pl-3 {
    padding-left: 15px !important;
}
.px-3 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}
.py-3 {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}
.p-4 {
    padding-top: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 20px !important;
    padding-left: 20px !important;
}
.pt-4 {
    padding-top: 20px !important;
}
.pr-4 {
    padding-right: 20px !important;
}
.pb-4 {
    padding-bottom: 20px !important;
}
.pl-4 {
    padding-left: 20px !important;
}
.px-4 {
    padding-left: 20px !important;
    padding-right: 20px !important;
}
.py-4 {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.filter-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 22px 16px 22px;
}

.jibie-row {
    margin-bottom: 10px;
}

.kemu-row {
    margin-bottom: 16px;
}

.filter-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    min-width: 50px;
    margin-right: 10px;
}

.filter-btn {
    padding: 0 22px;
    height: 30px;
    line-height: 26px;
    border-radius: 5px;
    border: 1.5px solid #007bff;
    background-color: #ffffff;
    color: #007bff;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    margin: 2px 8px 2px 0;
    outline: none;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: #e6f0ff;
    border-color: #007bff;
    color: #007bff;
}

.filter-btn.active {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

.filter-btn.active:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    color: #fff;
}

.search-box {
    border-top: 1px solid #e9ecef;
    padding-top: 14px;
}

.search-query {
    height: 48px;
    font-size: 15px;
    box-shadow: none;
    padding-left: 18px;
    background: transparent;
}

.search-query::placeholder {
    color: #adb5bd;
    font-size: 15px;
}

.input-group-btn .btn-primary {
    border-radius: 0;
    /*padding: 6px 36px;*/
    height: 48px;
    background: #007bff;
    border-color: #007bff;
    font-weight: 500;
    font-size: 15px;
}

.search-options {
    font-size: 13px;
    color: #555;
}

.search-options label {
    cursor: pointer;
    color: #555;
}

.dropdown-toggle {
    color: #007bff !important;
    text-decoration: none;
    cursor: pointer;
}

.dropdown-toggle:hover {
    color: #0056b3 !important;
    text-decoration: none;
}

.orderlist-inline {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.orderlist-inline .orderlist-label {
    color: #555;
    margin-right: 6px;
}

.orderlist-inline .orderlist {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.orderlist-inline .orderlist li {
    margin: 0;
}

.orderlist-inline .list-inline>li {
    display: inline-block;
    padding-right: 1px;
    padding-left: 1px;
}

.orderlist-inline .orderlist li a {
    display: inline-block;
    padding: 3px 7px;
    font-size: 13px;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.orderlist-inline .orderlist li a:hover {
    color: #007bff;
    background: #fff;
    border-color: #007bff;
}

.orderlist-inline .orderlist li.active a {
    color: #fff;
    background: #007bff;
    border-color: #007bff;
}

.search-container {
    margin-top: 20px;
}

.pager {
    text-align: left;
}

.search-links h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.search-links p {
    margin-top: 6px;
}

.search-links span {
    margin-right: 16px;
}

.search-links a {
    color: #007bff;
}

.hot-container {
    margin-top: 10px;
}

.related-container {
    margin-top: 6px;
    margin-bottom: 20px;
}

.align-items-center {
    display: flex;
    align-items: center;
}

@media (max-width: 576px) {
    .filter-btn {
        padding: 2px 10px;
        font-size: 13px;
        margin: 2px 5px 2px 0;
    }
    .filter-card {
        padding: 14px 16px !important;
    }
    .filter-label {
        min-width: 42px !important;
        font-size: 13px !important;
    }
    .header {
        padding: 5px 0 10px 0 !important;
    }
    .search-query::placeholder {
        font-size: 13px;
    }
    .search-query {
        font-size: 14px !important;
    }
    .header h3 {
        font-size: 22px !important;
    }
}

.detail-container {
    padding: 0;
}

.detail-header {
    /*margin-bottom: 24px;*/
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.detail-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 12px 0;
    line-height: 1.5;
}

.back-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.extra-info {
    font-size: 14px;
    color: #666;
}

.extra-info span {
    margin-right: 20px;
}

.extra-info strong {
    color: #333;
    margin-right: 6px;
}

.keyword-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 15px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.keyword-nav .nav-info {
    font-size: 14px;
    color: #333;
}

.keyword-nav .nav-buttons {
    display: flex;
    gap: 10px;
}

.keyword-nav .btn {
    padding: 6px 16px;
    font-size: 14px;
}

.detail-content {
    font-size: 16px;
    line-height: 2;
    color: #333;
    white-space: pre-wrap;
    word-break: break-all;
}

.detail-content mark {
    background-color: #fff3cd;
    border-bottom: 2px solid #ffc107;
    padding: 2px 0;
}

.detail-content mark.active {
    background-color: #ffc107;
    color: #333;
    animation: highlight-pulse 1s ease-in-out;
}

@keyframes highlight-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
    }
}

.pdf-container {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.pdf-container iframe {
    display: block;
    background: #fff;
}

.no-pdf {
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 16px;
}

.detail-header {
    background: #007bff;
    padding: 10px 20px;
}

.detail-header .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.detail-header .back-btn {
    display: flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
}

.detail-header .back-btn img {
    height: 20px;
    width: auto;
    display: block;
}

.detail-header h1 {
    flex: 1;
    text-align: center;
    color: #fff;
    font-size: 20px;
    margin: 0;
    padding: 0 10px;
    line-height: 1.4;
}


/* ========== 搜索结果 ========== */

.result-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 18px 20px 16px 20px;
    margin-bottom: 0;
    border-bottom: 2px solid #e8ecf1;
    transition: background 0.15s ease;
}

.result-item:hover {
    background: #f8f9fa;
}

.result-item:last-child {
    border-bottom: 1px solid #e8ecf1;
}

.result-link {
    display: block;
    color: inherit;
    text-decoration: none !important;
}

.result-link:hover {
    text-decoration: none !important;
}

.result-title h4 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #1a0dab;
}

.result-title h4 em {
    font-style: normal;
    background-color: #fff3b0;
    padding: 0 3px;
    border-radius: 2px;
    color: #1a0dab;
}

.result-body {
    padding-left: 0;
}

.description {
    font-size: 14px;
    line-height: 1.7;
    color: #3c4043;
    margin-bottom: 8px;
    word-break: break-word;
}

.description em {
    font-style: normal;
    background-color: #fff3b0;
    padding: 0 3px;
    border-radius: 2px;
    color: #c00;
}

.extra {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 6px;
}

.extra-tag {
    display: inline-block;
    background: #e8f5e9;
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #2e7d32;
}

.extra-tag strong {
    font-weight: 500;
    color: #1b5e20;
    margin-right: 2px;
}

.result-list {
    margin: 0;
}

.search-hint {
    color: #007bff;
    font-size: 13px;
    margin-top: 6px;
    padding-left: 2px;
}

@media (max-width: 576px) {
    .result-item {
        padding: 14px 14px 12px 14px;
    }
    .result-title h4 {
        font-size: 16px;
    }
    .description {
        font-size: 13px;
    }
    .extra-tag {
        font-size: 12px;
        padding: 1px 8px;
    }
}