/* 首页搜索栏容器 */
.homepage-search-container {
    margin: 0 0 20px 0;
    padding: 15px 20px;
    background: transparent;
    border: 1px solid rgba(128, 128, 128, 0.15);
    /* 添加淡灰色边框 */
    border-radius: 12px;
    box-shadow: none;
    box-sizing: border-box;
}

/* 搜索栏标题 */
.search-bar-header {
    display: none;
}

/* 搜索输入区域 */
.search-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.homepage-search-input {
    flex: 1;
    height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 19px;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--font-color);
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.homepage-search-input:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(0, 196, 182, 0.15);
}

.homepage-search-input::placeholder {
    color: var(--font-color);
    opacity: 0.4;
}

.homepage-search-btn {
    height: 38px;
    padding: 0 20px;
    background: transparent;
    color: var(--theme-color);
    border: 1px solid var(--theme-color);
    border-radius: 19px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.homepage-search-btn:hover {
    background: #fff;
    color: #49b1f5;
    /* 字体改为蓝色 */
    border-color: #49b1f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 快速分类区域 */
.quick-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 5px;
}

.quick-categories-label {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    color: var(--font-color);
    margin-right: 5px;
}

.quick-category-btn {
    display: inline-block;
    padding: 3px 12px;
    background: transparent;
    /* 背景改为透明 */
    color: var(--font-color);
    border: 1px solid var(--theme-color);
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    line-height: normal;
}

.quick-category-btn:hover {
    background: transparent !important;
    /* 悬停时背景保持透明，不使用标准蓝 */
    color: #000 !important;
    /* 强制悬停字体为黑色 */
    font-weight: bold !important;
    /* 强制字体加粗 */
    border-color: var(--theme-color) !important;
    /* 保持边框颜色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.quick-category-btn.ai-btn {
    background: transparent;
}

.quick-category-btn.ai-btn:hover {
    background: transparent !important;
    color: #000 !important;
    font-weight: bold !important;
    border-color: var(--theme-color) !important;
}

/* 响应式 */
@media screen and (max-width: 768px) {
    .homepage-search-container {
        margin: 0 0 15px 0;
        padding: 12px 15px;
    }

    .search-input-wrapper {
        flex-direction: column;
    }

    .homepage-search-btn {
        width: 100%;
        justify-content: center;
    }

    .quick-categories {
        justify-content: center;
    }
}