.SectorDialogC {
	display: none;
	position: fixed;
	top: 20%;
	left: 50%;
	transform: translateX(-50%);
	min-width:530px;  
    margin: auto;
    background: #fff;
    padding: 20px 24px;
    border-radius: 16px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.08);
	flex-direction: column;
	max-height: 90vh; /* 确保不会超出屏幕 */
	z-index: 1000;	
}

.header {
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 16px;
}
.body {
    padding: 16px 24px;
    max-height: 450px;
    overflow-y: auto;
    flex: 1;
}
.footer {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.footer button {
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.footer .confirm {
    background: #409eff;
    color: #fff;
}
.footer .confirm:hover {
    background: #66b1ff;
}
.footer .cancel {
    background: #f5f7fa;
    color: #333;
}
.footer .cancel:hover {
    background: #e0e0e0;
}
  /* 保留原样式 */
.SectorSectionC {
    margin-bottom: 16px;
}
.SectorSectionC label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    font-size: 14px;
}
.flex {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
input[type="text"], input[type="number"], select {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
input[type="text"]:focus, input[type="number"]:focus, select:focus {
    border-color: #409eff;
}
input[type="color"] {
    width: 44px;
    height: 44px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.SectorIndexC {
	min-width: 135px;
	text-align: center;
}

.number-nav {
    font-size: 14px;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.number-nav button {
    background: #409eff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1 1 auto;
}
.number-nav button i {
    margin-right: 4px;
}
.number-nav button:hover {
    background: #66b1ff;
}
.probability {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 13px;
    color: #666;
}

/* 滑杆基础样式 */
#speedRange {
  width: 100%;
  margin-top: 8px;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background: #ddd;
  outline: none;
  transition: background 0.2s;
}

/* 滑块样式 - Webkit浏览器 */
#speedRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #409eff;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

/* Firefox 滑块 */
#speedRange::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #409eff;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
}
  
@media (max-width: 480px) {
	.SectorDialogC {
    	padding: 0; /* 已经由 header/body/footer 分开，无需内边距 */
    	max-width: 100%;
    	border-radius: 0; /* 小屏可去掉圆角 */
	}
  	.header, .body, .footer {
    	padding-left: 12px;
    	padding-right: 12px;
  	}
  	.header {
    	font-size: 15px;
  	}
  	.SectorSectionC label {
    	font-size: 13px;
  	}
  	input[type="text"], input[type="number"], select {
    	font-size: 13px;
    	padding: 5px 8px;
  	}
  	.number-nav button {
    	font-size: 13px;
    	padding: 5px 8px;
  	}
  	.SectorDialogImgUploadBoxC {
	    width: 40px;
	    height: 40px;
  	}
  	.probability {
    	font-size: 12px;
  	}
  	.speed-buttons button {
    	font-size: 16px;
    	padding: 6px 0;
  	}
	.footer button {
	  	font-size: 13px;
	  	padding: 5px 10px;
	}
}

/*上传图片*/
.SectorDialogImgUploadBoxC {
	width: 40px;
	height: 40px;
	border: 2px dashed #ccc;
	border-radius: 4px;
	background-color: #fff;
	overflow: hidden;
	cursor: pointer;
	position: relative;
	
	/* 关键：用于内容居中 */
	display: inline-flex;
	justify-content: center;
	align-items: center;
	vertical-align: top;
}

.SectorDialogImgUploadBoxC i {
  	font-size: 48px;
  	color: #aaa;
}

.SectorDialogImgUploadBoxC img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

input[id="SectorDialogImgUploadId"] {
	display: none;
}