/* 通用基础搜索框 */
.search {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border-radius: 8px;
    padding: 0;
    border: none;
}
.search .search-top {
    display: flex;
    align-items: center;
    gap: 0;
    background: #3a3a3a;
    border-radius: 6px;
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
}
.search .search-left {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
/* 垂直分割线 */
.search .split-line {
    width: 1px;
    background: #666;
    align-self: stretch;
    flex-shrink: 0;
    margin: 0 8px;
}
/* 全部图标统一白色 */
.search .icon-search,
.search .icon-arrow,
.search .icon-dice,
.search .icon-link,
.search .icon-filter {
    object-fit: contain;
}
.search .icon-search {
    width: 18px;
    height: 18px;
}
.search .icon-arrow {
    width: 12px;
    height: 12px;
}
.search .search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    padding: 4px 0;
}
.search .search-input::placeholder {
    color: #999;
}
.search .search-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.search .icon-btn {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}
.search .icon-btn:hover {
    transform: scale(1.15);
}
.search .icon-dice,
.search .icon-link {
    width: 20px;
    height: 20px;
}
/* 链接按钮选中：圆形红色背景 */
.search .link-btn.active {
    background-color: #ff4444;
}
/* 原有两种下拉原样保留，仅追加新类型选择器，不修改内部样式 */
.search-bar-type-dropdown_dice .filter-dropdown,
.search-bar-type-dropdown_link .filter-dropdown,
.search-bar-type-dropdown_only_filter .filter-dropdown {
    width: 100%;
    box-sizing: border-box;
    background: #3a3a3a;
    border-radius: 6px;
    margin-top: 5px;
    overflow: hidden;
}
.search-bar-type-dropdown_dice .filter-scroll,
.search-bar-type-dropdown_link .filter-scroll,
.search-bar-type-dropdown_only_filter .filter-scroll {
    width: 100%;
    box-sizing: border-box;
    max-height: 216px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    padding: 10px;
}
.search-bar-type-dropdown_dice .filter-scroll::-webkit-scrollbar,
.search-bar-type-dropdown_link .filter-scroll::-webkit-scrollbar,
.search-bar-type-dropdown_only_filter .filter-scroll::-webkit-scrollbar {
    width: 6px;
}
.search-bar-type-dropdown_dice .filter-scroll::-webkit-scrollbar-thumb,
.search-bar-type-dropdown_link .filter-scroll::-webkit-scrollbar-thumb,
.search-bar-type-dropdown_only_filter .filter-scroll::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}
.search-bar-type-dropdown_dice .filter-item,
.search-bar-type-dropdown_link .filter-item,
.search-bar-type-dropdown_only_filter .filter-item {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0 auto;
}
.search-bar-type-dropdown_dice .filter-item:hover,
.search-bar-type-dropdown_link .filter-item:hover,
.search-bar-type-dropdown_only_filter .filter-item:hover {
    background: #555;
}
.search-bar-type-dropdown_dice .filter-item.active,
.search-bar-type-dropdown_link .filter-item.active,
.search-bar-type-dropdown_only_filter .filter-item.active {
    background: #666;
}
.search-bar-type-dropdown_dice .icon-filter,
.search-bar-type-dropdown_link .icon-filter,
.search-bar-type-dropdown_only_filter .icon-filter {
    width: 22px;
    height: 22px;
}
/* LINK 类型：无背景、无边框、仅右侧图标 */
.search-bar-type-link-only {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
.search-bar-type-link-only .search-top {
    background: transparent !important;
    padding: 0 !important;
    justify-content: flex-end; /* 图标靠右 */
}
.search-bar-type-link-only .search-left,
.search-bar-type-link-only .split-line,
.search-bar-type-link-only .search-input {
    display: none !important;
}
.search-bar-type-link-only .search-right {
    margin: 0;
}