/* 1. 基础页面样式：确保页面占满屏幕，无默认边距 */
html {
    height: 100%; /* 让html标签占满浏览器高度，为子元素高度继承做基础 */
}

body {
    padding: 0; /* 清除body默认内边距 */
    margin: 0; /* 清除body默认外边距 */
    height: 100%; /* 让body占满html高度，确保页面无垂直空白 */
    overflow: hidden; /* 禁止页面整体滚动（避免桌面内容溢出时出现全局滚动条） */
}

/* 2. #win10容器全局样式：控制桌面核心交互和滚动条外观 */
#win10 *{
    /* 禁止用户选中页面文本（模拟Windows桌面，避免误选影响体验） */
    -webkit-user-select:none; /* 兼容Chrome/Safari */
    -moz-user-select:none; /* 兼容Firefox */
    -ms-user-select:none; /* 兼容IE/Edge */
    user-select:none;
}

/* 登录页面容器（若有登录流程，控制登录页背景和定位） */
#win10-login{
    background: black no-repeat fixed; /* 黑色固定背景，不重复 */
    width: 100%; /* 占满屏幕宽度 */
    height: 100%; /* 占满屏幕高度 */
    background-size: 100% 100%; /* 背景图拉伸填满容器（可能导致变形，建议用cover） */
    position: fixed; /* 固定定位，覆盖整个屏幕 */
    z-index: -1; /* 层级最低，确保在桌面下方 */
    top:0; /* 顶部对齐 */
    left:0; /* 左侧对齐 */
}

/* 桌面主容器：所有桌面元素（快捷方式、任务栏、开始菜单）的父容器 */
#win10 {
    width: 100%; /* 占满屏幕宽度 */
    height: 100%; /* 占满屏幕高度 */
    background: black no-repeat fixed; /* 桌面背景（黑色，后续可替换为壁纸图） */
    background-size: 100% 100%; /* 背景图拉伸填满（建议改为cover避免变形） */
    position: relative; /* 相对定位，作为子元素绝对定位的参考 */
    /*padding-top: 20px;*/ /* 注释：若需要顶部留白，可取消注释 */
}

/* 自定义滚动条样式（仅兼容WebKit内核浏览器，如Chrome/Safari） */
#win10 *{
    scrollbar-arrow-color: #5e6a5c;  /* 滚动条三角箭头颜色 */
    scrollbar-face-color: #5e6a5c;  /* 滚动条滑块（可拖动部分）颜色 */
    scrollbar-3dlight-color: #5e6a5c;  /* 滚动条亮边颜色（3D效果） */
    scrollbar-highlight-color: #5e6a5c;  /* 滚动条空白区域颜色 */
    scrollbar-shadow-color: #5e6a5c;  /* 滚动条阴影颜色 */
    scrollbar-darkshadow-color: #5e6a5c; /* 滚动条强阴影颜色 */
    scrollbar-track-color: rgba(74, 84, 78, 0.41);  /* 滚动条轨道（背景）颜色 */
    scrollbar-base-color:#5e6a5c;  /* 滚动条基础颜色（统一整体色调） */
}

/* 分隔线样式：控制页面中hr标签的外观（如菜单内分隔） */
#win10 hr { 
    height:0px; /* 分隔线高度为0，靠边框显示 */
    border-top:1px solid #999; /* 顶部灰色边框（实际的分隔线） */
    border-right:0px; /* 无右边框 */
    border-bottom:0px; /* 无下边框 */
    border-left:0px; /* 无左边框 */
}

/* 桌面内容区：承载快捷方式和桌面背景，与任务栏分离 */
#win10 .desktop {
    width: 100%; /* 占满#win10容器宽度 */
    height: 100%; /* 占满#win10容器高度（后续会被任务栏挤压） */
}

/* 3. 任务栏样式：桌面底部固定导航栏，分左/中/右三个按钮组 */
#win10_task_bar {
    width: 100%; /* 占满屏幕宽度 */
    position: fixed; /* 固定在屏幕底部，不随滚动移动 */
    bottom: 0; /* 底部对齐屏幕 */
    height: 40px; /* 任务栏高度（固定，确保按钮垂直居中） */
    background-color: rgba(19, 23, 28, 0.9); /* 深灰色半透明背景（模拟Windows任务栏） */
    z-index: 19930813; /* 极高层级，确保在所有桌面元素之上（避免被遮挡） */
}

/* 任务栏按钮组容器（左/中/右三组通用样式） */
#win10 .btn_group {
    height: 100%; /* 占满任务栏高度，确保按钮垂直居中 */
}

/* 任务栏单个按钮通用样式（所有组的按钮共享） */
#win10 .btn_group .btn {
    float: left; /* 按钮水平排列 */
    color: white; /* 按钮文字/图标白色 */
    text-align: center; /* 内容水平居中 */
    line-height: 40px; /* 行高=任务栏高度，实现文字垂直居中 */
    height: 100%; /* 按钮占满按钮组高度 */
    text-overflow:ellipsis; /* 文字溢出时显示省略号（避免按钮文字换行） */
    overflow: hidden; /* 隐藏溢出内容 */
    transition: background-color 0.3s; /* 背景色变化过渡动画（hover时平滑变色） */
}

/* 按钮hover效果：鼠标悬停时背景变浅 */
#win10 .btn_group .btn:hover {
    background-color: rgba(106, 105, 100, 0.71); /* 浅灰色半透明背景 */
    cursor: pointer; /* 鼠标变为手型，提示可点击 */
}

/* 3.1 任务栏左侧按钮组（Windows开始按钮 + 浏览器按钮） */
#win10_btn_group_left{
    float: left; /* 靠左排列 */
    overflow: auto; /* 溢出时显示滚动条（防止按钮过多被截断） */
    max-width:200px; /* 最大宽度限制（避免挤压中间按钮组） */
}

/* 3.2 任务栏中间按钮组（已打开窗口的缩略按钮） */
#win10_btn_group_middle{
    float: left; /* 靠左排列（在左侧组右边） */
    width:calc(100% - 240px); /* 宽度=屏幕宽度-左侧组最大宽度-右侧组最大宽度（200+40） */
    overflow: auto; /* 窗口过多时横向滚动 */
}

/* 中间按钮的关闭小按钮（默认隐藏，hover时显示） */
#win10_btn_group_middle .btn_close{
    position: absolute; /* 绝对定位（相对于父按钮） */
    right: 0; /* 靠右对齐父按钮 */
    width: 20px; /* 关闭按钮宽度 */
    text-align: center; /* 内容居中 */
    color: transparent; /* 默认透明（隐藏） */
}

/* 鼠标悬停在中间按钮时，显示关闭按钮 */
#win10_btn_group_middle .btn:hover .btn_close{
    color: rgba(131, 168, 157, 0.71); /* 浅绿色半透明（提示可关闭） */
}

/* 鼠标悬停在关闭按钮上时，颜色变纯白 */
#win10_btn_group_middle .btn:hover .btn_close:hover{
    color: white;
}

/* 中间按钮的标题（窗口名称） */
#win10_btn_group_middle .btn_title{
    float: left; /* 靠左排列 */
    width: 100%; /* 占满父按钮宽度 */
    text-overflow: ellipsis; /* 文字溢出显示省略号 */
    overflow: hidden; /* 隐藏溢出内容 */
    text-align: left; /* 文字靠左对齐 */
    white-space: nowrap; /* 文字不换行 */
}

/* 中间按钮组的滚动条样式（横向滚动条） */
#win10_btn_group_middle::-webkit-scrollbar {
    width: 2px; /* 滚动条宽度（横向时为高度） */
}
#win10_btn_group_middle::-webkit-scrollbar-track {
    background-color: #808080; /* 滚动条轨道颜色 */
}
#win10_btn_group_middle::-webkit-scrollbar-thumb {
    background-color: rgba(30, 39, 34, 0.41); /* 滚动条滑块颜色 */
}

/* 3.3 任务栏右侧按钮组（时间、消息中心、显示桌面） */
#win10_btn_group_right{
    float: right; /* 靠右排列 */
    overflow: auto; /* 溢出时滚动（防止按钮过多） */
    max-width:200px; /* 最大宽度限制（避免挤压中间组） */
}

/* 左侧按钮组的单个按钮样式（Windows图标、浏览器图标） */
#win10_btn_group_left .btn {
    height: 100%; /* 占满按钮组高度 */
    width: 48px; /* 固定宽度（确保图标居中） */
    overflow: hidden; /* 隐藏溢出内容 */
    font-size: 20px; /* 图标字体大小（FontAwesome图标） */
}

/* 右侧按钮组的单个按钮样式（时间、消息中心） */
#win10_btn_group_right .btn {
    height: 100%; /* 占满按钮组高度 */
    min-width: 4px; /* 最小宽度（避免按钮过窄） */
    padding: 0 10px; /* 左右内边距（控制按钮间距） */
    font-size: 12px ; /* 文字/图标大小（时间文字较小） */
}

/* 显示桌面按钮（任务栏最右侧窄条） */
#win10_btn_show_desktop {
    border-left: grey 1px solid; /* 左侧灰色边框（区分其他按钮） */
    width: 4px; /* 极窄宽度（模拟Windows显示桌面条） */
    margin-left: 3px; /* 左侧间距（与消息中心按钮分离） */
    padding: 0 !important /* 强制清除内边距（确保窄条样式） */
}

/* 时间显示按钮样式 */
#win10_btn_time {
    font-size: 12px; /* 时间文字大小 */
    line-height: 20px !important /* 行高=20px（让时间分两行显示：时:分 + 日期，覆盖默认40px行高） */
}

/* 4. 开始菜单样式：点击Windows按钮弹出的菜单 */
#win10-menu {
    position: fixed; /* 固定定位（相对于屏幕） */
    bottom: 41px; /* 顶部对齐任务栏底部（任务栏高40px，留1px间隙） */
    background-color: rgba(19,23,28,0.81); /* 深灰色半透明背景 */
    height: 60%; /* 菜单高度（占屏幕60%） */
    width: 75%; /* 菜单宽度（占屏幕75%） */
    max-width: 880px; /* 最大宽度（避免宽屏时菜单过宽） */
    overflow: auto; /* 溢出时滚动（菜单内容过多时） */
    padding-left:10px; /* 左侧内边距（避免内容贴边） */
    z-index: 1000; /* 高层级（低于任务栏，高于桌面内容） */
    overflow-y: hidden; /* 隐藏垂直滚动条（仅允许水平滚动，根据需求调整） */
    transition: bottom 0.5s ; /* 底部位置过渡动画（显示/隐藏时平滑滑动） */
}

/* 开始菜单隐藏状态（默认隐藏，点击后显示） */
#win10-menu.hidden {
    bottom:-70%; /* 向下移出屏幕（隐藏，-70%确保完全移出，避免残留） */
}

/* 开始菜单和消息中心的滚动条样式（统一外观） */
#win10-menu .blocks::-webkit-scrollbar,.list::-webkit-scrollbar,#win10_command_center::-webkit-scrollbar {
    width: 8px; /* 垂直滚动条宽度 */
    height: 8px; /* 水平滚动条高度 */
}
#win10-menu .blocks::-webkit-scrollbar-track,.list::-webkit-scrollbar-track,#win10_command_center::-webkit-scrollbar-track {
    background-color: rgba(74, 84, 78, 0.41); /* 滚动条轨道颜色 */
}
#win10-menu .blocks::-webkit-scrollbar-thumb,.list::-webkit-scrollbar-thumb,#win10_command_center::-webkit-scrollbar-thumb {
    background-color: #6a6a6a; /* 滚动条滑块颜色 */
}
#win10-menu .blocks::-webkit-scrollbar-button ,.list::-webkit-scrollbar-button ,#win10_command_center::-webkit-scrollbar-button  {
    /*background-color: #6a6a6a;*/ /* 滚动条按钮颜色（默认隐藏，需要时取消注释） */
}

/* 开始菜单内部两大区域：左侧列表（.list）和右侧应用块（.blocks）通用样式 */
#win10-menu .list,.blocks{
    float: left; /* 水平排列（列表在左，应用块在右） */
    width: 180px; /* 初始宽度（后续会单独重写） */
    height:100%; /* 占满菜单高度 */
    overflow: auto; /* 溢出时滚动 */
    -webkit-animation-duration: 0.5s; /* 动画时长（兼容WebKit） */
    animation-duration: 0.5s; /* 动画时长（显示/隐藏时的过渡） */
}

/* 4.1 开始菜单左侧列表（程序列表、设置、电源等） */
#win10-menu .list{
    width:240px; /* 列表宽度（大于默认180px） */
    padding:0 10px; /* 左右内边距（避免内容贴边） */
    padding-top: 5px; /* 顶部内边距（与菜单顶部留间隙） */
    font-size: 12px; /* 列表文字大小 */
    height: 100%; /* 占满菜单高度 */
}

/* 列表项带下拉子菜单的图标（向下箭头） */
#win10-menu .list .item.has-sub-down::after{
    font: normal normal normal 14px/1 FontAwesome; /* 引用FontAwesome图标字体 */
    content:"\f107"; /* 向下箭头图标代码 */
    line-height: inherit; /* 继承父元素行高（垂直居中） */
    float: right; /* 靠右对齐 */
}

/* 列表项带子菜单展开的图标（向上箭头） */
#win10-menu .list .item.has-sub-up::after{
    font: normal normal normal 14px/1 FontAwesome; /* 引用FontAwesome */
    content:"\f106"; /* 向上箭头图标代码 */
    line-height: inherit; /* 继承行高 */
    float: right; /* 靠右对齐 */
}

/* 列表项（一级菜单）和子列表项（二级菜单）通用样式 */
#win10-menu .list .item,.sub-item{
    color:white; /* 文字白色 */
    margin: 1px 0; /* 上下外边距（列表项间距） */
    line-height: 40px; /* 行高=40px（垂直居中） */
    padding: 0 10px; /* 左右内边距（内容不贴边） */
    text-overflow: ellipsis; /* 文字溢出显示省略号 */
    overflow: hidden; /* 隐藏溢出内容 */
    transition: background-color 0.3s; /* 背景色过渡动画（hover时） */
    position: relative; /* 相对定位（作为子元素定位参考） */
    width: calc(100% - 20px); /* 宽度=父容器宽度-左右内边距（避免内容溢出） */
}

/* 列表项和子列表项的图标样式 */
#win10-menu .list .item>.icon,#win10-menu .list .sub-item>.icon,.sub-item>.icon{
    line-height: 36px; /* 行高=图标高度（垂直居中） */
    font-size: 22px; /* 图标大小 */
    float: left; /* 图标靠左，文字在右 */
    margin-right: 0.5em; /* 图标与文字间距 */
    width: 36px; /* 图标固定宽度（确保对齐） */
    position: relative; /* 相对定位（微调位置） */
    top:2px; /* 向下偏移2px（视觉居中） */
    background-color: grey; /* 图标背景色（区分图标区域） */
}

/* 子列表项样式（二级菜单，缩进显示） */
#win10-menu .list .sub-item{
    padding-left:30px; /* 左侧内边距更大（缩进，区分一级菜单） */
    width: calc(100% - 40px); /* 宽度=父容器宽度-左右内边距（30px+10px） */
}

/* 列表项和子列表项hover效果 */
#win10-menu .list .item:hover,.sub-item:hover{
    background-color: rgba(72,72,72,0.58); /* 浅灰色半透明背景 */
    cursor: pointer; /* 鼠标变手型（提示可点击） */
}

/* 4.2 开始菜单右侧应用块区域（程序磁贴） */
#win10-menu .blocks{
    max-width: 650px; /* 最大宽度（避免过宽） */
    width:calc(100% - 300px); /* 宽度=菜单宽度-列表宽度（240px）- 左右间隙（20px） */
}

/* 开始菜单切换按钮（移动端显示，切换列表/应用块视图） */
#win10-menu-switcher{
    position: absolute; /* 绝对定位（相对于开始菜单） */
    height: 100%; /* 占满菜单高度 */
    border-left: 1px solid grey; /* 左侧灰色边框（区分视图区域） */
    top: 0; /* 顶部对齐 */
    right: 0; /* 右侧对齐（菜单最右侧） */
    display: none; /* 默认隐藏（仅移动端显示） */
    width: 30px; /* 按钮宽度 */
    cursor: pointer; /* 鼠标变手型 */
}

/* 切换按钮点击时的背景效果 */
#win10-menu-switcher:active{
    background-color: rgba(92, 109, 92, 0.81); /* 深绿色半透明背景（反馈点击） */
}

/* 应用块分组容器（每个分组包含标题和多个磁贴） */
#win10-menu .menu_group {
    float: left; /* 水平排列（多个分组并排） */
    width: 300px; /* 分组宽度（控制每行显示几个分组） */
    color: white; /* 分组标题文字颜色 */
    position: relative; /* 相对定位（磁贴绝对定位的参考） */
    overflow: hidden; /* 隐藏溢出内容 */
    margin-bottom: 20px; /* 底部外边距（分组之间的垂直间距） */
}

/* 应用块分组标题（如“常用程序”“系统工具”） */
#win10-menu .menu_group .title {
    padding: 5px; /* 上下内边距 */
    padding-top: 12px; /* 顶部内边距（与上部分组间距） */
    font-size: 13px; /* 标题文字大小 */
}

/* 分组标题hover效果：显示“更多选项”图标（三条杠） */
#win10-menu .menu_group:hover .title::after{
    font: normal normal normal 14px/1 FontAwesome; /* 引用FontAwesome */
    content:"\f0c9"; /* 三条杠图标代码（表示更多选项） */
    line-height: inherit; /* 继承行高（垂直居中） */
    float: right; /* 靠右对齐 */
    margin-right: 17px; /* 右侧间距（避免贴边） */
    color: grey; /* 图标灰色（默认状态） */
}

/* 单个应用磁贴样式（如浏览器、文件管理器图标） */
#win10-menu .menu_group .block {
    padding: 0; /* 清除内边距 */
    background-color: transparent; /* 透明背景（磁贴背景由.content控制） */
    float: left; /* 水平排列（多个磁贴并排） */
    box-sizing: border-box; /* 盒模型：border和padding计入宽度 */
    border: 2px solid transparent; /* 透明边框（hover时显示白色边框） */
    overflow: hidden; /* 隐藏溢出内容 */
    position: absolute; /* 绝对定位（相对于分组容器，精确控制位置） */
    top: 40px; /* 顶部对齐分组标题底部（标题高度约40px） */
    left: 0; /* 左侧对齐分组容器 */
    cursor: default; /* 鼠标默认样式（根据需求可改为pointer） */
    font-size: 16px; /* 磁贴文字大小 */
}

/* 磁贴内部内容容器（控制磁贴背景和切换动画） */
#win10-menu .menu_group .block .content {
    background-color: rgba(0, 196, 255, 0.55); /* 浅蓝色半透明背景（磁贴主色） */
    width: calc(100% + 4px); /* 宽度=磁贴宽度+边框宽度*2（覆盖透明边框） */
    height: calc(100% + 4px); /* 高度=磁贴高度+边框宽度*2 */
    position: absolute; /* 绝对定位（覆盖磁贴） */
    left: -2px; /* 向左偏移2px（对齐透明边框） */
    top: -2px; /* 向上偏移2px */
    overflow: hidden; /* 隐藏溢出内容 */
    transition: left 0.5s; /* 左侧位置过渡动画（磁贴切换效果） */
}

/* 磁贴hover时，封面内容（.cover）向左移出（显示详情内容） */
#win10-menu .menu_group .block:hover .content.cover{
    left: calc(-100% - 4px); /* 向左移出磁贴区域（完全隐藏） */
}

/* 详情内容（.detail）默认向右移出磁贴区域（隐藏） */
#win10-menu .menu_group .block .content.detail{
    left: calc(100% + 4px); /* 向右偏移磁贴宽度+4px（完全隐藏） */
}

/* 磁贴hover时，详情内容（.detail）向左移入磁贴区域（显示） */
#win10-menu .menu_group .block:hover .content.detail{
    left: -2px; /* 对齐磁贴边框（显示详情） */
}

/* 磁贴hover时，显示白色边框（突出选中状态） */
#win10-menu .menu_group .block:hover  {
    border: 2px solid white;
}

/* 5. 桌面快捷方式区域样式（桌面图标） */
#win10 #win10-shortcuts {
    height: calc(100% - 40px); /* 高度=屏幕高度-任务栏高度（避免快捷方式被任务栏遮挡） */
    position: absolute; /* 绝对定位（桌面左上角） */
    left: 0; /* 左侧对齐 */
    top: 0; /* 顶部对齐 */
    z-index: 100; /* 层级高于桌面背景，低于任务栏和开始菜单 */
}

/* 快捷方式隐藏状态（如点击显示桌面时隐藏） */
#win10 #win10-shortcuts.shortcuts-hidden .shortcut{
    display: none; /* 隐藏所有快捷方式 */
}

/* 单个桌面快捷方式样式 */
#win10 #win10-shortcuts .shortcut {
    width: 80px; /* 固定宽度（确保图标和文字对齐） */
    overflow: hidden; /* 隐藏溢出内容 */
    cursor: pointer; /* 鼠标变手型（提示可点击） */
    padding: 0; /* 清除内边距 */
    position: absolute; /* 绝对定位（可自由拖动排序，需JS配合） */
    transition: all 0.5s; /* 所有属性过渡动画（hover时的缩放/背景变化） */
}

/* 快捷方式hover效果：背景变浅 */
#win10 #win10-shortcuts .shortcut:hover {
    background-color: rgba(255, 255, 255, 0.11); /* 白色半透明背景（模拟Windows选中效果） */
}

/* 快捷方式图标样式 */
#win10 #win10-shortcuts .shortcut>.icon {
    width: 50px; /* 图标宽度 */
    height: 50px; /* 图标高度 */
    overflow: hidden; /* 隐藏溢出内容（确保图标不变形） */
    margin: 0 auto; /* 水平居中（图标在快捷方式中间） */
    color: white; /* 图标颜色（若为FontAwesome图标） */
    box-sizing: border-box; /* 盒模型：border计入宽度 */
    margin-bottom: 5px; /* 图标与文字间距 */
    margin-top: 5px; /* 图标与快捷方式顶部间距 */
    text-align: center; /* 图标内容居中（如文字图标） */
    -webkit-border-radius: 5px; /* 圆角（兼容WebKit） */
    -moz-border-radius: 5px; /* 圆角（兼容Firefox） */
    border-radius: 5px; /* 图标圆角（美化） */
    display: block; /* 块级元素（确保margin:auto生效） */
    font-size: 37px; /* 图标大小（FontAwesome图标） */
    line-height: 50px; /* 行高=图标高度（垂直居中） */
}

/* 快捷方式文字样式（图标下方的名称） */
#win10-shortcuts .shortcut .title {
    color: white; /* 文字白色 */
    font-size: 12px; /* 文字大小 */
    text-align: center; /* 水平居中 */
    line-height: 18px; /* 行高（垂直居中） */
    margin-bottom: 5px; /* 文字与下方快捷方式间距 */
}

/* 6. 消息中心样式（任务栏右侧弹出的通知面板） */
#win10_command_center {
    position: fixed; /* 固定定位（相对于屏幕） */
    right: 0; /* 右侧对齐屏幕 */
    bottom: 41px; /* 顶部对齐任务栏底部（任务栏高40px，留1px间隙） */
    width: 350px; /* 消息中心宽度（固定） */
    background-color: rgba(19,23,28,0.81); /* 深灰色半透明背景（与开始菜单一致） */
    height: calc(100% - 42px); /* 高度=屏幕高度-任务栏高度-2px间隙 */
    transition: all 0.5s; /* 所有属性过渡动画（显示/隐藏时平滑滑动） */
    overflow-x: hidden; /* 隐藏水平滚动条 */
    overflow-y: auto; /* 垂直溢出时滚动（通知过多时） */
    color: white; /* 文字白色 */
    box-sizing: border-box; /* 盒模型：padding计入宽度 */
    z-index: 1000; /* 高层级（低于任务栏，高于桌面） */
}

/* 消息中心隐藏状态（默认隐藏，点击后显示） */
#win10_command_center.hidden_right {
    right: -350px; /* 向右移出屏幕（宽度=350px，确保完全隐藏） */
}

/* 消息中心标题栏（“消息中心”文字区域） */
#win10_command_center > .title{
    position: absolute; /* 绝对定位（固定在顶部） */
    top: 0; /* 顶部对齐 */
    left: 0; /* 左侧对齐 */
    width: 100%; /* 占满消息中心宽度 */
    padding-left: 10px; /* 左侧内边距（文字不贴边） */
    transition: background-color 0.5s; /* 背景色过渡动画（hover时） */
}

/* 标题栏hover效果：背景变浅 */
#win10_command_center > .title:hover{
    background-color: rgba(255, 255, 255, 0.19); /* 白色半透明背景 */
}

/* 消息中心按钮（任务栏右侧的消息图标） */
#win10_btn_group_right #win10_btn_command{
    font-size: 20px; /* 图标大小（FontAwesome的消息图标） */
}

/* 消息通知角标（消息按钮上的红色数字提示） */
#win10_btn_command .msgNof{
    position: fixed; /* 固定定位（相对于屏幕） */
    right: 0; /* 右侧对齐 */
    bottom: 20px; /* 垂直居中任务栏（任务栏高40px，bottom=20px） */
    border: 1px solid red; /* 红色边框 */
    background-color: red; /* 红色背景（醒目提示） */
    color: white; /* 白色文字 */
    border-radius: 3px; /* 圆角（美化） */
}

/* 消息中心“全部清除”按钮 */
#win10_btn_command_center_clean_all{
    color: grey; /* 默认灰色（未hover状态） */
    text-align: right; /* 文字靠右 */
    font-size:12px; /* 文字大小 */
    float: right; /* 靠右排列 */
    margin-top:40px; /* 顶部间距（与标题栏分离） */
    margin-right:24px; /* 右侧间距（避免贴边） */
    transition: color 0.5s; /* 颜色过渡动画（hover时变白色） */
}

/* “全部清除”按钮hover效果 */
#win10_btn_command_center_clean_all:hover{
    cursor: pointer; /* 鼠标变手型 */
    color:white; /* 文字变白色 */
}

/* 消息列表容器（所有通知的父容器） */
#win10_command_center .msgs{
    position: absolute; /* 绝对定位（在标题栏下方） */
    top:60px; /* 顶部对齐标题栏底部（标题栏高度约60px） */
    left: 0; /* 左侧对齐 */
    width: 100%; /* 占满消息中心宽度 */
    overflow: hidden; /* 隐藏溢出内容 */
    /*padding: 10px;*/ /* 注释：若需要消息列表内边距，可取消注释 */
}

/* 单个消息的关闭按钮（默认隐藏，hover时显示） */
#win10_command_center .btn_close_msg{
    line-height: inherit; /* 继承父元素行高（垂直居中） */
    transition: color 0.5s ; /* 颜色过渡动画 */
}

/* 单个消息项样式 */
#win10_command_center .msgs .msg{
    width: calc(100% - 20px); /* 宽度=消息中心宽度-左右内边距（10px*2） */
    min-height: 40px; /* 最小高度（确保短消息不塌陷） */
    padding:10px; /* 内边距（消息内容不贴边） */
    margin-top: 4px; /* 顶部外边距（消息之间的间距） */
    transition: background-color 0.5s; /* 背景色过渡动画（hover时） */
    position: relative; /* 相对定位（关闭按钮绝对定位的参考） */
}

/* 消息项动画样式（如弹出通知时的动画） */
#win10_command_center .msgs .msg.animated{
    -webkit-animation-duration: 0.5s; /* 动画时长（兼容WebKit） */
    animation-duration: 0.5s; /* 动画时长 */
}

/* 消息项hover效果：背景变浅 */
#win10_command_center .msgs .msg:hover{
    cursor: default; /* 鼠标默认样式（无需点击） */
    background-color: rgba(255, 255, 255, 0.19); /* 白色半透明背景 */
}

/* 消息项hover时，标题文字变纯白 */
#win10_command_center .msgs .msg:hover .title{
    color: white;
}

/* 消息项hover时，显示关闭按钮（灰色） */
#win10_command_center .msgs .msg:hover>.btn_close_msg{
    color: grey;
}

/* 消息项hover时，内容文字变纯白 */
#win10_command_center .msgs .msg:hover>.content{
    color: white;
}

/* 消息项标题样式（如“系统通知”“应用提醒”） */
#win10_command_center .msgs .msg>.title{
    color: #c7c7c7; /* 浅灰色（默认状态，hover时变纯白） */
    font-size: 14px; /* 标题文字大小 */
    line-height: 28px; /* 行高（垂直居中） */
}

/* 消息项关闭按钮样式（默认透明隐藏） */
#win10_command_center .msgs .msg>.btn_close_msg{
    cursor: pointer; /* 鼠标变手型（提示可点击关闭） */
    color: transparent; /* 默认透明（隐藏） */
    padding: 3px; /* 内边距（扩大点击区域） */
    position: absolute; /* 绝对定位（消息项右上角） */
    top: 11px; /* 顶部对齐消息内边距 */
    right: 11px; /* 右侧对齐消息内边距 */
}

/* 关闭按钮hover效果：文字变纯白 */
#win10_command_center .msgs .msg>.btn_close_msg:hover{
    color: white;
}

/* 消息项内容样式（通知具体内容） */
#win10_command_center .msgs .msg>.content{
    font-size: 12px; /* 内容文字大小（小于标题） */
    color: #9b9b9b; /* 深灰色（默认状态，hover时变纯白） */
    padding-bottom: 5px; /* 底部内边距（与下一条消息分离） */
}

/* 7. 弹窗iframe样式（打开应用/网页时的窗口） */
#win10_btn_group_middle .btn{
    float: left; /* 水平排列（窗口缩略按钮并排） */
    box-sizing: border-box; /* 盒模型：border计入宽度 */
    height: inherit; /* 继承父容器高度（任务栏高度40px） */
    max-width: 140px; /* 最大宽度（避免按钮过宽） */
    border-bottom:4px solid #707070; /* 底部灰色边框（未激活状态） */
    line-height: 40px; /* 行高=任务栏高度（垂直居中） */
    color: white; /* 文字白色 */
    text-align: center; /* 文字居中 */
    font-size: 12px; /* 文字大小 */
    word-break: keep-all; /* 文字不换行（避免英文单词拆分） */
    padding: 0 10px; /* 左右内边距（控制按钮宽度） */
    margin-right: 1px; /* 右侧间距（按钮之间的分隔） */
    position: relative; /* 相对定位（关闭按钮的参考） */
}

/* 激活状态的窗口按钮（当前显示的窗口） */
#win10_btn_group_middle .btn.active{
    background-color: #3B3D3F; /* 深灰色背景（区分未激活按钮） */
}

/* 窗口按钮hover效果 */
#win10_btn_group_middle .btn:hover{
    cursor: pointer; /* 鼠标变手型 */
}

/* iframe弹窗容器（应用/网页窗口） */
.win10-open-iframe{
    background-color: transparent; /* 透明背景（窗口内容由iframe决定） */
    border: 1px solid #323232; /* 深灰色边框（窗口边框） */
}

/* iframe弹窗内容区域（网页/应用显示区） */
.win10-open-iframe .layui-layer-content{
    background-color: white; /* 白色背景（网页默认背景） */
    max-height: calc(100% - 42px); /* 最大高度=弹窗高度-标题栏高度（避免内容溢出） */
}

/* iframe弹窗标题栏样式 */
.win10-open-iframe .layui-layer-title{
    box-sizing: border-box; /* 盒模型：padding计入宽度 */
    background-color: rgba(49, 49, 50, 0.94); /* 深灰色半透明背景（窗口标题栏） */
    padding-right: 160px; /* 右侧内边距（预留最小化/最大化/关闭按钮位置） */
    color: white; /* 标题文字白色 */
}

/* iframe弹窗隐藏状态 */
.win10-open-iframe.hide{
    display: none; /* 隐藏弹窗 */
}

/* 弹窗刷新按钮（标题栏右侧） */
.win10-btn_refresh{
    float: right; /* 靠右排列 */
}

/* 图片加载中样式（默认隐藏） */
#win10 .img-loader{
    display: none; /* 隐藏加载动画（需要时通过JS控制显示） */
}

/* 弹窗刷新/切换URL按钮的图标样式 */
.win10-btn-refresh>span,.win10-btn-change-url>span{
    font-size: 16px !important; /* 图标大小（强制覆盖默认） */
    color: rgb(255, 255, 255); /* 图标白色 */
}

/* 弹窗最小化按钮：隐藏默认图标，用FontAwesome图标替代 */
.win10-open-iframe .layui-layer-min cite{
    display: none; /* 隐藏默认最小化图标 */
}

/* 弹窗最大化按钮：取消默认背景图 */
.win10-open-iframe .layui-layer-max:hover{
    background-image:none;
}

/* 弹窗最大化/还原按钮：透明背景 */
.win10-open-iframe .layui-layer-max,.layui-layer-maxmin{
    background:none;
}

/* 弹窗关闭按钮hover效果：红色背景+白色图标 */
.win10-open-iframe .layui-layer-setwin a.layui-layer-close1:hover{
    background:red; /* 红色背景（醒目提示） */
    color: #fff ; /* 白色图标 */
    opacity: 1; /* 不透明（默认半透明） */
}

/* 弹窗最小化按钮图标（FontAwesome） */
.win10-open-iframe .layui-layer-min::before{
    content:"\f2d1"; /* 最小化图标代码 */
    color: white; /* 图标白色 */
    font: normal normal normal 14px/1 FontAwesome; /* 引用FontAwesome */
}

/* 弹窗最大化按钮图标（FontAwesome） */
.win10-open-iframe .layui-layer-max::before{
    content:"\f2d0"; /* 最大化图标代码 */
    color: white; /* 图标白色 */
    font: normal normal normal 14px/1 FontAwesome;
}

/* 弹窗还原按钮图标（FontAwesome） */
.win10-open-iframe .layui-layer-maxmin.layui-layer-max::before{
    content:"\f2d2"; /* 还原图标代码 */
    color: white; /* 图标白色 */
    font: normal normal normal 14px/1 FontAwesome;
}

/* 弹窗关闭按钮图标（FontAwesome） */
.win10-open-iframe .layui-layer-close::before{
    content:"\f2d3"; /* 关闭图标代码 */
    color: #fff; /* 图标白色 */
    font: normal normal normal 14px/1 FontAwesome;
}

/* 弹窗按钮（最小化/最大化/关闭）：取消下划线 */
.win10-open-iframe .layui-layer-min,.layui-layer-close,.layui-layer-max{
    text-decoration: none;
}

/* 浏览器弹窗的地址栏文本框样式（若有浏览器功能） */
.win10-layer-open-browser textarea{
    margin: 20px; /* 外边距（与窗口边框分离） */
    outline: none; /* 取消聚焦时的外边框 */
    resize: none; /* 禁止调整文本框大小 */
}

/* 8. 右键菜单样式（桌面/快捷方式右键弹出的菜单） */
#win10 .win10-context-menu { 
    left: 0; /* 初始左侧位置（通过JS动态调整） */
    top: 0; /* 初始顶部位置（通过JS动态调整） */
    position: fixed; /* 固定定位（跟随鼠标位置） */
    width: 150px; /* 菜单宽度（固定） */
    height: auto; /* 高度自适应内容 */
    background-color: rgb(255, 255, 255); /* 白色背景（模拟Windows右键菜单） */
    border: #CCC 1px solid; /* 浅灰色边框 */
    display: block; /* 默认显示（通过JS控制隐藏/显示） */
    border-radius: 5px; /* 圆角（美化） */
    z-index: 99999999; /* 极高层级（确保在所有元素之上） */
}

/* 右键菜单列表容器 */
#win10 .win10-context-menu ul { 
    margin: 0px; /* 清除默认外边距 */
    padding: 0px; /* 清除默认内边距 */
}

/* 右键菜单项样式 */
#win10 .win10-context-menu ul li {
    transition: background-color 0.5s; /* 背景色过渡动画（hover时） */
    cursor: default; /* 鼠标默认样式（根据需求可改为pointer） */
    padding: 0px 1em; /* 左右内边距（文字不贴边） */
    list-style: none; /* 清除列表默认圆点 */
    line-height: 30px; /* 行高=30px（垂直居中） */
    height: 30px; /* 菜单项高度（固定） */
    margin: 3px 0; /* 上下外边距（菜单项间距） */
    font-size: 13px; /* 菜单项文字大小 */
}

/* 右键菜单项hover效果：背景变浅灰 */
#win10 .win10-context-menu ul li:hover { 
    background-color: #DDD; /* 浅灰色背景 */
}

/* 右键菜单项中的链接样式（若有跳转功能） */
#win10 .win10-context-menu ul li a {
    text-decoration: none; /* 取消下划线 */
    display: block; /* 块级元素（占满菜单项宽度） */
    height: 100%; /* 占满菜单项高度 */
    color: #333; /* 文字深灰色 */
    outline: none; /* 取消聚焦外边框 */
}

/* 右键菜单分隔线样式 */
#win10 .win10-context-menu ul hr { 
    margin: 0; /* 清除默认外边距 */
    height: 0px; /* 高度为0，靠边框显示 */
    border: 0px; /* 清除默认边框 */
    border-bottom: rgb(233,233,233) 1px solid; /* 底部浅灰色边框（分隔线） */
    border-top: none /* 无顶部边框 */
}

/* 9. 块级按钮补充样式（统一图标和文字对齐） */
/* 取消弹窗默认图标（用自定义FontAwesome图标替代） */
.win10-open-iframe .layui-layer-ico{
    background-image:none;
}

/* 弹窗按钮组（最小化/最大化/关闭）容器 */
.win10-open-iframe .layui-layer-setwin {
    position: absolute; /* 绝对定位（标题栏右侧） */
    right: 0px; /* 右侧对齐标题栏 */
    top: 0px; /* 顶部对齐标题栏 */
    font-size: 0; /* 清除inline-block元素间的空隙 */
    line-height: 40px; /* 行高=标题栏高度（垂直居中） */
    height: 40px; /* 高度=标题栏高度 */
}

/* 弹窗单个按钮样式（最小化/最大化/关闭） */
.win10-open-iframe .layui-layer-setwin a {
    position: relative; /* 相对定位（图标定位参考） */
    width: 30px; /* 按钮宽度（固定） */
    height: 40px; /* 按钮高度=标题栏高度 */
    font-size: 13px; /* 图标大小 */
    text-align: center; /* 图标居中 */
    overflow: hidden; /* 隐藏溢出内容 */
}

/* 弹窗按钮hover效果：背景变深灰 */
.win10-open-iframe .layui-layer-setwin a:hover {
    background: #5d5d5d; /* 深灰色背景 */
}

/* 弹窗标题栏图标 + 任务栏中间按钮图标通用样式 */
.win10-open-iframe .layui-layer-title .icon ,#win10_btn_group_middle .btn_title .icon{
    font-size: 15px; /* 图标大小 */
    padding: 1px; /* 内边距（缩小图标区域） */
    width: 20px; /* 图标宽度（固定） */
    height: 20px; /* 图标高度（固定） */
    line-height: 20px; /* 行高=图标高度（垂直居中） */
    display: inline-block; /* 行内块级（与文字同行） */
    border-radius: 3px; /* 图标圆角 */
    text-align: center; /* 图标内容居中 */
    margin-right: 0.5em; /* 图标与文字间距 */
}

/* 图片格式的图标样式（非FontAwesome图标） */
.win10-open-iframe .layui-layer-title img.icon,#win10_btn_group_middle .btn_title img.icon{
    width: 20px; /* 图标宽度（固定） */
    position: relative; /* 相对定位（微调位置） */
    top:5px ; /* 向下偏移5px（与文字垂直居中） */
    margin-right: 0.5em; /* 图标与文字间距 */
}

/* 开始菜单列表项中的图片图标样式 */
#win10-menu>.list>.sub-item img.icon,#win10-menu>.list>.item img.icon{
    width: 36px; /* 图标宽度（固定，与FontAwesome图标一致） */
    height:36px; /* 图标高度（固定） */
    position: relative; /* 相对定位（微调位置） */
    top:2px ; /* 向下偏移2px（垂直居中） */
    margin-right: 0.5em; /* 图标与文字间距 */
}

/* 10. 桌面舞台样式（桌面背景图层，承载壁纸动画等） */
#win10-desktop-scene{
    width: 100%; /* 占满屏幕宽度 */
    height: calc(100% - 40px); /* 高度=屏幕高度-任务栏高度（避免被遮挡） */
    position: absolute; /* 绝对定位（桌面最底层） */
    left: 0; /* 左侧对齐 */
    top: 0; /* 顶部对齐 */
    z-index: 0; /* 最低层级（在所有桌面元素下方） */
    background-color: transparent; /* 透明背景（显示壁纸） */
}

/* 11. 预设颜色类（快速给元素设置背景色，如按钮、图标） */
/* 具体效果参考：https://www.kancloud.cn/qq85569256/xzui/350010 */
.win10-open-iframe .black-green, #win10 .black-green{background:#009688!important;} /* 深绿色 */
.win10-open-iframe .green,#win10 .green{background:#5FB878!important;} /* 浅绿色 */
.win10-open-iframe .black,#win10 .black{background:#393D49!important;} /* 深黑色 */
.win10-open-iframe .blue,#win10 .blue{background:#1E9FFF!important;} /* 蓝色 */
.win10-open-iframe .orange,#win10 .orange{background:#F7B824!important;} /* 橙色 */
.win10-open-iframe .red,#win10 .red{background:#FF5722!important;} /* 红色 */
.win10-open-iframe .dark,#win10 .dark{background:#2F4056!important;} /* 深蓝色 */
.win10-open-iframe .purple,#win10 .purple{background:#b074e6!important;} /* 紫色 */

/* 12. 移动端适配样式（屏幕宽度≤768px时生效） */
@media screen and (max-width:768px){
    /* 移动端开始菜单：宽度占满屏幕（减10px边距），高度增加 */
    #win10-menu{
        width:calc(100% - 10px); /* 宽度=屏幕宽度-10px（左右留5px边距） */
        height: calc(100% - 100px); /* 高度=屏幕高度-100px（顶部留空白） */
    }
    /* 移动端开始菜单隐藏状态：完全移出屏幕底部 */
    #win10-menu.hidden{
        bottom: -100% ; /* 向下移出100%高度（完全隐藏） */
    }
    /* 移动端消息中心：宽度占满屏幕 */
    #win10_command_center{
        width: 100%; /* 取消固定350px宽度，占满屏幕 */
    }
    /* 移动端消息中心隐藏状态：完全移出屏幕右侧 */
    #win10_command_center.hidden_right {
        right: -100%; /* 向右移出100%宽度（完全隐藏） */
    }
    /* 移动端弹窗：隐藏最大化按钮（屏幕小，无需最大化） */
    .layui-layer-setwin .layui-layer-max{
        display: none;
    }
    /* 移动端任务栏左侧按钮：缩小宽度和图标 */
    #win10_btn_group_left .btn {
        height: 100%;
        width: 40px; /* 宽度从48px缩小到40px */
        overflow: hidden;
        font-size: 16px; /* 图标从20px缩小到16px */
    }
    /* 移动端任务栏右侧按钮：放大图标（便于触摸） */
    #win10_btn_group_right .btn {
        height: 100%;
        min-width: 4px;
        padding: 0 10px;
        font-size: 16px!important; /* 文字/图标从12px放大到16px（强制覆盖） */
    }
    /* 移动端显示桌面按钮：加宽（便于触摸点击） */
    #win10_btn_show_desktop {
        border-left: grey 1px solid;
        width: 30px; /* 宽度从4px加宽到30px（触摸友好） */
        margin-left: 3px;
        padding: 0 !important
    }
    /* 移动端任务栏左侧按钮组：缩小最大宽度 */
    #win10_btn_group_left{
        max-width:100px; /* 从200px缩小到100px */
    }
    /* 移动端任务栏中间按钮组：调整宽度（适配左右组缩小） */
    #win10_btn_group_middle{
        width:calc(100% - 160px); /* 宽度=屏幕宽度-左侧100px-右侧60px（原240px） */
    }
    /* 移动端任务栏中间按钮：减少内边距（避免文字换行） */
    #win10_btn_group_middle .btn{
        padding: 0 3px; /* 从10px减到3px */
    }
    /* 移动端任务栏右侧按钮组：调整最大宽度 */
    #win10_btn_group_right{
        max-width:150px; /* 从200px调整到150px */
    }
    /* 移动端开始菜单左侧列表：占满菜单宽度（隐藏应用块，通过切换按钮显示） */
    #win10-menu .list{
        padding-left: 2px;
        position: absolute; /* 绝对定位（覆盖应用块区域） */
        width: calc(100% - 60px); /* 修正语法错误：移除多余的冒号，宽度=菜单宽度-60px */
        left: 0;
        top: 0;
    }
    /* 移动端开始菜单右侧应用块：占满菜单宽度（默认隐藏，切换后显示） */
    #win10-menu .blocks{
        overflow-x: hidden; /* 禁止水平滚动 */
        position: absolute; /* 绝对定位（覆盖列表区域） */
        width:calc(100% - 60px); /* 修正语法错误：移除多余的冒号 */
        left: 0;
        top: 0;
    }
    /* 移动端应用块分组：宽度占满菜单（单行显示一个分组） */
    #win10-menu .menu_group {
        width: 90%; /* 占菜单宽度90%（留10%边距） */
        float: none; /* 取消浮动，垂直排列 */
        margin: 0 auto; /* 水平居中 */
        clear: both; /* 清除浮动影响 */
    }
    /* 移动端隐藏时间显示（节省任务栏空间） */
    #win10_btn_time{
        display: none
    }
    /* 移动端显示开始菜单切换按钮（切换列表/应用块） */
    #win10-menu-switcher{
        display: block; /* 从隐藏改为显示 */
    }
    /* 移动端开始菜单隐藏指定区域（配合切换按钮） */
    #win10-menu>.win10-menu-hidden{
        display: none;
    }
    /* 移动端隐藏任务栏中间按钮的关闭按钮（节省空间） */
    #win10_btn_group_middle .btn_close{
        display: none;
    }
    /* 移动端弹窗按钮：加宽（便于触摸） */
    .win10-open-iframe .layui-layer-setwin a {
        width: 32px; /* 从30px加宽到32px */
    }
}