/**
 * ailhj-search-hero.css - 搜索英雄区样式
 */

.ailhj-search-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ailhj-search-hero .ailhj-search-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}
.widget_ailhj_widget_search_hero{
    margin-bottom: 20px;
}
/* 标题 */
.ailhj-search-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ailhj-search-subtitle {
    font-size: 16px;
    margin: 0 0 30px;
    opacity: 0.9;
}

/* 搜索框 */
.ailhj-search-box {
    margin-bottom: 20px;
}

.ailhj-search-form {
    display: block;
}

.ailhj-search-input-wrap {
    display: flex;
    align-items: center;
    padding-left: 10px;
    transition: all 0.3s ease;
    /* border-radius 通过内联样式设置 */
}

.ailhj-search-input-wrap:focus-within {
    box-shadow:none;
    transform: translateY(-2px);
}

.ailhj-search-icon {
    width:16px;
    height: 16px;
    margin-left: 15px;
    fill: #999;
    flex-shrink: 0;
}

.ailhj-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 15px;
    font-size: 15px;
    outline: none;
    color: #333;
}

.ailhj-search-input::placeholder {
    color: #999;
}

.ailhj-search-btn {
    border: none;
    padding: 12px 35px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* border-radius 通过内联样式设置 */
}

.ailhj-search-btn:hover {
    background: var(--ailhj-blue-dark);
}

/* 热搜词 */
.ailhj-hot-keywords {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ailhj-hot-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
}

.ailhj-hot-label svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.ailhj-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ailhj-keyword-tag {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    /* border-radius 通过内联样式设置 */
}

.ailhj-keyword-tag:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 响应式 */
@media (max-width: 768px) {
    .ailhj-search-title {
        font-size: 24px;
    }
    
    .ailhj-search-subtitle {
        font-size: 14px;
    }
    
    .ailhj-search-input-wrap {
        padding: 4px;
    }
    
    .ailhj-search-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .ailhj-search-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .ailhj-hot-keywords {
        gap: 8px;
    }
    
    .ailhj-keyword-tag {
        padding: 4px 10px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    /* 覆盖后台配置的 min-height 和 padding */
    .ailhj-search-hero {
        min-height: auto !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .ailhj-search-content {
        padding: 20px 16px;
    }
    
    .ailhj-search-title {
        font-size: 22px;
    }
    
    .ailhj-search-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    /* 搜索框调整为紧凑布局 - 覆盖后台配置的 min-width 和 padding */
    .ailhj-search-input-wrap {
        padding: 0px !important;
        border-radius: 10px !important;
        min-width: auto !important;
    }
    
    .ailhj-search-input {
        padding: 8px 10px !important;
        font-size: 14px;
        min-width: 0 !important;
    }
    
    .ailhj-search-btn {
        padding: 10px 16px !important;
        font-size: 14px;
        white-space: nowrap;
        min-width: auto !important;
    }
    
    /* 热搜限制一行显示 */
    .ailhj-hot-keywords {
        flex-wrap: nowrap;
        overflow: hidden;
        white-space: nowrap;
        justify-content: flex-start;
        gap: 6px;
        padding: 0 4px;
    }
    
    .ailhj-hot-label {
        flex-shrink: 0;
        font-size: 12px;
    }
    
    .ailhj-keywords-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 6px;
        padding-bottom: 4px;
    }
    
    .ailhj-keywords-list::-webkit-scrollbar {
        display: none;
    }
    
    .ailhj-keyword-tag {
        padding: 3px 8px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}