/* ===== 侧边栏筛选器美化 ===== */
.filter {
    border-top: 1px solid #eee;
}

.filter-wrap .filter-item {
    position: relative;
    transition: all ease 0.3s;
    border-bottom: 1px solid #f8f9fa;
    padding: 16px;
}

.filter-wrap .filter-item:last-child {
    border-bottom: none;
}

/* ===== 筛选器标题统一样式 ===== */
.filter-wrap .title {
    line-height: 1;
    padding-left: 6px;
    margin-bottom: 12px;
    font-weight: bold;
    font-size: 15px;
    border-left: 4px solid #b87100;
}

.filter-wrap ul {
    font-size: 0;
    word-spacing: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 0;
}

.filter-wrap li {
    margin: 0 !important;
    padding: 6px 10px !important;
    font-size: 13px;
    cursor: pointer;
    color: #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all ease 0.2s;
    background: #fafbfc;
    border: 1px solid #eef0f2;
    position: relative;
    overflow: hidden;
}

.filter-wrap li:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(184, 113, 0, 0.1), transparent);
    transition: left 0.5s;
}

.filter-wrap li:hover:before {
    left: 100%;
}

.filter-wrap li img {
    height: 18px;
    width: 18px;
    border-radius: 3px;
    margin-right: 8px;
}

.filter-wrap li span {
    flex: 1;
    font-weight: 500;
}

.filter-wrap li:hover {
    color: #b87100;
    border-color: #b87100;
    background: #fff9f1;
    box-shadow: 0 2px 8px rgba(184, 113, 0, 0.15);
}

.filter-wrap li.active {
    color: #fff;
    font-weight: 600;
    border-color: #b87100;
    background: linear-gradient(135deg, #b87100 0%, #c87e00 100%);
}

.filter-wrap li.active:after {
    content: "✓";
    margin-left: auto;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
}
.search-tip {
    font-size: 14px;
    margin-top: 15px;
}
.warn-tip {
    padding: 12px 16px;
    color: #b87100;
    line-height: 1.6;
    border-radius: 0 0 4px 4px;
    background: rgba(250, 232, 208, .75);
    position: relative;
    overflow: hidden;
}

.widget-left{
    margin: 0 10px 0 0 !important;
}

#search-archive em {
    font-style: normal;
    background-color: transparent;
    color: #b87100;
}


/* ===== 移动端筛选器美化 ===== */
.mysearch_page_top {
    display: none;
    width: 100%;
    position: fixed;
    z-index: 6;
    top: 64px;
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-bottom: 1px solid #f0f2f5;
}

.filter-wrap .normal-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    margin: 6px 0;
    padding: 0 10px;
    gap: 12px;
}

.filter-wrap .normal-filter .label {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    margin-right: 8px;
    white-space: nowrap;
}

.filter-wrap .normal-filter .filter-item {
    border-radius: 6px;
    word-spacing: 0;
    font-size: 0;
    flex: 1;
    padding: 8px 10px;
    position: relative;
    text-align: center;
    transition: all ease 0.3s;
    background: linear-gradient(135deg, #fafbfc 0%, #f5f6f8 100%);
    border: 1px solid #e1e4e8;
    cursor: pointer;
}

.filter-wrap .normal-filter .filter-item:hover {
    border-color: #b87100;
    background: linear-gradient(135deg, #fff9f1 0%, #fdf6e8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 113, 0, 0.15);
}

.filter-wrap .normal-filter .filter-item span {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.filter-wrap .normal-filter .filter-item .arrow {
    margin-left: 6px;
    width: 12px;
    vertical-align: 1px;
    transition: transform 0.3s ease;
}

.filter-wrap .normal-filter .filter-item:hover .arrow {
    transform: rotate(180deg);
}

.filter-wrap .normal-filter .filter-item ul {
    font-size: 13px;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    z-index: 20;
    position: absolute;
    list-style: none;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e1e4e8;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
}

.filter-wrap .normal-filter .filter-item ul li {
    margin: 0;
    padding: 10px 12px;
    transition: all ease 0.2s;
    border-bottom: 1px solid #f5f6f7;
    cursor: pointer;
    color: #333;
    font-weight: 500;
}

.filter-wrap .normal-filter .filter-item ul li:last-child {
    border-bottom: none;
}

.filter-wrap .normal-filter .filter-item ul li:hover {
    background: linear-gradient(135deg, #fff9f1 0%, #fdf6e8 100%);
    color: #b87100;
}

.filter-wrap .special-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 8px 0;
    /* 隐藏滚动条但保持滚动功能 */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-wrap .special-wrap::-webkit-scrollbar {
    display: none;
}

.filter-wrap .special-wrap .label {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    white-space: nowrap;
    padding-left: 10px;
    flex-shrink: 0;
}

.filter-wrap .special-wrap .inner-wrap {
    display: flex;
    font-size: 13px;
    align-items: center;
    gap: 10px;
    /* 关键：让内容在一行显示，不换行 */
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
}

.filter-wrap .special-wrap .inner-wrap ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.filter-wrap .special-wrap .special-item {
    min-width: 88px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e1e4e8;
    transition: all ease 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* 防止项目收缩 */
    flex-shrink: 0;
    white-space: nowrap;
}

.filter-wrap .special-wrap .special-item:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(184, 113, 0, 0.1), transparent);
    transition: left 0.5s;
}

.filter-wrap .special-wrap .special-item:hover:before {
    left: 100%;
}

.filter-wrap .special-wrap .special-item:hover {
    border-color: #b87100;
    background: #fff9f1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 113, 0, 0.15);
}

.filter-wrap .special-wrap .special-item.active {
    background: linear-gradient(135deg, #b87100 0%, #c87e00 100%);
    border-color: #b87100;
    color: #fff;
}

/* 移除移动端的选中图标，避免与文字重叠 */
.filter-wrap .special-wrap .special-item.active:after {
    display: none;
}

.filter-wrap .special-item img {
    height: 18px;
    width: 18px;
    border-radius: 3px;
    margin-right: 6px;
    flex-shrink: 0;
}

.filter-wrap .special-item span {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== 搜索结果列表美化 ===== */
.res-list {
    width: 100%;
}

.res-list li {
    display: flex;
    padding: 20px;
    border-top: 1px solid #f0f2f5;
    background: #fff;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 5px 5px;
}

.res-list li:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(184, 113, 0, 0.03), transparent);
    transition: left 0.6s;
}

.res-list li:hover {
    border-color: rgba(184, 113, 0, 0.2);
    box-shadow: 0 4px 20px rgba(184, 113, 0, 0.08);
    background: linear-gradient(135deg, #fefefe 0%, #fafbfc 100%);
}

.res-list li:hover:before {
    left: 100%;
}

.res-list li .logo-img {
    width: 28px;
    height: 28px;
    display: block;
    margin-right: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all ease 0.3s;
    flex-shrink: 0;
}

.res-list li:hover .logo-img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(184, 113, 0, 0.2);
}

.res-row-top {
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.res-row-top a {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all ease 0.3s;
    line-height: 1.4;
}

.res-row-top a:hover {
    color: #b87100;
    text-shadow: 0 1px 2px rgba(184, 113, 0, 0.1);
}

.res-row-bottom {
    width: 100%;
    font-size: 12px;
}

.res-row-content {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}

.res-row-content p {
    display: inline-block;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    padding: 8px 12px;
    border-radius: 6px;
    word-break: break-all;
    border: 1px solid #e9ecef;
    color: #495057;
    font-weight: 500;
    transition: all ease 0.3s;
}

.res-row-content p:hover {
    background: linear-gradient(135deg, #fff9f1 0%, #fdf6e8 100%);
    border-color: rgba(184, 113, 0, 0.3);
    color: #b87100;
}

.res-item {
    width: 100%;
    max-width: calc(100% - 43px);
}

.res-item .res-meta {
    margin-top: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.res-meta .meta-items {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.res-item .res-meta .meta-item {
    line-height: 1.2;
    border-radius: 4px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border: 1px solid #e9ecef;
    display: inline-flex;
    align-items: center;
    color: #495057;
    font-weight: 500;
    font-size: 12px;
    transition: all ease 0.3s;
}

.res-item .res-meta .meta-item .em {
    font-weight: 700;
    color: #b87100;
}

.res-item .res-meta .meta-item img {
    height: 16px;
}

.res-meta .share-time {
    color: #8898aa;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.res-list .content-tree:hover {
    border-color: rgba(184, 113, 0, 0.3);
    box-shadow: 0 4px 16px rgba(184, 113, 0, 0.1);
}

.content-tree .item-tree {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all ease 0.2s;
    margin-bottom: 2px;
    position: relative;
}

/* ===== 移动端响应式优化 ===== */
@media screen and (max-width: 768px) {
    .mysearch_page_top {
        display: block;
    }
    
    .site-header.mysearch-top {
        height: 142px !important;
    }

    .res-list li {
        padding: 10px;
    }

    .res-list li .logo-img {
        width: 22px;
        height: 22px;
        margin-right: 10px;
        margin-top: 2px;
    }
    
    .res-row-top {
        font-size: 15px;
    }
    
    .res-row-top a {
        line-height: 1.3;
    }

    .res-row-content p {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .res-item .res-meta {
        align-items: flex-start;
        gap: 8px;
    }
    
    .res-item .res-meta .meta-item {
        line-height: 16px !important;
        margin-right: 4px !important;
        padding: 4px 8px !important;
        font-size: 11px;
    }
    
    .res-meta .share-time {
        align-self: flex-end;
        font-size: 11px;
    }
    
    .filter-wrap li {
        transition: none;
    }
    
    .search-page-title {
        padding: 12px 10px !important;
    }
    
    .search-page-title h2 {
        font-size: 18px;
    }

    .search-page-title p {
        font-size: 13px;
    }
    
    .search-page-title p span {
        font-size: 15px;
    }
}

/* ===== 搜索页面标题美化 ===== */
.search-page-title {
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
    border: 1px solid #e9ecef;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.search-page-title h2 {
    color: #333;
    margin: 0 8px;
    display: flex;
    align-items: center;
    position: relative;
}

.search-page-title p {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.search-page-title p span {
    font-weight: 700;
    color: #b87100;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(184, 113, 0, 0.1);
}

.search-title-radius {
    border-radius: 5px 5px 0 0;
    border-bottom: none;
}

.search-box-radius {
    border: 1px solid #e9ecef;
    border-top: none;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}