.search-form {
    display: flex;
    align-items: center;}

/* 搜索容器 */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;}

/* 搜索切换按钮 */
.search-toggle-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);}

.search-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);}

.search-toggle-btn i {
    color: #6b7280;
    font-size: 16px;
    transition: color 0.3s ease;}

.search-toggle-btn:hover i {
    color: #4f46e5;}

/* 搜索切换按钮隐藏状态 */
.search-toggle-btn.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;}

/* 搜索输入容器 */
.search-input-container {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    height: 40px;
    width: 0;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 5;
    overflow: hidden;}

.search-input-container.show {
    width: 280px;
    opacity: 1;
    pointer-events: auto;}

/* 搜索输入框 */
.search-input {
    width: 100%;
    height: 40px;
    padding: 0 50px 0 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    outline: none;
    font-size: 14px;
    color: #374151;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);}

.search-input::placeholder {
    color: #9ca3af;
    font-size: 14px;}

.search-input:focus {
    outline: none;
    border-color: #4f46e5;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);}

/* 搜索提交按钮 */
.search-submit-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;}

.search-submit-btn:hover {
    color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.1);}

.search-submit-btn i {
    font-size: 12px;}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-input-container.show {
        width: 240px;}
    
    .search-input {
        font-size: 13px;
        padding: 0 45px 0 16px;}
    
    .search-toggle-btn {
        width: 36px;
        height: 36px;}
    
    .search-input-container {
        height: 36px;}
    
    .search-input {
        height: 36px;
        border-radius: 18px;}
}

@media (max-width: 480px) {
    .search-input-container.show {
        width: 200px;}
}
