.side-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 440px;
  min-height: 100vh;
  background: #fff;
  border-left: 1px solid #e0e0e0;
  box-sizing: border-box;
  z-index: 10;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.03);
  display: none;
  transition: transform 0.3s ease-in-out;
}

.side-panel.collapsed {
  transform: translateX(440px);
}

.panel-content {
  padding: 34px 14px 0px 14px;
  height: 100vh;
  /* overflow-y: auto; */
}

.toggle-btn {
  position: absolute;
  left: -44px;
  top: 60px;
  width: 44px;
  height: 60px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #666;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  z-index: 11;
}

.toggle-btn:hover {
  background: #f5f5f5;
  color: #1890ff;
}



.panel-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #222;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.add-btn {
  background: none;
  color: #1890ff;
  border: none;
  font-size: 18px;
  padding: 0 6px;
  margin-left: 4px;
  margin-bottom: 0;
  height: 24px;
  line-height: 24px;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  border-radius: 4px;
  transition: background 0.2s;
}

.add-btn:hover {
  background: #e6f7ff;
  color: #40a9ff;
}

.var-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.cascader-menu {
  position: relative;
  display: inline-block;
  /* margin-right: 12px; */
}

.cascader-input {
  width: 140px;
  height: 42px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: #fafbfc;
  color: #222;
  font-size: 14px;
  padding: 0 32px 0 18px;
  outline: none;
  cursor: pointer;
  text-align: left;
  transition: border 0.2s;
  appearance: none;
  background-image: none;
  box-sizing: border-box;
  position: relative;
}

.cascader-menu::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 5px 0 5px;
  border-style: solid;
  border-color: #999 transparent transparent transparent;
  pointer-events: none;
}
.op-select-static{
  margin: 0px 12px;
  width: 100px;
  text-align: center;
  height: 42px;
  border: 1.5px solid #d5dbe4;
  border-radius: 10px;
  line-height: 42px;
}
.cascader-input.selected {
  color: #1890ff;
  border-color: #1890ff;
  background: #f0f7ff;
}

.cascader-menu-lists {
  position: absolute;
  top: 100%;
  left: 0;
  display: flex;
  z-index: 100;
  transition: left 0.2s;
  /*background: #fff;*/
  margin-top: 0;
}

.cascader-menu-list {
  min-width: 200px;
  max-width: 260px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  max-height: 600px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.5;
  margin-right: 0;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
}

.cascader-menu-item {
  padding: 8px 16px;
  cursor: pointer;
  color: #222;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
  user-select: none;
  border-radius: 10px;
  display: block;
  word-break: break-all;
  word-wrap: break-word;
}

.cascader-menu-item.selected,
.cascader-menu-item:hover {
  background: #f0f7ff;
  color: #1890ff;
}

.op-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fafbfc;
  background-image: none;
  padding-right: 16px;
  border: 1.5px solid #d5dbe4;
  border-radius: 10px;
  font-size: 14px;
  color: #222;
  width: 60px;
  min-width: 60px;
  height: 42px;
  margin-right: 8px;
  box-sizing: border-box;
}

.val-input {
  height: 42px;
  border: 1.5px solid #d5dbe4;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  margin-right: 8px;
  min-width: 60px;
  background: #fafbfc;
  color: #222;
  width: 120px;
  box-sizing: border-box;
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  cursor: text !important;
  outline: none;
  transition: border-color 0.2s;
}

.val-input:focus {
  border-color: #1890ff;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.val-input:hover {
  border-color: #40a9ff;
}

.val-input.invalid {
  border-color: #ff4d4f;
  background: #fff2f0;
}

.val-input.invalid:focus {
  border-color: #ff4d4f;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.1);
}

.val-input.invalid:hover {
  border-color: #ff7875;
}

.del-btn {
  background: none;
  color: #999;
  border: none;
  font-size: 22px;
  padding: 0 12px;
  margin-right: 0;
  height: 40px;
  line-height: 40px;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.del-btn:hover {
  color: #f5222d;
  background: #fff1f0;
}

/* 按钮容器样式 */
.submit-btn-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.submit-btn, .reset-btn, .refresh-json-btn {
  width: auto;
  min-width: 100px;
  padding: 0 16px;
  margin-top: 0;
  margin-right: 0;
  background: #1890ff;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
  height: 40px;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.08);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover, .reset-btn:hover, .refresh-json-btn:hover {
  background: #40a9ff;
}

/* 为刷新json按钮添加不同的颜色 */
.refresh-json-btn {
  background: #52c41a;
  box-shadow: 0 2px 8px rgba(82, 196, 26, 0.08);
}

.refresh-json-btn:hover {
  background: #73d13d;
}

/* Loading遮罩层样式 */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 20px;
  border-radius: 10px;
}

.loading-icon {
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 10px;
  color: #333;
  font-size: 14px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
