/* macOS风格Dock任务栏 - 覆盖原有样式 */

/* 任务栏容器 */
.taskbar {
    position: absolute !important;
    bottom: 20px !important;
    /* 距离底部有一定距离 */
    left: 50% !important;
    transform: translateX(-50%) !important;
    /* 水平居中 */
    width: auto !important;
    max-width: 80% !important;
    height: 60px !important;
    background-color: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-radius: 18px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 15px !important;
    z-index: 1000 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #333 !important;
}

/* 开始菜单按钮 */
.start-menu-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5em;
    color: #333;
    margin-right: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.start-menu-button:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.1);
}

/* 任务栏分隔线 */
.taskbar-divider {
    width: 1px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 0 10px;
}

/* 任务栏项目容器 */
.taskbar-items {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-grow: 1;
}

/* 任务栏项目 */
.taskbar-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform-origin: bottom center;
    will-change: transform;
}

.taskbar-item i {
    font-size: 1.5em;
    color: #333;
    transition: all 0.15s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 简单的悬停效果，无缩放 */
.taskbar-item:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 移除所有缩放和滑动效果 */

/* 活动项目 */
.taskbar-item.active {
    background-color: rgba(0, 122, 255, 0.2);
}

.taskbar-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: #007AFF;
    border-radius: 50%;
}

/* 系统托盘 */
.system-tray {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.time,
.date {
    margin-left: 10px;
    font-size: 0.9em;
    color: #333;
    font-weight: 500;
}

/* 弹出效果 */
@keyframes dock-bounce {
    0% {
        transform: scale(1) translateY(0);
    }

    40% {
        transform: scale(1.15) translateY(-10px);
    }

    70% {
        transform: scale(0.95) translateY(3px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

.taskbar-item.bounce {
    animation: dock-bounce 0.5s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .taskbar {
        width: 95%;
        height: 50px;
        bottom: 10px;
    }

    .taskbar-item {
        width: 40px;
        height: 40px;
    }

    .start-menu-button {
        width: 35px;
        height: 35px;
    }
}