/* 基本样式 */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

/* 修改水印样式 */
.watermark {
    position: fixed;
    bottom: 40px; /* 显示在任务栏上方 */
    right: 5px; /* 修改为5px，靠近右侧边缘 */
    font-size: 10px; /* 修改字体大小为10px */
    color: rgba(0, 0, 0, 0.3); /* 调整水印颜色和透明度 */
    z-index: 1000; /* 确保水印在其他内容之上 */
    pointer-events: none; /* 防止水印干扰点击事件 */
    white-space: normal; /* 允许文本自动换行 */
    transform: none; /* 取消旋转 */
    width: 35%; /* 固定宽度为30% */
    text-align: right; /* 文字靠右侧显示 */
}

/* 新增居中水印样式 */
.center-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 确保水印完全居中 */
    font-size: 10px;
    color: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    pointer-events: none;
    white-space: normal;
    width: 30%;
    text-align: center; /* 文字居中显示 */
}

.navbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 35px;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto; /* 添加横向滚动 */
}

.taskbar-icon-container {
    display: flex;
    align-items: center;
    gap: 5px; /* 图标之间的间隔 */
    margin: 0 auto; /* 居中显示 */
}

.taskbar-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; /* 防止图标缩小 */
}

.taskbar-icon img {
    width: 20px;
    height: 20px;
}

.home-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: absolute; /* 固定位置 */
    left: 10px; /* 修改为1px，靠近左侧边缘 */
}

.notification-btn {
    position: absolute;
    right: 10px; /* 修改为1px，靠近右侧边缘 */
    cursor: pointer;
}

.notification-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: calc(100% - 35px);
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
}

.notification-panel.active {
    right: 0;
}

.notification-content {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    margin: 20px;
}

.navbar span {
    margin: 0 20px;
    font-size: 1em;
    cursor: pointer;
}

.start-menu {
    position: fixed;
    bottom: 45px; /* 修改为45px */
    left: 5px; /* 修改为10px */
    width: 350px; /* 修改为350px */
    height: 60%; /* 修改为450px */
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    z-index: 1000;
    border-radius: 10px; /* 增加圆角 */
}

.start-menu-header {
    padding: 10px 10px 10px 15px;
    background-color: #f0f0f0;
    font-weight: bold;
    border-top-left-radius: 10px; /* 头部圆角 */
    border-top-right-radius: 10px; /* 头部圆角 */
}

.start-menu-item {
    padding: 10px;
    cursor: pointer;
}

.start-menu-item:hover {
    background-color: #f0f0f0;
}

.start-menu-footer {
    margin-top: auto; /* 将底部信息推到最下方 */
    padding: 10px;
    background-color: #f0f0f0;
    border-bottom-left-radius: 10px; /* 底部圆角 */
    border-bottom-right-radius: 10px; /* 底部圆角 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-info img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.power-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.power-btn img {
    width: 20px;
    height: 20px;
}

/* 任务栏图标样式 */
.taskbar-icon {
   /*  position: absolute; 修改为绝对定位 */
    /* right: 1px; 调整位置以适应任务栏 */
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.taskbar-icon img {
    width: 20px;
    height: 20px;
}

/* 媒体查询：适配手机端 */
@media (max-width: 768px) {
    .content {
        font-size: 1.5em;
    }

    .navbar {
        height: 40px;
    }

    .navbar span {
        margin: 0 10px;
        font-size: 0.9em;
    }

    /* 修改文件夹面板内容样式，使其在手机端每行显示3个应用，并整体居中 */
    .folder-panel-content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center; /* 内容居中显示 */
        padding: 10px;
        gap: 10px;
        overflow-y: auto;
        height: calc(100% - 40px);
    }

    .folder-panel-item {
        width: calc(33.33% - 20px); /* 每行显示3个应用，减去间隔 */
        box-sizing: border-box; /* 确保宽度包含padding和border */
    }
}

/* 电脑端通知栏宽度设置为30% */
@media (min-width: 769px) {
    .notification-panel {
        width: 30%;
    }
}

/* 新增快捷方式按钮容器样式 */
.shortcut-container {
    position: fixed;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column; /* 改为垂直排列 */
    flex-wrap: wrap; /* 超出屏幕时自动换列 */
    align-items: flex-start; /* 确保换列后对齐 */
    height: calc(94vh - 20px); /* 设置容器高度为屏幕高度减去顶部间距 */
}

/* 新增快捷方式按钮样式 */
.shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px; /* 修改为5px，确保上下左右间隔均为5px */
    cursor: pointer;
    text-align: center;
    max-width: 50px; /* 修改最大宽度为50px */
    width: 50px; /* 修改固定宽度为50px */
    height: 90px; /* 固定高度修改为70px */
}

.shortcut img {
    width: 45px;
    height: 45px;
    border-radius: 5px;
}

.shortcut span {
    margin-top: 5px;
    font-size: 12px;
    white-space: normal; /* 允许文字自动换行 */
    overflow: hidden; /* 超出宽度隐藏 */
    text-overflow: ellipsis; /* 超出高度显示省略号 */
    width: 100%; /* 宽度设置为100% */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制显示两行 */
    -webkit-box-orient: vertical;
}

/* 新增文件夹按钮样式 */
.folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px;
    cursor: pointer;
    text-align: center;
    max-width: 50px; /* 修改最大宽度为50px */
    width: 50px; /* 修改固定宽度为50px */
    height: 90px; /* 固定高度修改为70px */
}

.folder img {
    width: 45px;
    height: 45px;
    border-radius: 5px;
}

.folder span {
    margin-top: 5px;
    font-size: 12px;
    white-space: normal; /* 允许文字自动换行 */
    overflow: hidden; /* 超出宽度隐藏 */
    text-overflow: ellipsis; /* 超出高度显示省略号 */
    width: 100%; /* 宽度设置为100% */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制显示两行 */
    -webkit-box-orient: vertical;
}

/* 修改文件夹面板样式，使其更接近苹果电脑文件夹窗口效果 */
.folder-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(300px - 1px); /* 宽度修改为 calc(100% - 85px) */
    height: 350px; /* 高度调整为屏幕的50% */
    background-color: #ffffff;
    border-radius: 10px; /* 增加圆角 */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); /* 增加阴影效果 */
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.folder-panel-header {
    padding: 10px;
    background-color: #f0f0f0;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px; /* 头部圆角 */
    border-top-right-radius: 10px; /* 头部圆角 */
}

/* 美化关闭按钮，使其更接近苹果风格 */
.folder-panel-header .close-btn {
    cursor: pointer;
    font-size: 20px;
    color: #ffffff;
    background-color: #ff5f56; /* 红色背景 */
    width: 20px;
    height: 20px;
    border-radius: 50%; /* 圆形按钮 */
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 12px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2); /* 增加阴影 */
}

.folder-panel-header .close-btn:hover {
    background-color: #ff3b30; /* 悬停时颜色加深 */
}

/* 新增文件夹面板内容样式，横向排列 */
.folder-panel-content {
    display: flex;
    flex-direction: row; /* 改为横向排列 */
    flex-wrap: wrap; /* 超出文件夹宽度时自动换行 */
    justify-content: flex-start; /* 内容靠左显示 */
    padding: 10px;
    gap: 10px; /* 设置元素之间的间隔 */
    overflow-y: auto; /* 允许垂直滚动 */
    height: calc(100% - 40px); /* 设置内容区域高度，减去头部高度 */
}

.folder-panel-item {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease; /* 增加过渡效果 */
}

.folder-panel-item:hover {
    background-color: #f0f0f0;
}

/* 新增任务栏切换按钮样式 */
.taskbar-toggle-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    cursor: pointer;
    z-index: 1000;
    font-size: 24px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* 新增右键菜单样式 */
#context-menu {
    position: fixed;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding: 5px 0;
    min-width: 150px;
}

.context-menu-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.context-menu-item:hover {
    background-color: #f0f0f0;
}

.kaishi {
    margin: 0px 10px 10px 10px;
}