/* 1.6更新拖动添加应用样式 */
.dock-container {
  display: none; /* 初始隐藏 */
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  z-index: 999;
}

.dock {
  text-align: center;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 65%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 10px;
  overflow: visible;
  transition: all 0.35s;
  border: 1px solid #abb7ec4f;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}

.dock-icons {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 48px;
  gap:10px
}

.dock-icon {
  position: relative;
  --scale: 1;
  width: calc(3rem * var(--scale));
  height: calc(3rem * var(--scale));
  background-color: transparent;
  border-radius: calc(0.85rem * var(--scale));
  transition: all 0.2s;
  transform-origin: bottom center;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
}

.dock-icon img {
  width: 100%;
  height: 100%;
  border-radius: 24%;
  transition: all 0.2s ease-out;
  object-fit: cover;
}

.dock-icon a {
  display: block;
  width: 100%;
  height: 100%;
}

.dock-toggle {
  cursor: pointer;
  color: blue;
  text-decoration: underline;
  margin-top: 10px;
}

.expand-dock {
  position: fixed;
  left: 0px;
  bottom: 20px;
  width: 35px;
  height: 50px;
  font-weight:bold;
  background: linear-gradient(-45deg, #274eee, #4667f0);
  border-radius: 0 8px 8px 0;
  color: #fccb22;
  text-align: center;
  line-height: 52px;
  cursor: pointer;
  display: none;
  z-index: 999;
}

.expand-dock:hover{
  background: linear-gradient(-45deg, #fccb24, #fde48e);
  color: #274eee;
}

/* 添加媒体查询 */
@media (min-width: 980px) {
  .dock-container {
    display: block; /* 页面宽度大于980px时显示 */
  }
}

/* Tooltip 样式 */
.docktooltip {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  font-size: 22px;
  background: #4667F0;
  color: #fff;
  padding: 6px 8px;
  border-radius: 8px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  }

.dock-icon:hover .docktooltip {
  opacity: 1;
  transform: translateX(-50%) scale(0.7);
  }

.docktooltip::before {
position: absolute;
content: "";
height: 8px;
width: 8px;
background: #4667F0;
bottom: -3px;
left: 50%;
transform: translate(-50%) rotate(45deg);
pointer-events: none;
}

.dock-divider {
height: 20px; /* 调整分割线高度 */
border-right: 2px solid #afb5ba; /* 添加竖向分割线样式 */
margin-left: 5px; /* 与上一个图标的间距 */
margin-right: 5px; /* 与下一个图标的间距 */
}

.io-black-mode .dock {
  background-color: rgb(27 29 31);
  backdrop-filter: blur(10px);
  border: 1px solid #36393b;
}
.io-black-mode .dock-divider {
border-right: 2px solid #ffffffba;
}

/* 提交网址表单样式 */
#addAppModal {
display: none; /* 默认隐藏 */
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(8px);
}
/* Modal 内容样式 */
.dockmodal-content {
background-color: #fff;
margin: 12% auto;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
width: 80%; /* 默认宽度 */
max-width: 400px; /* 最大宽度 */
text-align: left;
}
/* 标题样式 */
.dockmodal-content h2 {
margin: 0;
font-size: 24px;
font-weight: bold;
color: #333;
}
.dockmodal-content h5 {
font-size: 14px;
font-weight: normal;
color: #666;
margin-bottom: 20px;
}
/* 表单样式 */
form label {
display: block;
font-weight: bold;
margin-bottom: 5px;
color: #333;
}
.dockmodal-content input[type="text"] {
width: 100%;
padding: 8px 10px;
margin-bottom: 10px;
border: 1px solid #ddd;
border-radius: 5px;
box-sizing: border-box;
font-size: 14px;
}
form input[type="submit"] {
background-color: #274eee;
color: #fff;
border: none;
padding: 10px 20px;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
width: 100%;
}
form input[type="submit"]:hover {
background-color: #fccb24;
color:#000
}
/* 删除对话框整体样式 */
.dialog {
display: none; /* 默认隐藏 */
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(8px);
}
/* 对话框内容样式 */
.dialog-content {
background-color: #fff;
margin: 20% auto;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
width: 70%; /* 默认宽度 */
max-width: 250px; /* 最大宽度 */
text-align: center;
font-family: Arial, sans-serif;
}
/* 对话框文本 */
.dialog-content p {
font-size: 18px;
color: #333;
margin-top:10px;
margin-bottom: 20px;
}

/* 按钮样式 */
.dialog-content button {
padding: 10px 20px;
font-size: 16px;
border: none;
border-radius: 5px;
cursor: pointer;
margin: 0 10px;
background-color: #fdd13a; /* 浅灰色按钮 */
}
.dialog-content button:hover {
background-color: #274eee;
color:#FFF
}

.sortable-ghost {
opacity: 0.4;
}

.sortable-chosen {
background-color: #f0f0f0;
border: 1px dashed #ddd;
}

#dock.drag-over {
  background-color: rgba(0, 128, 255, 0.2);
  border: 1px dashed #274eee;
  transition: background-color 0.3s, border 0.3s;
}

/* iframe 框架样式 */
.dock-iframe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.dock-iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.dock-iframe-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1280px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dock-iframe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.dock-iframe-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.dock-iframe-controls svg{
  width: 16px;
  height: 16px;
}

.dock-iframe-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dock-iframe-fullscreen,
.dock-iframe-close {
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.dock-iframe-wrapper.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  transform: none;
  border-radius: 0;
}

.dock-iframe-wrapper.fullscreen .dock-iframe-body {
  height: calc(100vh - 52px);
  padding-top: 0;
}

.dock-iframe-wrapper.fullscreen .dock-iframe-body iframe {
  position: relative;
  height: 100%;
}

.dock-iframe-body {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 比例 */
}

.dock-iframe-body iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}