/* ===== 右侧面板样式 ===== */

/* 右侧区域 - 自适应 */
.right {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1vh;
  overflow: hidden;
}

.task {
  flex: 1;
  padding: 1vh 0.5vw;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* 采样系统面板 */
.caiyang-system-panel {
  padding: 1.5vh 1vw;
  display: flex;
  flex-direction: column;
  gap: 1.2vh;
}

.panel-row {
  display: flex;
  align-items: center;
  gap: 1vw;
}

.row-label {
  font-size: clamp(11px, 1vw, 13px);
  color: rgba(255, 255, 255, 0.9);
  min-width: 70px;
  white-space: nowrap;
  font-weight: 500;
}

/* 滑块按钮组 */
.slider-buttons-group {
  flex: 1;
  position: relative;
  display: flex;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(24, 144, 255, 0.3);
  border-radius: 20px;
  padding: 2px;
  overflow: hidden;
}

.slider-background {
  position: absolute;
  height: calc(100% - 4px);
  background: linear-gradient(135deg, #1890ff 0%, #0d5cb6 100%);
  border-radius: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  top: 2px;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.4);
}

.slider-btn {
  flex: 1;
  padding: 0.5vh 0.5vw;
  text-align: center;
  font-size: clamp(10px, 0.9vw, 13px);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
  position: relative; 
  border-radius: 16px;
}

.slider-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.slider-btn.active {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 普通按钮组 */
.row-buttons {
  flex: 1;
  display: flex;
  gap: 0.5vw;
  flex-wrap: wrap;
}

.system-btn {
  background-color: #1890ff;
  color: #fff;
  padding: 0.5vh 1vw;
  border-radius: 4px;
  cursor: pointer;
  font-size: clamp(10px, 0.9vw, 13px);
  text-align: center;
  min-width: 50px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.system-btn:hover {
  background-color: #40a9ff;
  transform: translateY(-1px);
}

.system-btn.active {
  background-color: #52c41a;
  border-color: #52c41a;
}

.system-btn.stop-btn {
  background-color: #ff4d4f;
}

.system-btn.stop-btn:hover {
  background-color: #ff7875;
}

/* 状态面板样式 */
.status-panel .status-content {
  padding: 1vh 1vw;
  display: flex;
  flex-direction: column;
  gap: 2vh;
}

/* 输入框区域 */
.input-section {
  display: flex;
  flex-direction: column;
  gap: 1.5vh;
}

.input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1vw;
}

.input-row label {
  font-size: clamp(11px, 1vw, 14px);
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.3vw;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 0.3vh 0.5vw;
  min-width: 80px;
}

.input-wrapper input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: clamp(11px, 1vw, 14px);
  width: 60px;
  outline: none;
  text-align: right;
}

.input-wrapper input::-webkit-inner-spin-button,
.input-wrapper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-wrapper .unit {
  font-size: clamp(10px, 0.9vw, 12px);
  color: rgba(255, 255, 255, 0.7);
}

/* 状态指示器 */
.status-indicators {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1vh 1vw;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8vh 1vw;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border: 1px solid rgba(24, 144, 255, 0.2);
  transition: all 0.3s ease;
}

.status-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(24, 144, 255, 0.4);
}

.status-label {
  font-size: clamp(10px, 0.9vw, 12px);
  color: rgba(255, 255, 255, 0.9);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.status-dot.active {
  background-color: #52c41a;
  box-shadow: 0 0 8px rgba(82, 196, 26, 0.6), 0 0 0 2px rgba(82, 196, 26, 0.2);
}

.status-dot.error {
  background-color: #ff4d4f;
  box-shadow: 0 0 8px rgba(255, 77, 79, 0.6), 0 0 0 2px rgba(255, 77, 79, 0.2);
}

/* 日志导出按钮 */
.log-export-btn-wrapper {  
  border-top: 1px solid rgba(24, 144, 255, 0.2);
}

.log-export-trigger-btn {
  width: 100%;
  padding: 1vh 0;
  background: linear-gradient(135deg, #1890ff 0%, #0d5cb6 100%);
  border: 1px solid rgba(24, 144, 255, 0.5);
  border-radius: 6px;
  color: #fff;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

.log-export-trigger-btn:hover {
  background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
  border-color: rgba(24, 144, 255, 0.8);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
  transform: translateY(-2px);
}

.log-export-trigger-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(24, 144, 255, 0.3);
}

/* 封装系统面板 */
.fengzhuang-panel .fengzhuang-content {
  padding: 1vh 1vw;
  display: flex;
  flex-direction: column;
  gap: 1.5vh;
}

.fengzhuang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1vw;
}

.fz-label {
  font-size: clamp(11px, 1vw, 14px);
  color: #fff;
  white-space: nowrap;
  min-width: 70px;
}

.fz-slider {
  flex: 1;
  max-width: 180px;
}

.fz-value-box {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 0.3vh 0.8vw;
  display: flex;
  align-items: center;
  gap: 0.3vw;
  min-width: 100px;
}

.fz-value {
  font-size: clamp(12px, 1.1vw, 16px);
  color: #fff;
  font-weight: 500;
  flex: 1;
  text-align: right;
}

.fz-unit {
  font-size: clamp(10px, 0.9vw, 12px);
  color: rgba(255, 255, 255, 0.7);
}

.fz-input {
  flex: 1;
  max-width: 120px;
}

/* 封装系统状态指示器 */
.fengzhuang-status {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.8vh 1vw;
  margin-top: 0.5vh;
}

.fz-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4vh 0.5vw;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}

.fz-status-item .status-label {
  font-size: clamp(9px, 0.85vw, 11px);
}

.fz-status-item .status-dot {
  width: 10px;
  height: 10px;
}

