@charset "utf-8";

/* 基础样式重置：统一全局默认样式，避免浏览器差异 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* 统一盒模型，避免padding撑大元素 */
}

a, body, div, em, h1, h2, h3, h4, h5, h6, li, p, ul {
  font-family: PingFang SC, Verdana, Helvetica Neue, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden; /* 继承原有全屏无滚动逻辑 */
}

ul {
  list-style: none;
}

/* 滚动条样式：统一各浏览器滚动条外观，简化冗余前缀 */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 0 rgba(240, 240, 240, 0.5);
  border-radius: 10px;
  background-color: rgba(50, 50, 50, 0.1);
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  box-shadow: inset 0 0 0 rgba(240, 240, 240, 0.5);
  background-color: rgba(50, 50, 50, 0.3);
}

/* Mac核心容器样式：分层管理，简化选择器层级 */
#mac {
  width: 100%;
  height: 100%;
  background: #000 no-repeat fixed center center; /* 优化背景定位，避免拉伸变形 */
  background-size: cover; /* 替换100% 100%，防止图片变形 */
  position: relative;
  scrollbar-arrow-color: #5e6a5c;
  scrollbar-face-color: #5e6a5c;
  scrollbar-3dlight-color: #5e6a5c;
  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;
}

#mac * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; /* 统一禁止文本选中 */
}

/* 模糊效果公共类：合并重复样式，减少冗余 */
#mac .blur {
  filter: blur(8px);
  -webkit-filter: blur(8px);
  transition: filter 0.3s, -webkit-filter 0.3s;
}

#mac .backgroud_blur {
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: filter 0.3s, -webkit-filter 0.3s;
}

/* 桌面容器样式 */
#mac .desktop {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
}

#mac .desktop .background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -999;
  transform: scale3d(1.1, 1.1, 1);
  background-size: cover;
  background-position: center center;
}

/* 任务栏样式：修复单位缺失，优化居中逻辑 */
#mac_task_bar {
  width: 100%;
  max-width: 1280px;
  height: 40px;
  line-height: 24px;
  position: fixed;
  top: 10px; /* 补充缺失的px单位，避免定位异常 */
  left: 50.5%;
  transform: translateX(-50%);
  box-shadow: 0 0.3125rem 0.07rem -0.3125rem rgba(0, 0, 0, 0.42);
  -webkit-box-shadow: 0 0.3125rem 0.07rem -0.3125rem rgba(0, 0, 0, 0.42);
  -moz-box-shadow: 0 0.3125rem 0.07rem -0.3125rem rgba(0, 0, 0, 0.42);
  z-index: 1000;
  background: none; /* 确保无背景，符合之前需求 */
  border: none; /* 确保无边框 */
}

/* 按钮组公共样式 */
#mac .btn_group {
  height: 100%;
  overflow: auto; /* 统一处理溢出，避免内容截断 */
}

#mac .btn_group .btn {
  float: left;
  height: 100%;
  line-height: 40px; /* 垂直居中文字 */
  color: #ebebeb;
  font-weight: 700;
  text-align: center;
  font-size: 20px;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: background-color 0.3s;
}

#mac .btn_group .btn:hover {
  color: #fff;
  background-color: rgba(49, 156, 241, 0.71);
  cursor: pointer;
}

/* 左侧按钮组 */
#mac_btn_group_left {
  float: left;
  max-width: 200px;
  padding-left: 0.5%;
}

#mac_btn_group_left .btn {
  width: 35px;
  font-size: 14px;
}

/* 中间按钮组 */
#mac_btn_group_middle {
  display: inline-block;
}

#mac_btn_group_middle .btn {
  width: 35px;
  font-size: 14px;
}

#mac_btn_group_middle .btn.active {
  background: rgba(255, 255, 255, 0.6);
}

#mac_btn_group_middle .btn:hover {
  cursor: pointer;
}

#mac_btn_group_middle .btn_title {
  display: inline-block;
  padding: 0 4px;
  text-align: center;
  margin: 0 auto;
  text-overflow: clip;
  overflow: hidden;
  white-space: nowrap;
}

#mac_btn_group_middle::-webkit-scrollbar {
  width: 2px;
}

#mac_btn_group_middle::-webkit-scrollbar-track {
  background-color: grey;
}

#mac_btn_group_middle::-webkit-scrollbar-thumb {
  background-color: rgba(30, 39, 34, 0.41);
}

/* 右侧按钮组 */
#mac_btn_group_right {
  float: right;
  max-width: 250px;
}

#mac_btn_group_right .btn {
  min-width: 4px;
  padding: 0 10px;
  font-size: 12px;
}

#mac_btn_group_right #mac_btn_command {
  font-size: 14px;
}

#mac_btn_time {
  font-size: 14px;
}

#mac_btn_show_desktop {
  border-left: 1px solid grey;
  width: 4px;
  margin-left: 3px;
  padding: 0 !important;
}

/* 快捷方式容器：修复高度异常，优化居中 */
#mac-shortcuts {
  width: 100%;
  max-width: 1280px;
  height: 100%; /* 替换1100%，避免高度溢出 */
  position: relative;
  left: 50%;
  top: 0;
  z-index: 100;
  transform: translateX(-50%);
  padding: 10px;
}

#mac-shortcuts .shortcuts-hidden .shortcut {
  display: none;
}

#mac-shortcuts .shortcut {
  width: 80px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  position: absolute;
  transition: all 0.5s;
}

#mac-shortcuts .shortcut:hover {
  background-color: rgba(255, 255, 255, 0.11);
}

#mac .shortcut > .icon {
  width: 50px;
  height: 50px;
  margin: 5px auto;
  display: block;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  font-size: 37px;
  line-height: 50px;
}

#mac .shortcut .title {
  color: #fff;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
  margin-bottom: 5px;
}

/* 菜单样式：优化定位和溢出 */
#mac-menu {
  position: fixed;
  top: 54px;
  left: 0.5rem;
  width: 12rem;
  max-width: 880px;
  height: auto;
  background-color: rgba(255, 255, 255, 0.55);
  box-shadow: 1px 1px 5px #909090;
  -moz-box-shadow: 1px 1px 5px #909090;
  -webkit-box-shadow: 1px 1px 5px #909090;
  z-index: 1000;
  overflow: hidden; /* 统一溢出处理 */
  border-radius: 0 0 3px 3px;
  transition: top 0.5s; /* 优化过渡属性，仅作用于top */
}

#mac-menu.hidden {
  top: -70%;
}

#mac-menu .list {
  width: 100%;
  padding: 5px 0 0;
  font-size: 12px;
  height: 100%;
  overflow: auto;
  animation-duration: 0.5s;
  -webkit-animation-duration: 0.5s;
}

#mac-menu .list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#mac-menu .list::-webkit-scrollbar-track {
  background-color: rgba(74, 84, 78, 0.41);
}

#mac-menu .list::-webkit-scrollbar-thumb {
  background-color: #6a6a6a;
}

#mac-menu .list .item,
#mac-menu .list .sub-item {
  color: #333;
  margin: 1px 0;
  line-height: 2em;
  padding: 0 10px;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: background-color 0.3s;
  position: relative;
}

#mac-menu .list .item {
  width: calc(100% - 20px);
}

#mac-menu .list .sub-item {
  padding-left: 30px;
  width: calc(100% - 40px);
}

#mac-menu .list .item:hover,
#mac-menu .list .sub-item:hover {
  background-color: rgba(49, 156, 241, 0.71);
  cursor: pointer;
}

#mac-menu .list .item.has-sub-down::after,
#mac-menu .list .item.has-sub-up::after {
  font: normal normal normal 14px/1 FontAwesome;
  line-height: inherit;
  float: right;
}

#mac-menu .list .item.has-sub-down::after {
  content: "\f107";
}

#mac-menu .list .item.has-sub-up::after {
  content: "\f106";
}

#mac-menu .list .item > .icon,
#mac-menu .list .sub-item > .icon {
  line-height: 2em;
  font-size: 1.2em;
  float: left;
  margin-right: 0.5em;
  position: relative;
}

#mac-menu .menu_group {
  float: left;
  width: 300px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

#mac-menu .menu_group .title {
  padding: 12px 5px 5px;
  font-size: 13px;
}

#mac-menu .menu_group:hover .title::after {
  font: normal normal normal 14px/1 FontAwesome;
  content: "\f0c9";
  line-height: inherit;
  float: right;
  margin-right: 17px;
  color: grey;
}

#mac-menu-switcher {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  border-left: 1px solid grey;
  display: none;
  cursor: pointer;
}

#mac-menu-switcher:active {
  background-color: rgba(92, 109, 92, 0.81);
}

#mac-menu > .list > .item img.icon,
#mac-menu > .list > .sub-item img.icon {
  width: 36px;
  height: 36px;
  position: relative;
  top: 2px;
}

/* 命令中心样式 */
#mac_command_center {
  position: fixed;
  top: 56px;
  right: 0;
  width: 300px;
  height: calc(100% - 25px);
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0.3125rem 0.3125rem -0.3125rem rgba(0, 0, 0, 0.117);
  -moz-box-shadow: 0 0.3125rem 0.3125rem -0.3125rem rgba(0, 0, 0, 0.117);
  color: #333;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  transition: right 0.3s; /* 优化过渡，仅作用于right */
}

#mac_command_center.hidden_right {
  right: -300px;
}

#mac_command_center::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#mac_command_center::-webkit-scrollbar-track {
  background-color: rgba(74, 84, 78, 0.41);
}

#mac_command_center::-webkit-scrollbar-thumb {
  background-color: #6a6a6a;
}

#mac_command_center > .title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-left: 10px;
  transition: background-color 0.5s;
}

#mac_command_center > .title:hover {
  background-color: rgba(255, 255, 255, 0.19);
}

#mac_command_center .command-header {
  height: 50px;
  text-align: center;
  border-bottom: 1px outset;
}

#mac_command_center .command-header .item,
#mac_command_center .command-header div {
  width: 45%;
  height: 20px;
  margin: 15px 0;
  display: inline-block;
  font-size: 14px;
  color: #eaeaea;
  background-color: rgba(121, 121, 121, 0.5);
  border-radius: 2px;
}

#mac_command_center .command-header div:hover {
  cursor: pointer;
}

#mac_command_center .command-header div.active {
  background-color: rgba(255, 255, 255, 0.5);
  color: #000;
}

#mac_command_center .command-body {
  position: relative;
  height: calc(100% - 70px);
  overflow-y: auto;
}

#mac_command_center .command-body .command-body-calendar {
  margin: 15px 0;
}

#mac_command_center .command-body .command-body-calendar .command-body-calendar-date {
  padding: 0 33px;
  color: #585858;
}

#mac_command_center .command-body .command-body-calendar .normal-date {
  font-size: 30px;
}

#mac_command_center .command-body .notice {
  width: 100%;
  margin: 5px 0;
}

#mac_command_center .command-body .notice:hover .notice-body {
  color: #333;
}

#mac_command_center .command-body .notice:hover > .notice-header .btn_close_msg {
  color: grey;
}

#mac_command_center .command-body .notice .notice-header {
  height: 25px;
  line-height: 25px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 5px 5px 0 0;
}

#mac_command_center .command-body .notice .notice-header .btn_close_msg {
  float: right;
  margin-right: 8px;
  font-size: 15px;
  color: transparent;
  cursor: pointer;
  transition: color 0.5s;
}

#mac_command_center .command-body .notice .notice-header-icon {
  margin: 2px 5px;
  vertical-align: middle;
}

#mac_command_center .command-body .notice .notice-header-icon > img {
  width: 15px;
  height: 15px;
}

#mac_command_center .command-body .notice .notice-header-title {
  font-size: 10px;
  margin: 0 5px;
  vertical-align: middle;
}

#mac_command_center .command-body .notice .notice-body {
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 0 0 5px 0;
}

#mac_command_center .command-body .notice .weather-item {
  height: 50px;
}

#mac_command_center .command-body .notice .weather-item div {
  display: inline-block;
  text-align: center;
}

#mac_command_center .command-body .notice .weather-city {
  float: left;
}

#mac_command_center .command-body .notice .weather-city .weather-city-time {
  display: block;
  font-size: 10px;
  font-weight: 400;
  text-align: left;
  margin: 5px 0 2px 10px;
  color: #868585;
}

#mac_command_center .command-body .notice .weather-city .weather-city-text {
  display: block;
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  margin: 0 0 5px 10px;
}

#mac_command_center .command-body .notice .weather-type {
  position: absolute;
  right: 70px;
}

#mac_command_center .command-body .notice .weather-type img {
  width: 30px;
  margin: 5px;
}

#mac_command_center .command-body .notice .weather-temperature {
  float: right;
  font-size: 35px;
  font-weight: 200;
  margin-right: 10px;
}

#mac_command_center .command-body .notice .notice-header,
#mac_command_center .command-body .notice .notice-body {
  width: 95%;
  margin: 0 auto;
}

#mac_command_center .msgs {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  overflow: hidden;
  display: none;
}

#mac_command_center .msgs .msg {
  width: calc(100% - 20px);
  min-height: 40px;
  padding: 10px;
  position: relative;
  transition: background-color 0.5s;
}

#mac_command_center .msgs .msg.animated {
  animation-duration: 0.5s;
  -webkit-animation-duration: 0.5s;
}

#mac_command_center .msgs .msg > .title {
  font-size: 14px;
  line-height: 28px;
}

#mac_command_center .msgs .msg > .content {
  font-size: 12px;
  padding-bottom: 5px;
}

#mac_command_center .msgs .msg > .btn_close_msg {
  transition: color 0.5s;
}

#mac_command_center .msgs .msg > .btn_close_msg:hover {
  color: #fff;
}

#mac_btn_command_center_clean_all {
  float: right;
  margin-top: 40px;
  margin-right: 24px;
  font-size: 12px;
  color: #777;
  text-align: right;
  cursor: pointer;
  transition: color 0.5s;
}

#mac_btn_command_center_clean_all:hover {
  color: #333;
}

#mac_btn_command .msgNof {
  position: fixed;
  right: 0;
  bottom: 20px;
  padding: 0 3px; /* 补充内边距，避免文字挤压 */
  border: 1px solid red;
  background-color: red;
  color: #fff;
  border-radius: 3px;
}

/* 桌面场景容器 */
#mac-desktop-scene {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  background-color: transparent;
}

/* Dock栏样式 */
.dock {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  text-align: center;
  z-index: 1003;
}

.dock-container {
  position: absolute;
  bottom: 0;
  margin: 0 auto;
  height: 100%;
  padding: 0 5px;
  background-color: rgba(255, 255, 255, 0.45);
  border-radius: 5px 5px 0 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  align-content: stretch;
}

.dock a.dock-item {
  position: absolute;
  bottom: 0;
  width: 100%;
  color: #fff;
  font: bold 12px Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
}

.dock-item span {
  display: none;
  padding: 3px 0;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.45);
}

.dock-item img {
  width: 100%;
  margin: 0 5px;
  border: none;
}

/* 启动台样式 */
#launchpad {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  z-index: 1001;
  display: block;
}

#launchpad.hidden {
  display: none;
}

#launchpad .app-serach-box {
  position: relative;
  width: 16rem;
  height: 1.75rem;
  margin: 3vh auto 20px;
  font-size: 14px;
  line-height: 20px;
}

#launchpad .app-shortcuts {
  position: fixed;
  width: calc(100% - 90px);
  height: 100%;
  margin: 0 auto;
  padding: 0 45px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: stretch;
}

#launchpad .shortcut {
  width: 75px;
  height: 75px;
  padding: 0.625rem;
  flex: 0 1 auto; /* 优化flex属性，避免挤压 */
  order: 1;
}

/* 搜索框样式 */
.search .serach-box {
  position: relative;
}

.search label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding-left: 1.25em;
  color: #fff;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAMAAAAolt3jAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAALFQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////t5hynAAAADt0Uk5TABqT4f/1u0487ui5zf6bARv6agInexLmEOPqeVS+THTz02JntjPAKkLZHoS18pFzyhXnq9wEW1Ecxze6XPngAAAAhUlEQVR4nE2MWRKCUAwEAw4C+hAEcVcEdxH3/f4HMxCknI+e6lQSItL0Goy6SRLLRqOpHLTc3Dy77QdEHYUwVx1+sdTtGX2uwTCQoxHGTEzKH1NEzFlcaoI5c4Gl6Apr5gbbHZebYl9MU2SH5HgC4rMcXQA419vP79bjqdGrcgn7m/5dfb4TpgmCJFVbRAAAAABJRU5ErkJggg==) no-repeat 0 50%;
  font-size: 14px;
  transition: left 0.4s, transform 0.4s;
}

.search .input-search {
  display: block;
  width: 100%;
  padding: 0.5em 1.75em;
  background-color: rgba(229, 231, 235, 0.2);
  border: 1px solid rgba(229, 231, 235, 0.3);
  border-radius: 0.25em;
  outline: 0;
  color: rgba(255, 255, 255, 1);
  -webkit-appearance: textfield;
}

.search .input-search:focus + label,
.search .input-search:valid + label {
  left: 0.5em;
  transform: translate(0, -50%);
}

.search .input-search:valid + label {
  text-indent: -9999px;
}

/* 颜色主题类：合并重复样式 */
#mac .black-green,
.mac-open-iframe .black-green {
  background: #009688 !important;
}

#mac .green,
.mac-open-iframe .green {
  background: #5fb878 !important;
}

#mac .black,
.mac-open-iframe .black {
  background: #393d49 !important;
}

#mac .blue,
.mac-open-iframe .blue {
  background: #1e9fff !important;
}

#mac .orange,
.mac-open-iframe .orange {
  background: #f7b824 !important;
}

#mac .red,
.mac-open-iframe .red {
  background: #ff5722 !important;
}

#mac .dark,
.mac-open-iframe .dark {
  background: #2f4056 !important;
}

#mac .purple,
.mac-open-iframe .purple {
  background: #b074e6 !important;
}

/* 图片加载器 */
#mac .img-loader {
  display: none;
}

/* 右键菜单 */
#mac .mac-context-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 150px;
  height: auto;
  background-color: rgba(255, 255, 255, 0.45);
  border-radius: 5px;
  z-index: 99999999;
  display: block;
}

#mac .mac-context-menu ul {
  margin: 0;
  padding: 0;
}

#mac .mac-context-menu ul li {
  height: 25px;
  line-height: 25px;
  margin: 3px 0;
  padding: 0 1em;
  font-size: 13px;
  cursor: default;
  transition: background-color 0.5s;
}

#mac .mac-context-menu ul li:hover {
  background-color: rgba(49, 156, 241, 0.71);
  cursor: pointer;
}

#mac .mac-context-menu ul li a {
  display: block;
  height: 100%;
  color: #333;
  text-decoration: none;
  outline: 0;
}

#mac .mac-context-menu ul hr {
  margin: 0;
  height: 0;
  border: 0;
  border-bottom: 1px solid rgba(121, 121, 121, 0.24);
}




/* 重写桌面容器布局 */
#mac-shortcuts {
  display: flex;
  flex-wrap: wrap; /* 自动换行 */
  gap: 30px; /* 图标之间的固定间距（水平和垂直），可调整 */
  padding: 20px; /* 容器内边距，避免边缘图标贴边 */
}

/* 确保每个图标容器占据独立空间 */
.shortcut {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: auto; /* 取消固定宽度，由图标大小决定 */
}
/* iframe弹窗样式 */
body .mac-open-iframe {
  background-color: transparent;
  border-radius: 6px !important;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.4);
  -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.4);
}

body .mac-open-iframe.hide {
  display: none;
}

body .mac-open-iframe .layui-layer-content {
  background-color: #fff;
  max-height: calc(100% - 24px);
}

body .mac-open-iframe .layui-layer-title {
  height: 30px;
  line-height: 30px;
  padding-left: 120px;
  background: rgba(250, 250, 250, 0.9);
  border-radius: 4px 4px 0 0;
  color: #333;
  text-align: center;
}

#mac_btn_group_middle .btn_title .icon,
.mac-open-iframe .layui-layer-title .icon {
  width: 20px;
  height: 20px;
  line-height: 20px;
  padding: 1px;
  display: inline-block;
  border-radius: 3px;
  font-size: 15px;
  text-align: center;
}

#mac_btn_group_middle .btn_title img.icon,
.mac-open-iframe .layui-layer-title img.icon {
  width: 20px;
  position: relative;
}

.mac-open-iframe .layui-layer-title img.icon {
  top: 5px;
}

body .mac-btn_refresh {
  float: right;
}

.mac-open-iframe .layui-layer-ico {
  background: url(../img/frame/assets.png) no-repeat;
  background-size: 144px;
}

.mac-open-iframe .layui-layer-setwin {
  position: absolute;
  top: 0;
  left: 0;
  width: 10rem;
  height: 30px;
  line-height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 0;
}

.mac-open-iframe .layui-layer-setwin a {
  width: 1rem;
  height: 1rem;
  margin-left: 10px;
  overflow: hidden;
  text-decoration: none;
}

.mac-open-iframe .layui-layer-min cite {
  display: none;
}

body .mac-open-iframe .layui-layer-setwin .layui-layer-min {
  background: url(../img/frame/assets.png) no-repeat -1px -26px;
  background-size: 144px;
  cursor: pointer;
}

body .mac-open-iframe .layui-layer-setwin .layui-layer-min:hover {
  background: url(../img/frame/assets.png) no-repeat -1px -49px;
  background-size: 144px;
}

body .mac-open-iframe .layui-layer-setwin a.layui-layer-close {
  background-position: -36px -26px;
  cursor: pointer;
}

body .mac-open-iframe .layui-layer-setwin a.layui-layer-close:hover {
  background-position: -36px -50px;
}

body .mac-open-iframe .layui-layer-setwin .layui-layer-max {
  background-position: -19px -25.5px;
  cursor: pointer;
}

body .mac-open-iframe .layui-layer-setwin .layui-layer-max:hover {
  background-position: -19px -49px;
}

body .mac-open-iframe .layui-layer-setwin .layui-layer-maxmin {
  background-position: -55px -25px;
  cursor: pointer;
}

body .mac-open-iframe.layui-layer-setwin .layui-layer-maxmin:hover {
  background-position: -55px -49px;
}

body .mac-open-iframe .layui-layer-setwin .layui-layer-refresh {
  background-position: -83px -25px;
  cursor: pointer;
}

body .mac-open-iframe .layui-layer-setwin .layui-layer-refresh:hover {
  background-position: -83px -48.5px;
}

body .mac-open-iframe .layui-layer-setwin .layui-layer-change-url {
  background-position: -55px -25px;
  cursor: pointer;
}

body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover {
  background-position: -83px -49px;
}

/* 动画定义：统一前缀和格式 */
@-webkit-keyframes bounce {
  0% {
    -webkit-transform: translateY(0) translateX(0.1px);
    transform: translateY(0) translateX(0.1px);
  }
  25% {
    -webkit-transform: translateY(-40px) translateX(0.1px);
    transform: translateY(-40px) translateX(0.1px);
  }
  50% {
    -webkit-transform: translateY(0) translateX(0.1px);
    transform: translateY(0) translateX(0.1px);
  }
  75% {
    -webkit-transform: translateY(-20px) translateX(0.1px);
    transform: translateY(-20px) translateX(0.1px);
  }
  100% {
    -webkit-transform: translateY(0) translateX(0.1px);
    transform: translateY(0) translateX(0.1px);
  }
}

@keyframes bounce {
  0% {
    -webkit-transform: translateY(0) translateX(0.1px);
    transform: translateY(0) translateX(0.1px);
  }
  25% {
    -webkit-transform: translateY(-40px) translateX(0.1px);
    transform: translateY(-40px) translateX(0.1px);
  }
  50% {
    -webkit-transform: translateY(0) translateX(0.1px);
    transform: translateY(0) translateX(0.1px);
  }
  75% {
    -webkit-transform: translateY(-20px) translateX(0.1px);
    transform: translateY(-20px) translateX(0.1px);
  }
  100% {
    -webkit-transform: translateY(0) translateX(0.1px);
    transform: translateY(0) translateX(0.1px);
  }
}

/* 响应式适配：按屏幕尺寸排序，简化冗余逻辑 */
@media screen and (max-width: 480px) {
  #dock {
    bottom: 0;
  }
  #dock .dock-container {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    left: 0 !important;
    padding: 0;
  }
  #mac-menu .list .item,
  #mac-menu .list .sub-item {
    width: calc(100% - 20px);
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  #dock {
    bottom: 6px;
  }
  #dock .dock-container {
    border-radius: 6px;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
  }
}

@media screen and (max-width: 768px) {
  #mac-menu {
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100% - 25px);
    border-radius: 0 0 2px 2px;
  }
  #mac-menu.hidden {
    top: calc(-100% + 25px);
  }
  #mac-menu .list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
  #mac-menu .menu_group {
    width: 90%;
    float: none;
    margin: 0 auto;
    clear: both;
  }
  #mac-menu .list .item,
  #mac-menu .list .sub-item {
    width: calc(100% - 20px);
  }
  #mac-menu > .mac-menu-hidden {
    display: block;
  }
  #mac-menu-switcher {
    display: none;
  }

  #mac_command_center {
    top: 56px;
    width: 100%;
  }
  #mac_command_center.hidden_right {
    right: -100%;
  }

  #mac_btn_group_left {
    max-width: 100px;
  }
  #mac_btn_group_left .btn {
    width: 40px;
    font-size: 16px;
  }

  #mac_btn_group_middle {
    width: calc(100% - 160px);
  }
  #mac_btn_group_middle .btn_close {
    display: none;
  }

  #mac_btn_group_right {
    max-width: 150px;
  }
  #mac_btn_group_right .btn {
    font-size: 16px !important;
  }

  #mac_btn_show_desktop {
    width: 15px;
    margin-left: 3px;
    padding: 0 !important;
  }

  #mac_btn_time {
    display: none;
  }

  .layui-layer-setwin .layui-layer-max {
    display: none;
  }

  #dock {
    bottom: 10px;
    width: 100%;
    height: 60px;
    border-radius: 0;
  }
  #dock .dock-container {
    width: 100% !important;
    border-radius: 0;
    left: 0 !important;
    padding: 0;
  }
  #dock a.dock-item {
    position: static;
    width: 100%;
    float: left;
    padding: 5px 0;
  }
  #dock .dock-item img {
    width: 90%;
    margin: 0;
  }

  body .mac-open-iframe {
    background-color: transparent;
    border: none;
    box-shadow: none;
            margin: 30px 0 0 0;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #dock {
    bottom: 10px;
  }
  #dock .dock-container {
    border-radius: 8px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  #dock {
    bottom: 6px;
  }
  #dock .dock-container {
    border-radius: 6px;
  }
}