/* 搜索框区域 */
.search_bar {
    background: #f1f1f1;
    padding: 50px 0;
}

.search_form {
    max-width: 700px;
    width: 90%;
    margin: 0 auto;
}

.search_box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    border: 2px solid #ddd;
    padding: 0 5px 0 20px;
    transition: border-color 0.3s;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.06);
}

.search_box:focus-within {
    border-color: #343434;
    box-shadow: 0 0 8px rgba(48,100,185,0.15);
}

.search_icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.search_icon svg {
    display: block;
}

.search_input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 16px 15px;
    color: #333;
    background: transparent;
    font-weight: 300;
    line-height: 1;
}

.search_input::placeholder {
    color: #bbb;
}

.search_btn {
    flex-shrink: 0;
    font-size: 16px;
    color: #fff;
    background: #343434;
    border: none;
    border-radius: 50px;
    padding: 12px 35px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 300;
    line-height: 1;
}

.search_btn:hover {
    background: #000000;
}

/* 搜索结果区域 */
.search_result {
    background: #f1f1f1;
    padding: 40px 0 80px;
    min-height: 300px;
}

/* 结果计数 */
.result_count {
    max-width: 1300px;
    width: 90%;
    margin: 0 auto 25px;
    font-size: 16px;
    color: #666;
    font-weight: 300;
    padding-left: 5px;
}

.result_count strong {
    font-size: 16px;
    color: #3064b9;
    font-weight: 500;
}

/* 结果列表 */
.result_list {
    max-width: 1300px;
    width: 90%;
    margin: 0 auto;
}

.result_list li {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 1px 1px 2px #ccc;
    transition: box-shadow 0.3s;
}

.result_list li:hover {
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.result_item_link {
    display: block;
    text-decoration: none;
}

.result_item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 5px;
}

.result_item::after {
    content: "";
    width: 0%;
    height: 2px;
    position: absolute;
    z-index: 1;
    left: 0;
    bottom: 0;
    background-color: #3064b9;
    transition: all 0.5s;
}

.result_list li:hover .result_item::after {
    width: 100%;
}

.result_img {
    width: 200px;
    min-width: 200px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.result_img img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 1s;
}

.result_list li:hover .result_img img {
    transform: scale(1.1);
}

.result_info {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.result_title {
    font-size: 20px;
    color: #333;
    font-weight: 600;
    padding-bottom: 12px;
    transition: color 0.3s;
    line-height: 1.4;
}

.result_list li:hover .result_title {
    color: #3064b9;
}

.result_desc {
    font-size: 15px;
    color: #999;
    line-height: 28px;
    font-weight: 300;
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.result_meta {
    margin-top: auto;
}

.result_date {
    font-size: 14px;
    color: #aaa;
    font-weight: 300;
}

/* 空状态 */
.search_empty {
    max-width: 1300px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 100px 0;
}

.empty_icon {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1;
}

.empty_text {
    font-size: 18px;
    color: #666;
    font-weight: 300;
    line-height: 1.6;
}

.empty_text strong {
    font-size: 18px;
    color: #3064b9;
    font-weight: 500;
}

.empty_tip {
    font-size: 14px;
    color: #999;
    margin-top: 12px;
    font-weight: 300;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .search_bar {
        padding: 30px 0;
    }

    .search_box {
        padding: 0 3px 0 15px;
    }

    .search_input {
        font-size: 14px;
        padding: 12px 10px;
    }

    .search_btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    .search_result {
        padding: 25px 0 60px;
    }

    .result_item {
        flex-wrap: wrap;
        padding: 3px;
    }

    .result_img {
        width: 100%;
        min-width: 100%;
    }

    .result_info {
        padding: 15px 18px;
        min-height: auto;
    }

    .result_title {
        font-size: 17px;
        padding-bottom: 8px;
    }

    .result_desc {
        font-size: 14px;
        line-height: 24px;
    }

    .result_count {
        font-size: 14px;
    }

    .search_empty {
        padding: 60px 0;
    }

    .empty_icon {
        font-size: 36px;
    }

    .empty_text {
        font-size: 16px;
    }
}
