﻿.nav_search {
    height: 100%;
    margin-top: 8px;
}

:root {
    --primary-gradient: #1558ad;
    --primary-color: #1558ad;
    --bg-color: #f5f7fa;
    --card-bg: rgba(255, 255, 255, 0.95);
}

* {
    box-sizing: border-box;
}

a {
    color: #2C3E50;
}

body {
    background-color: var(--bg-color);
    color: #2c3e50;
    -webkit-font-smoothing: antialiased;
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

    .search-box:focus-within {
        transform: translateY(-2px);
    }

.search-input {
    border: none;
    background: transparent;
    padding: 12px 24px;
    font-size: 1.1rem;
}

.search-btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    min-width: 60px;
    justify-content: center;
}

    .search-btn:hover {
        transform: scale(1.02);
    }

    .search-btn:hover {
        background: var(--primary-gradient);
        border: none;
        border-radius: 50px;
        color: white;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.2s ease;
    }
/* Tab 导航 */
.sidebar-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    position: sticky;
    top: 30px;
    border: 1px solid rgba(255,255,255,0.8);
}

.nav-pills-custom .nav-link {
    border: none;
    border-left: 3px solid transparent;
    background: transparent;
    padding: 16px 20px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

    .nav-pills-custom .nav-link:hover {
        color: var(--primary-color);
        background: rgba(102, 126, 234, 0.05);
    }

    .nav-pills-custom .nav-link.active {
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        font-weight: 600;
        background: rgba(102, 126, 234, 0.08);
    }

.tab-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5f9;
    transition: all 0.2s ease;
}

.nav-link.active .tab-icon {
    background: var(--primary-gradient);
    color: white;
}

.tab-count {
    margin-left: auto;
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

/* 结果列表 */
.results-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.8);
    min-height: 600px;
}

.result-item {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    transition: background-color 0.15s ease;
    animation: slideIn 0.3s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

    /* 可点击状态的样式 */
    .result-item.clickable {
        cursor: pointer;
    }

        .result-item.clickable:hover {
            background-color: #fafbfc;
        }

        .result-item.clickable::after {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            height: 0;
            width: 3px;
            background: var(--primary-gradient);
            transition: height 0.2s ease;
            transform: translateY(-50%);
        }

        .result-item.clickable:hover::after {
            height: 100%;
        }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 查看详情按钮 - 仅可点击项显示 */
.view-detail {
    position: absolute;
    right: 20px;
    bottom: 5px;
    background: var(--primary-gradient);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-item.clickable:hover .view-detail {
    opacity: 1;
    transform: translateY(0);
}

/* 移动端查看详情始终显示 */
@media (hover: none) {
    .view-detail {
        opacity: 1;
        transform: translateY(0);
        position: relative;
        right: auto;
        bottom: auto;
        display: inline-flex;
        margin-top: 10px;
        pointer-events: auto;
    }
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.type-1 {
    background: #eff6ff;
    color: #3b82f6;
}

.type-2 {
    background: #faf5ff;
    color: #a855f7;
}

.type-3 {
    background: #f0fdf4;
    color: #22c55e;
}

.type-4 {
    background: #fffbeb;
    color: #f59e0b;
}

.type-5 {
    background: #fdf2f8;
    color: #ec4899;
}

.type-6 {
    background: #E8F4FC;
    color: #1558ad;
}

.type-7 {
    background: #E8F4FC;
    color: #1558ad;
}

.result-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
}

    .result-title p {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.result-desc {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.search-highlight {
    background: linear-gradient(120deg, #fde047 0%, #fde047 100%);
    background-size: 100% 30%;
    background-position: 0 85%;
    color: #1e293b;
    padding: 0 2px;
    font-weight: 700;
}

/* 分页 */
.pagination-container {
    padding: 2rem 1rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pagination-custom {
    display: flex;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: max-content;
}

.page-item-custom {
    flex-shrink: 0;
}

.page-link-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 50%;
}

    .page-link-custom:hover:not(.disabled) {
        border-color: var(--primary-color);
        background: var(--primary-color);
        color: #fff;
    }


.page-item-custom.active .page-link-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    border-radius: 50%;
}

.page-link-custom.sheng:hover {
    border-color: transparent !important;
    background: transparent !important;
    color: #6c757d !important;
    cursor: default;
    border: none !important;
}

.jump-input {
    -moz-appearance: textfield;
    border: 1px solid #1558ad !important;
    color: var(--bs-pagination-hover-bg);
    border-radius: 50px !important;
    height: auto;
    text-align: center
}

    .jump-input::-webkit-inner-spin-button, .jump-input::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0
    }

.jump-btn-icon {
    width: 11px;
    height: 22px;
    position: absolute;
    inset: 0;
    margin: auto
}

#jumpBtn {
    background-color: #1558ad;
    width: 70px;
    height: 44px;
    border-radius: 50%;
}
/* 空状态 */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: #94a3b8;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .search-hero {
        padding: 2rem 0 3rem;
    }

    .sidebar-card {
        position: relative;
        top: 0;
        margin-bottom: 1rem;
    }

    .nav-pills-custom {
        flex-direction: row;
        overflow-x: auto;
        gap: 4px;
        padding: 8px;
    }

        .nav-pills-custom::-webkit-scrollbar {
            display: none;
        }

        .nav-pills-custom .nav-link {
            white-space: nowrap;
            border-left: none;
            border-bottom: 2px solid transparent;
            padding: 10px 14px;
        }

            .nav-pills-custom .nav-link.active {
                border-left-color: transparent;
                border-bottom-color: var(--primary-color);
            }

    .tab-icon {
        display: none;
    }

    .result-title {
        padding-right: 0;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .page-link-custom {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 0.85rem;
    }
}

.search-container {
    display: flex;
    align-items: center;
    border: 1px solid #1558ad;
    border-radius: 50px; /* 圆角 */
    padding: 10px;
    margin: 0 auto;
    margin-bottom: 50px;
}

.search-input {
    border: none; /* 无边框 */
    outline: none; /* 无轮廓 */
    background-color: transparent; /* 输入框背景颜色 */
    padding: 5px 10px; /* 输入框内边距 */
    /*flex-grow: 1;*/ /* 输入框占据剩余空间 */
    transition: all .3s ease-in-out;
    margin-right: 5px; /* 输入框与按钮之间的间距 */
}
/*    .search-input:focus {
        width: 600px;
    }*/


.search-button {
    background-color: #8C5518; /* 按钮背景颜色 */
    color: white; /* 按钮文字颜色 */
    border: none; /* 无边框 */
    border-radius: 3px; /* 按钮圆角 */
    padding: 13px 22px; /* 按钮内边距 */
    cursor: pointer; /* 鼠标悬停时显示指针 */
    display: flex;
    align-items: center;
    border-radius: 5px;
}

.form-control:focus {
    background-color: transparent;
}

.btnsearch {
    width: 40px;
    font-size: 16px;
}

.search-icon {
    margin-right: 5px; /* 图标与文字之间的间距 */
}

.btn_animation_noshadow {
    margin-right: 15px;
    font-size: 24px;
}
