body {
    font-family: "Noto Sans SC", "Public Sans", sans-serif;
    background-color: #f8f9fa;
}

/* 搜索栏样式 */
.search-input {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 12px 16px;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #0A3069;
    box-shadow: 0 0 0 3px rgba(10, 48, 105, 0.1);
}

/* 分类下拉菜单样式 */
.category-dropdown {
    position: relative;
}

.category-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 52px;
}

.category-dropdown-toggle:hover {
    background: #f3f4f6;
    border-color: #0A3069;
}

.category-dropdown-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    color: #6b7280;
}

.category-dropdown-icon.rotated {
    transform: rotate(180deg);
}

.category-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 50;
    min-width: 140px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 8px;
    flex-direction: column;
    gap: 4px;
    display: none;
}

/* 显示下拉菜单时的样式 */
.category-dropdown-menu:not(.hidden) {
    display: flex;
}

/* 确保 hidden 类能够正确隐藏元素 */
.category-dropdown-menu.hidden {
    display: none !important;
}

.category-dropdown-item {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-dropdown-item:hover {
    background: #f3f4f6;
}

.category-dropdown-item.bg-primary {
    background: #0A3069;
    color: #ffffff;
}

.category-dropdown-item.bg-primary:hover {
    background: #082654;
}

/* 搜索按钮样式 */
.search-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color 0.2s ease;
}

.search-button:hover {
    color: #0A3069;
}

/* 分类图标容器样式 - 无背景，仅显示图标 */
.category-icon {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 深色模式下的分类图标 */
.dark .category-icon {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* 分类图标悬停效果 */
.category-icon:hover {
    transform: translateY(-2px) scale(1.05);
    background: transparent;
    box-shadow: none;
}

/* 图标显示效果 */
.category-icon img {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 悬停时图标的缩放效果 */
.category-icon:hover img {
    transform: scale(1.08);
}