/* 顶部工具栏样式 */
.target-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(90, 122, 138, 0.05) 0%, rgba(0, 198, 255, 0.05) 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toolbar-left {
    flex: 1;
    min-width: 0;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* 搜索包装器 */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.toolbar-search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: rgba(90, 122, 138, 0.1);
    border: 1px solid rgba(90, 122, 138, 0.3);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.toolbar-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 198, 255, 0.25);
    background: rgba(0, 198, 255, 0.05);
}

.toolbar-search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.toolbar-clear-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(90, 122, 138, 0.15);
    border: none;
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toolbar-clear-btn:hover {
    background: rgba(255, 56, 96, 0.2);
    color: #ff3860;
}

/* 排序包装器 */
.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.sort-label {
    color: #999;
    font-size: 0.9rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.sort-label i {
    color: #bbb;
}

.toolbar-sort-select {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #999;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    min-width: 160px;
}

.toolbar-sort-select:hover {
    transform: translateY(-1px);
}

.toolbar-sort-select:focus {
    transform: translateY(-1px);
}

.toolbar-sort-select option {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 0.5rem;
}

/* 排序方向切换按钮 */
.sort-direction-btn {
    padding: 0.6rem 1rem;
    background: transparent;
    color: #999;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    box-shadow: none;
    white-space: nowrap;
    min-width: 70px;
    justify-content: center;
}

.sort-direction-btn:hover {
    transform: translateY(-1px);
}

.sort-direction-btn:active {
    transform: none;
}

.sort-direction-btn i {
    font-size: 0.85rem;
    transition: none;
}

/* 升序状态 */
.sort-direction-btn[data-direction="asc"] {
    background: transparent;
    color: #999;
    border-color: #ddd;
    box-shadow: none;
}

.sort-direction-btn[data-direction="asc"]:hover {
    transform: translateY(-1px);
}

.sort-direction-btn[data-direction="asc"] i {
    transform: none;
}

/* 降序状态 */
.sort-direction-btn[data-direction="desc"] {
    background: transparent;
    color: #999;
    border-color: #ddd;
    box-shadow: none;
}

.sort-direction-btn[data-direction="desc"]:hover {
    transform: translateY(-1px);
}

.sort-direction-btn[data-direction="desc"] i {
    transform: none;
}

.direction-text {
    font-size: 0.85rem;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .target-toolbar {
        gap: 1rem;
        padding: 1rem;
    }
    
    .search-wrapper {
        max-width: 400px;
    }
    
    .toolbar-sort-select {
        min-width: 140px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .target-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .toolbar-left {
        width: 100%;
    }
    
    .search-wrapper {
        max-width: none;
    }
    
    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-wrapper {
        flex: 1;
    }
    
    .toolbar-sort-select {
        flex: 1;
        min-width: auto;
    }
    
    .reset-filters-btn {
        padding: 0.6rem 1rem;
    }
}

/* 响应式设计 - 小屏幕手机 */
@media (max-width: 480px) {
    .target-toolbar {
        padding: 0.6rem;
    }
    
    .toolbar-search-input {
        padding: 0.6rem 2.2rem 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .sort-label {
        font-size: 0.85rem;
    }
    
    .toolbar-sort-select {
        padding: 0.5rem 2rem 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .sort-direction-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
        min-width: 50px;
    }
    
    .direction-text {
        display: none;
    }
    
    .sort-direction-btn i {
        font-size: 0.9rem;
    }
}


