
  body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
	background-image:url("images/dotBg.gif");
  }
  #topbar {
    background-color: #999999;
    height: 30px;
    width: 100%;
    padding: 5px;
    position: fixed;
    top: 0;
    z-index: 6;
    display: flex; /* Enable flexbox layout */
    align-items: center; /* Vertically center the items */
	
  }
	#mediaContainer {
	  width: calc(100% - 230px);
	  height: calc(100vh - 166px);
	  margin-top: 40px;
	  margin-left: 150px;
	  position: absolute;
	  max-width: calc(100vw - 230px); /* 确保不会超出视口宽度减去工具栏 */
	  box-sizing: border-box;
	  overflow: hidden;
	}
  /*
  #mediaContainer {
    width: calc(100% - 200px);
    height: calc(100vh - 168px);
    margin-top: 40px;
    margin-left: 150px;
    position: absolute;
  }*/
  #videoContainer, #previewContainer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }
  #videoContainer {
    display: block;
    position: relative;
  }
  #previewContainer {
    display: none;
    position: relative;
  }
  .onion-skin {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 10;
  }
  #backgroundCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 1;
  }
  #thumbnails {
    width: 140px;
    height: calc(100vh - 50px);
    overflow-y: scroll;
    position: fixed;
    top: 40px;
    left: 0px;
    border-right: 1px solid #ccc;
	background-color:#EEEEEE;
	padding:5px;
  }
  .thumbnail-container {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    cursor: pointer;
  }
  .thumbnail-container img {
    width: calc(100% - 30px);
    object-fit: contain;
  }
  .thumbnail-index {
    width: 20px;
    height: 56px;
    background: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 9pt;
    font-weight: bold;
    color: black;
    writing-mode: vertical-rl;
    text-orientation: upright;
  }
  #preview img, #video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
	/* 修改 .selected 样式 */
	.selected {
		border: 3px solid #ff3333 !important; /* 使用更明显的红色边框 */
		box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); /* 添加阴影效果 */
		position: relative; /* 确保相对定位以便添加其他标识 */
		transform: translateY(-3px); /* 轻微上移以突出显示 */
		/*transition: all 0.2s ease;  平滑过渡效果 */
	}

	/* 可以为选中的缩略图添加额外标识 */
	.selected::after {
		content: '';
		position: absolute;
		bottom: -5px;
		left: 50%;
		transform: translateX(-50%);
		width: 8px;
		height: 8px;
		background-color: #ff3333;
		border-radius: 50%;
	}
  #shortcutPanel {
    position: fixed;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #333;
    border-radius: 25px;
    display: none;
    z-index: 11;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width:500px;
	overflow: hidden;
  }
  #showAiPanel {
    position: fixed;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #333;
    border-radius: 25px;
    display: none;
    z-index: 11;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width:500px;
	overflow: hidden;
	padding:0px;
	width:880px;
	height:560px;
  }
  #shortcutPanel h3 {
    margin-top: 0;
  }
  #shortcutPanel p {
    margin: 5px 0;
  }
  #aibgPanel {
    display:none;
	position: fixed;
	width: 500px;
	height: 400px;
	border:1px,solid,#333;
	border-radius:25px;
    background-color: rgba(225, 225, 225, 0.8);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index:50;
	overflow: hidden;
    gap: 10px;
}
  #aboutPanel {
    display:none;
	position: fixed;
	width: 500px;
	height: 120px;
	border:1px,solid,#333;
	border-radius:25px;
    background-color: rgba(225, 225, 225, 0.8);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index:50;
	overflow: hidden;
    gap: 10px;
}
  #userPanel {
    display:none;
	position: fixed;
	width: 500px;
	height: 300px;
	border:1px,solid,#333;
	border-radius:25px;
    background-color: rgba(225, 225, 225, 0.8);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	top: 45%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index:50;
	overflow: hidden;
    gap: 10px;
}
  #loraPanel {
    display:none;
	position: fixed;
	width: 500px;
	height: 300px;
	border:1px,solid,#333;
	border-radius:25px;
    background-color: rgba(225, 225, 225, 0.8);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index:50;
	overflow: hidden;
    gap: 10px;
}

#resultList {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  margin: 10px 0;
  padding: 8px;
  background: #f0f0f0;
  border-radius: 5px;
  height: 120px; /* 固定高度 */
  scrollbar-width: thin;
  scrollbar-color: #999 #eee;
}

#resultList img {
  height: 100px; /* 固定高度 */
  width: auto; /* 宽度自适应保持比例 */
  margin-right: 8px;
  object-fit: contain;
  border: 2px solid transparent;
  transition: all 0.2s;
  flex-shrink: 0; /* 防止图片被压缩 */
}

#resultList img:hover {
  border-color: #3498db;
  transform: translateY(-3px);
  cursor: pointer;
}


/* 自定义滚动条样式 */
#resultList::-webkit-scrollbar {
  height: 8px;
}

#resultList::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

#resultList::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 4px;
  border: 2px solid #f0f0f0;
}

#resultList::-webkit-scrollbar-thumb:hover {
  background-color: #777;
}
  
  
  #resultList1 {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
	height:70px;
    gap: 10px;
	padding:-5px;
  }
  #resultList1 img {
    max-height: 60px; /* 调整高度 */
    margin-right: 5px; /* 调整间距 */
    cursor: pointer;
  }
  #mainToolPanel{
	padding:0px;
    position: fixed;
	top:0px;
	padding-top:50px;
	right:-25px;
	width:110px;
	height:620px;
	background-color:#ccc;
	border:1px,solid,#333;
	border-radius:25px;
	background-image:url("images/lineBg.gif");
	z-index:5;
  }
  .settingPanel{
    position: fixed;
	overflow: hidden;
	width:calc(100% - 260px);
	height:150px;
	left:160px;
    display: flex;
    gap: 10px;
	bottom:-25px;
	border:1px,solid,#333;
	border-radius:25px;
    background-color: rgba(225, 225, 225, 0.8);
	z-index:5;
  }
  .panelTabTitle{
    display: flex;
    white-space: nowrap;
	width:100%;
	padding:0px;
	margin-bottom:10px;
	height:45px;
	top:0px;
    background-color: rgba(150, 150, 150, 0.5);
    align-items: center; 
    position: relative; /* 设置相对定位，用于内部元素的绝对定位 */
  }
  .tabTitleIcon{
	margin:5px;width:35px;
	height:35px;
	border-radius:25px;
	border: 1px solid #666666;
	background-color:#ffffff;box-shadow: 0 0 3px 3px rgba(51, 51, 51, 0.3);
  }
  .tabTitleTxt{
	margin-left:10px;
	font-size: 16pt;
	font-weight: bold;
	color: #FFFFFF;
	text-shadow: 0 0 1px #333, 0 0 3px #333, 0 0 5px #333, 0 0 10px #333;
  }
  .tabtitleEn{
    margin-left:10px;
	font-size: 12pt;
	color: #FFFFFF;
	text-shadow: 0 0 1px #333, 0 0 1px #333, 0 0 3px #333, 0 0 5px #333;
  }
  .panelContent{
	   padding-left:15px;
	   padding-right:15px;
  }
  .centerPanelContent{
	   padding:20px;
	   position: absolute;
  }
  
	.mainToolBtnSetting{
		cursor: pointer;
		z-index:8;
		width:100px;
		height:90px;
		border-width:0px;
		background-image:url(images/_0016_icon_01.png);		
		background-color:transparent;
		margin-bottom:10px;
		right:10px;
	}
	.mainToolBtnStopmotion{
		cursor: pointer;
		z-index:8;
		width:100px;
		height:90px;
		border-width:0px;
		background-image:url(images/_0015_icon_02.png);			
		background-color:transparent;
		margin-bottom:10px;
		right:10px;
	}
	.mainToolBtnPlay{
		cursor: pointer;
		z-index:8;
		width:100px;
		height:90px;
		border-width:0px;
		background-image:url(images/_0013_icon_04.png);			
		background-color:transparent;
		margin-bottom:10px;
		right:10px;
	}
	.mainToolBtnKey{
		cursor: pointer;
		z-index:8;
		width:100px;
		height:90px;
		border-width:0px;
		background-image:url(images/_0012_icon_05.png);			
		background-color:transparent;
		margin-bottom:10px;
		right:10px;
	}
	.mainToolBtnTimelamp{
		cursor: pointer;
		z-index:8;
		width:100px;
		height:90px;
		border-width:0px;
		background-image:url(images/_0011_icon_06.png);			
		background-color:transparent;
		margin-bottom:10px;
		right:10px;
	}
	.mainToolBtnAi{
		cursor: pointer;
		z-index:8;
		width:100px;
		height:90px;
		border-width:0px;
		background-image:url(images/ico-ai.png);			
		background-color:transparent;
		margin-bottom:10px;
		right:10px;
	}
	.mainToolBtnDraw{
		cursor: pointer;
		z-index:8;
		width:100px;
		height:90px;
		border-width:0px;
		background-image:url(images/_0010_icon_07.png);			
		background-color:transparent;
		margin-bottom:10px;
		right:10px;
	}
	.mainToolBtnCap{
		cursor: pointer;
		z-index:8;
		width:100px;
		height:90px;
		border-width:0px;
		background-image:url(images/_0000_icon_09.png);			
		background-color:transparent;
		margin-bottom:20px;
		right:10px;
		margin-top:20px;
	}
	.mainToolBtnSettingSelected{
		cursor: pointer;
		z-index:8;
		width:100px;
		height:90px;
		border-width:0px;
		background-image:url(images/_0008_icon_selected_01.png);		
		background-color:transparent;
		margin-bottom:10px;
		right:10px;
	}
	.mainToolBtnStopmotionSelected{
		cursor: pointer;
		z-index:8;
		width:100px;
		height:90px;
		border-width:0px;
		background-image:url(images/_0007_icon_selected_02.png);			
		background-color:transparent;
		margin-bottom:10px;
		right:10px;
	}
	.mainToolBtnPlaySelected{
		cursor: pointer;
		z-index:8;
		width:100px;
		height:90px;
		border-width:0px;
		background-image:url(images/_0005_icon_selected_04.png);			
		background-color:transparent;
		margin-bottom:10px;
		right:10px;
	}
	.mainToolBtnDrawSelected{
		cursor: pointer;
		z-index:8;
		width:100px;
		height:90px;
		border-width:0px;
		background-image:url(images/_0002_icon_selected_07.png);			
		background-color:transparent;
		margin-bottom:20px;
		right:10px;
	}
  #keyword{
		margin-left: 20px;
		width: 350px;
		height: 50px; /* Adjust height as needed */
		resize: none; /* Disable resizing */
		padding: 10px; /* Add some padding for better appearance */
		font-family: Arial, sans-serif; /* Set a default font */
		font-size: 14px; /* Set a default font size */
		border: 1px solid #ccc; /* Add a border */
		border-radius: 4px; /* Optional: rounded corners */
  }
  #loopPlayback {
		display: none; /* Hide the default checkbox */
	}

	.checkbox-label img {
		cursor: pointer; /* Change cursor to pointer on hover */
	}
	
   .panelCloseBtn{
	    position:absolute;
	    right:0;
		margin:5px;
		padding:5px;
		text-align:center;
		width:20px;
		height:20px;
		border-radius:20px;
		border: 1px solid #666666;
		background-color:#ffffff;box-shadow: 0 0 3px 3px rgba(51, 51, 51, 0.3);
		cursor: pointer;
   }
   
   
   

/* 设置loraPromptShow为弹性容器 */
#loraPromptShow {
	width:300px;
    overflow-x: auto; /* 如果内容超出容器宽度，允许水平滚动 */
    list-style: none; /* 移除默认的列表样式 */
	height:25px;
	padding:5px;
	padding-left:15px;
	color:#FFFFFF;
	background-color:#666666;	
	border-radius: 10px;
	margin:0px;
}

/* 设置loraPromptItem的样式 */
.loraPromptItem {
    display: flex; /* 使用flex布局 */
    align-items: flex-start; /* 垂直对齐顶部 */
    margin: 5px; /* 可根据需要调整外边距 */
    position: relative; /* 设置相对定位，用于内部元素的绝对定位 */
}

/* 设置loraNameTag的样式 */
.loraNameTag {
    margin-right: 10px; /* 根据需要调整与删除按钮的间距 */
	padding:6px;
	padding-left:10px;
	padding-right:15px;
	border-color:;
	border-style:solid;
	border-width:1px;
	border-radius: 5px;
	background-image: -webkit-linear-gradient( -90deg, #FF8C00, #D2691E);
	
	
	
    border: 1px solid #996633; /* 按钮边框为1像素且橙色 */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.35); /* 设置阴影，5像素模糊度，35%透明度 */
    font-size: 16px; /* 文字大小为16号 */
    color: white; /* 按钮文字颜色为白色 */
    transition: background-color 0.3s, box-shadow 0.3s; /* 设置背景与阴影过渡效果 */	
	
}

/* 设置delLoraPrompt的样式 */
.delLoraPrompt {
	width:12px;
	height:12px;
	line-height:10px;
    position: absolute; /* 绝对定位 */
    top: 3px; /* 顶部对齐 */
    right: 3px; /* 右侧对齐 */
    cursor: pointer; /* 将鼠标样式改为指针，表明可点击 */
	border-radius: 50%;
	border-color:#D2691E;
	color:#D2691E;
	border-style:solid;
	border-width:1px;
	background-color:#FFF;
	
}

/* 确保loraPromptItem内的元素不换行 */
.loraPromptItem > * {
    white-space: nowrap; /* 不换行 */
}

.loraTabTitle{
	
    margin-right: 10px; /* 根据需要调整与删除按钮的间距 */
	padding:6px;
	margin:-12px;
	margin-right:15px;
	padding-left:15px;
	padding-right:15px;
	border-radius: 5px;
	border-top-right-radius:0px;
	border-bottom-right-radius:0px;
	background-image: -webkit-linear-gradient( -90deg, #666666, #444444);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.35); /* 设置阴影，5像素模糊度，35%透明度 */
    font-size: 16px; /* 文字大小为16号 */
    color: white; /* 按钮文字颜色为白色 */
    transition: background-color 0.3s, box-shadow 0.3s; /* 设置背景与阴影过渡效果 */
	display: flex;
	align-items: center;
}

/* 对应 id="loraList" 的样式 */
#loraList {
    width: 100%;
    height: 200px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5px;
    box-sizing: border-box;
    margin: 5px auto;
	background-color:#EEEEEE;
}

/* 对应 class="loraThumb" 的样式 */
.loraThumb {
    position: relative; /* 设置为相对定位，允许子元素绝对定位 */
    width: 100px;
    height: 150px; /* 更新为图片的高度 */
    margin: 5px;
    padding: 2px;
    box-sizing: border-box;
    border: 1px solid white; /* 图片边框 */
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.35); /* 阴影效果 */
    border-radius: 10px; /* 圆角 */
    overflow: hidden; /* 防止子元素溢出容器 */
}

/* 对应 class="loraThumbImg" 的样式 */
.loraThumbImg {
    width: 100%; /* 相对于父容器的百分比 */
    height: 100%; /* 相对于父容器的百分比 */
    object-fit: cover;
    border-radius: 10px; /* 圆角 */
    cursor: pointer;
}

/* 对应 class="loraName" 的样式 */
.loraName {
    position: absolute; /* 绝对定位，相对于父容器 */
    bottom: 0; /* 设置在父容器底部 */
    left: 0; /* 设置在父容器左侧 */
    width: 100%; /* 宽度为父容器的100% */
    background-color: rgba(0, 0, 0, 0.5); /* 半透明的背景 */
    color: white; /* 文字颜色 */
    font-size: 12px; /* 字号 */
    font-weight: normal; /* 默认字体粗细 */
    text-align: center; /* 文本居中对齐 */
    padding: 3px 0; /* 上下内边距 */
    box-sizing: border-box;
    transition: background-color 0.3s, font-weight 0.3s; /* 过渡效果 */
}

/* 鼠标悬停在 .loraThumb 上时的样式 */
.loraThumb:hover .loraName {
    background-color: rgba(0, 0, 0, 1); /* 完全不透明的背景 */
    font-weight: bold; /* 加粗字体 */
}
/* Additional CSS styles for pollinationAi features */

#resultList {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 10px 0;
    padding: 5px;
    background: #f0f0f0;
    border-radius: 5px;
    height: 120px; /* Increased height to accommodate delete buttons */
    scrollbar-width: thin;
}

.thumbnail-container {
    position: relative;
    margin: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}


.thumbnail-container:hover {
    border-color: #3498db;
    transform: translateY(-3px);
}

.result-thumbnail {
    display: block;
    height: 100px;
    object-fit: cover;
    pointer-events: auto; /* 确保点击事件被捕获 */
    cursor: pointer;
    -webkit-user-drag: none; /* 防止在某些浏览器中可拖拽 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.delete-thumbnail-button {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    border: 1px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 1;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-thumbnail-button:hover {
    opacity: 1;
}

#lastResult {
    position: relative;
    margin-top: 10px;
    max-height: 400px;
    overflow: auto;
}

#resultImg {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
}

#resultPrompt {
    padding: 5px;
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
}

.button-container {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

#downloadBtn, #applyBackgroundBtn {
    padding: 5px 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

#downloadBtn:hover, #applyBackgroundBtn:hover {
    background: #2980b9;
}

.large-image-preview-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.large-preview-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.large-preview-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 30px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apply-background-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.show {
    display: block;
}

.hide {
    display: none;
}

/* Prevent keyboard shortcut interference when input is focused */
body.input-focused .mainToolBtnCap,
body.input-focused #sequenceToggle,
body.input-focused #copyFrame,
body.input-focused #pasteFrame,
body.input-focused #deleteFrame {
    pointer-events: none;
    opacity: 0.5;
}
body.input-focused .shortcut-sensitive {
    pointer-events: none;
    opacity: 0.5;
}

/* 添加到main.css */
#aboutPanel {
    height: auto !important;
    min-height: 200px;
    max-height: 300px;
}

#authStatus {
    margin: 2px 0;
    padding: 5px;
    border-radius: 5px;
    background-color: rgba(245, 245, 245, 0.8);
}

#trialAuthBtn, #clearAuthBtn {
    padding: 6px 12px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

#trialAuthBtn {
    background-color: #4CAF50;
    color: white;
}

#trialAuthBtn:hover {
    background-color: #45a049;
}

#clearAuthBtn {
    background-color: #f44336;
    color: white;
}

#clearAuthBtn:hover {
    background-color: #d32f2f;
}

/* 添加到 main.css */
.toggle-switch {
  display: flex;
  align-items: center;
  margin: 0 10px;
}

.toggle-label {
  font-size: 14px;
  margin: 0 5px;
  user-select: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  transform: translateX(32px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* 添加到 main.css */
@media (max-width: 768px) {
  #mediaContainer {
    width: calc(100% - 160px);
    margin-left: 150px;
    height: calc(100vh - 200px);
    max-width: 100%;
  }
  
  #topbar {
    height: auto;
    min-height: 30px;
    flex-wrap: wrap;
    padding: 5px 2px;
  }
  
  #thumbnails {
    width: 120px;
  }
  
  .settingPanel {
    width: calc(100% - 240px);
    height: 170px;
    left: 140px;
  }
  
  .toggle-switch {
    margin: 0 5px;
  }
  
  .switch {
    width: 50px;
    height: 24px;
  }
  
  .slider:before {
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
  }
  
  input:checked + .slider:before {
    transform: translateX(26px);
  }
}

/* 确保视频和预览内容总是保持16:9比例 */
#video, #preview img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  background-color: #000;
}
/* 确认面板样式修改 */
#confirmClearPanel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  align-items: center;  /* 垂直居中 */
  justify-content: center;  /* 水平居中 */
}


#confirmClearPanel .confirm-content {
  position: absolute;  /* 使用绝对定位增强居中效果 */
  top: 50%;  /* 从顶部50%开始 */
  left: 50%;  /* 从左侧50%开始 */
  transform: translate(-50%, -50%);  /* 偏移自身50%以实现完美居中 */
  background-color: rgba(225, 225, 225, 0.8);
  padding: 20px;
  border-radius: 25px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 90%;
  text-align: center;
}

#confirmClearPanel h3 {
  margin-top: 0;
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
}

#confirmClearPanel p {
  margin-bottom: 20px;
  color: #444;
}

#confirmClearPanel .confirm-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

#clearCacheConfirmBtn {
  padding: 8px 16px;
  background-color: #d32f2f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

#clearCacheCancelBtn {
  padding: 8px 16px;
  background-color: #757575;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#clearCacheConfirmBtn:hover {
  background-color: #b71c1c;
}

#clearCacheCancelBtn:hover {
  background-color: #616161;
}

/* main.css - 修复版本的关键部分 */

/* 修复项目信息显示位置，避免遮挡关于按钮 */
#frameInfo {
    color: #eeeeee !important;
    margin-right: 5px !important;
    font-size: 12px !important;
    position: fixed !important;
    top: 10px !important;
    right: 100px !important; /* 向左移动避免遮挡关于按钮 */
    z-index: 7 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 2px 8px !important;
    border-radius: 3px !important;
}

/* 摄像头状态提示位置调整 */
#cameraStatus {
    position: fixed !important;
    top: 60px !important;
    right: 20px !important;
    padding: 8px 15px !important;
    border-radius: 5px !important;
    color: white !important;
    z-index: 1001 !important;
    font-weight: bold !important;
    text-align: center !important;
    min-width: 200px !important;
    max-width: 300px !important;
    font-size: 13px !important;
}

/* 确保关于按钮不被遮挡 */
#aboutBtn {
    position: fixed !important;
    right: 20px !important;
    top: 8px !important;
    z-index: 8 !important;
    vertical-align: middle !important;
}

/* 修复定格拍摄设置面板布局 */
.compact-camera-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 5px 0;
}

.control-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 30px;
}

.control-section select,
.control-section input[type="radio"],
.control-section input[type="checkbox"],
.control-section label,
.control-section button {
    margin: 2px;
}

.compact-select {
    padding: 2px 5px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.compact-label {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin: 0 5px;
}

.compact-label input[type="checkbox"] {
    margin-right: 5px;
}

.flip-controls {
    justify-content: flex-start;
}

.icon-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 3px 6px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
}

.icon-btn:hover {
    background: #e0e0e0;
}

/* 浮动摄像头控制面板样式 */
#floatingCameraControlPanel {
    font-family: Arial, sans-serif;
}

#floatingCameraControlPanel .camera-control-group {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 10px;
}

#floatingCameraControlPanel input[type="range"] {
    background: #ddd;
    border-radius: 3px;
    height: 6px;
}

#floatingCameraControlPanel input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #666;
    cursor: pointer;
}

#floatingCameraControlPanel .preset-btn:hover {
    background: #e0e0e0 !important;
    border-color: #999 !important;
}

/* 确认面板样式保持居中 */
#confirmClearPanel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

#confirmClearPanel .confirm-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #frameInfo {
        right: 80px !important;
        font-size: 11px !important;
    }
    
    #cameraStatus {
        right: 10px !important;
        max-width: 250px !important;
        font-size: 12px !important;
    }
    
    #floatingCameraControlPanel {
        width: 90% !important;
        min-width: 300px !important;
    }
}

#videoGridOverlay, #previewGridOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    display: none;
}

#videoGridOverlay svg, #previewGridOverlay svg {
    width: 100%;
    height: 100%;
}
/* 播放序列时禁用缩略图的过渡动画，避免预览切换延迟 */
.sequence-playing .thumbnail-container {
  transition: none !important;
}
.sequence-playing .thumbnail-container:hover {
  transform: none !important;
  border-color: transparent !important;
}