/* 现代磨砂玻璃风格下拉菜单 */
.cache-cleaner {
    margin-right: 15px;
}

.cache-cleaner .nav-link {
    padding: 8px;
    color: rgba(60, 60, 67, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 10px;
}

.cache-cleaner .nav-link i {
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.cache-cleaner .nav-link:hover {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.cache-cleaner .nav-link:hover i {
    animation: shake 0.8s cubic-bezier(0.36, 0, 0.66, -0.56) both;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.cache-cleaner .dropdown-toggle::after {
    display: none;
}

.cache-cleaner .dropdown-menu {
    min-width: 280px;
    padding: 16px;
    margin-top: 10px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.cache-cleaner .dropdown-item {
    padding: 8px 16px;
    margin: 4px 0;
    color: #1F2937;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.cache-cleaner .dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(59, 130, 246, 0.05) 0%,
        rgba(59, 130, 246, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cache-cleaner .dropdown-item:hover::before {
    opacity: 1;
}

.cache-cleaner .dropdown-item:hover {
    color: #3B82F6;
    transform: translateX(8px);
}

.cache-cleaner .dropdown-item i {
    margin-right: 10px;
    font-size: 12px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cache-cleaner .dropdown-item span {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 自定义图标背景和颜色 */
.cache-cleaner .icon-all-clear {
    color: #fff;
    background: linear-gradient(135deg, #FF0080, #7928CA) !important;
}

.cache-cleaner .icon-content-clear {
    color: #fff;
    background: linear-gradient(135deg, #3B82F6, #2DD4BF) !important;
}

.cache-cleaner .icon-template-clear {
    color: #fff;
    background: linear-gradient(135deg, #F59E0B, #EF4444) !important;
}

.cache-cleaner .icon-plugin-clear {
    color: #fff;
    background: linear-gradient(135deg, #10B981, #3B82F6) !important;
}

.cache-cleaner .icon-browser-clear {
    color: #fff;
    background: linear-gradient(135deg, #6366F1, #8B5CF6) !important;
}

/* 信息图标样式 */
.cache-cleaner .info-icon {
    width: 14px;
    height: 14px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 9px;
    color: #fff;
    background: linear-gradient(135deg, #64748B, #94A3B8);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.cache-cleaner .dropdown-item:hover .info-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* 分隔提示文本 */
.cache-cleaner .dropdown-header {
    padding: 8px 16px;
    margin-top: 8px;
    color: #64748B;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 动画效果 */
.cache-cleaner .dropdown-menu.show {
    animation: dropdownFadeIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: top right;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 添加鼠标悬停时的光晕效果 */
.cache-cleaner .dropdown-item:hover i {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* 添加点击涟漪效果 */
.cache-cleaner .dropdown-item:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* 导航栏图标统一样式 */
.navbar-nav.nav-right .nav-link,
.navbar-search .search-btn,
.navbar-lang .lang-switch {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(60, 60, 67, 0.75);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav.nav-right .nav-link:hover,
.navbar-search .search-btn:hover,
.navbar-lang .lang-switch:hover {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.navbar-nav.nav-right .nav-link i,
.navbar-search .search-btn i,
.navbar-lang .lang-switch i {
    font-size: 15px;
    line-height: 1;
}

/* 统一图标容器间距 */
.navbar-nav.nav-right .icon-item,
.navbar-search,
.navbar-lang {
    margin: 0 3px;
}

/* 确保下拉菜单图标大小一致 */
.cache-cleaner .dropdown-item i,
.navbar-lang .dropdown-item .lang-icon i {
    font-size: 12px;
}

/* 搜索框容器样式 */
.navbar-search {
    position: relative;
}

.navbar-search .search-box {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 500px;
    margin-top: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08),
                0 1px 2px rgba(0, 0, 0, 0.02);
    z-index: 1031;
    animation: searchDropDown 0.3s ease;
}

.navbar-search.active .search-box {
    display: block;
}

.navbar-search .search-box-inner {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding-right: 40px;
}

.navbar-search .search-box-inner:focus-within {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.navbar-search .search-box .search-input {
    flex: 1;
    height: 40px;
    padding: 0 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #1F2937;
}

.navbar-search .search-box .search-input:focus {
    outline: none;
}

.navbar-search .search-box .search-input::placeholder {
    color: #9CA3AF;
}

.navbar-search .search-box .btn-search {
    padding: 0 16px;
    height: 40px;
    border: none;
    background: transparent;
    color: #3B82F6;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-search .search-box .btn-search:hover {
    color: #2563EB;
}

.navbar-search .search-box .btn-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f3f4f6;
    color: #6B7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-search .search-box .btn-close:hover {
    background: #e5e7eb;
    color: #374151;
}

/* 搜索结果提示 */
.navbar-search .search-box .search-tips {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 13px;
    color: #6B7280;
    background: #f9fafb;
    border-radius: 6px;
}

@keyframes searchDropDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 多语言切换现代风格样式 */
.navbar-lang {
    display: flex;
    align-items: center;
    margin: 0 5px;
}

.navbar-lang .lang-switch {
    padding: 8px;
    color: rgba(60, 60, 67, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-lang .lang-switch:hover {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.navbar-lang .dropdown-menu {
    min-width: 160px;
    padding: 8px;
    margin-top: 10px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.02),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transform-origin: top right;
    animation: langDropdownIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes langDropdownIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.navbar-lang .dropdown-item {
    padding: 10px 12px;
    margin: 2px 0;
    color: #1F2937;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-lang .dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(59, 130, 246, 0.08),
        rgba(59, 130, 246, 0.12)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-lang .dropdown-item:hover::before {
    opacity: 1;
}

.navbar-lang .dropdown-item:hover {
    color: #3B82F6;
    transform: translateX(4px);
}

.navbar-lang .dropdown-item .lang-icon {
    width: 28px;
    height: 28px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    font-size: 14px;
    transition: all 0.3s ease;
}

.navbar-lang .dropdown-item:hover .lang-icon {
    transform: scale(1.1);
    background: #3B82F6;
    color: #fff;
}

.navbar-lang .dropdown-item span {
    flex: 1;
}

.navbar-lang .dropdown-item .check-icon {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
    color: #fff;
    background: #3B82F6;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.navbar-lang .dropdown-item.active .check-icon {
    opacity: 1;
    transform: scale(1);
}

.navbar-lang .dropdown-divider {
    margin: 8px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
} 