/* ===== 设备卡片样式 ===== */

/* 设备状态框 - 优化版 */
.info {
  display: flex;
  border-radius: 6px;
  border: 1px solid rgba(24, 144, 255, 0.4);
  width: clamp(130px, 12vw, 170px);
  height: clamp(45px, 5vh, 55px);
  align-items: center;
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.08) 0%, rgba(24, 144, 255, 0.03) 100%);
  font-size: clamp(10px, 0.9vw, 12px);
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.info:hover {
  border-color: rgba(24, 144, 255, 0.6);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
  transform: translateY(-1px);
}

.info-item {
  border-radius: 6px;
  border: 1px solid rgba(24, 144, 255, 0.4);
  width: clamp(130px, 12vw, 170px);
  min-height: clamp(45px, 5vh, 55px);
  padding: 0.5vh 0;
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.08) 0%, rgba(24, 144, 255, 0.03) 100%);
  cursor: pointer;
  font-size: clamp(10px, 0.9vw, 12px);
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.info-item:hover {
  border-color: rgba(24, 144, 255, 0.6);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
  transform: translateY(-1px);
}

/* 初级给料皮带（特殊样式） */
.chujigeiliaopidai {
  border-radius: 6px;
  border: 1px solid rgba(24, 144, 255, 0.4);
  width: clamp(130px, 12vw, 170px);
  cursor: pointer;
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.08) 0%, rgba(24, 144, 255, 0.03) 100%);
  font-size: clamp(10px, 0.9vw, 12px);
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: auto;
  min-height: clamp(70px, 7vh, 85px);
  overflow: hidden;
}

.chujigeiliaopidai:hover {
  border-color: rgba(24, 144, 255, 0.6);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
  transform: translateY(-1px);
}

.chujigeiliaopidai-item {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.chujigeiliaopidai-item:first-child {
  padding: 0.5vh 0;
}

.chujigeiliaopidai-item > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 移除内部分隔线 */
.chujigeiliaopidai-item [style*="border-bottom"] {
  border-bottom: none !important;
}

.chujigeiliaopidai-item [style*="border-right"] {
  border-right: none !important;
  padding: 0 0.5vw;
}

/* 采样头控制 */
.caiyangtou {
  padding: 0;
  overflow: hidden;
}

.caiyangtou-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 0.5vw;
}

.caiyangtou [style*="border-top"] {
  border-top: none !important;
}

/* 采样头控制按钮容器 */
.caiyangtou-controls {
  display: flex;
  justify-content: center;
  padding: 0.3vh 0;
}

.caiyangtou-controls .btns {
  flex-direction: row;
  width: auto;
  height: auto;
  background: transparent;
  gap: 0.5vw;
  border-left: none;
}

.caiyangtou-controls .btns > div {
  flex: none;
  width: auto;
  border-bottom: none;
}

.caiyangtou-controls .btn {
  width: auto;
  padding: 0.3vh 0.8vw;
  min-width: 40px;
}

/* 缩分器 */
.suofenqi {
  padding: 0;
  display: flex;
}

.suofenqi-item {
  display: flex;
  justify-content: center;
  align-items: anchor-center;
  gap: 8px;
  height: 26px;
}

.suofenqi-item:first-child {
  border-bottom: 1px solid #1890ff;
}

/* 历史按钮 */
.history {
  width: 60px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 4px;
}

/* 状态指示灯样式 - 限制在特定容器内 */
.infos i,
.info i,
.info-item i,
.chujigeiliaopidai i,
.caiyangtou i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #52c41a;
  margin-right: 2px;
  vertical-align: middle;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(82, 196, 26, 0.5);
}

.infos i.green,
.info i.green,
.info-item i.green,
.chujigeiliaopidai i.green,
.caiyangtou i.green {
  background-color: #52c41a;
  box-shadow: 0 0 8px rgba(82, 196, 26, 0.6), 0 0 0 2px rgba(82, 196, 26, 0.2);
  animation: pulse-green 2s infinite;
}

.infos i.red,
.info i.red,
.info-item i.red,
.chujigeiliaopidai i.red,
.caiyangtou i.red {
  background-color: #ff4d4f;
  box-shadow: 0 0 8px rgba(255, 77, 79, 0.6), 0 0 0 2px rgba(255, 77, 79, 0.2);
  animation: pulse-red 2s infinite;
}

/* 按钮组 */
.btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 20%;
  height: 100%;
  min-height: 100%;
  background: rgba(24, 144, 255, 0.02);
  flex-shrink: 0;
}

.btns > div {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 按钮样式 */
.btn {
  width: 90%;
  padding: clamp(2px, 0.15vh, 3px) 0;
  background-color: #1890ff;
  color: #fff;
  border: 1px solid #1890ff;
  border-radius: 3px;
  text-align: center;
  cursor: pointer;
  font-size: clamp(8px, 0.75vw, 10px);
  white-space: nowrap;
  transition: all 0.3s ease;
  font-weight: 500;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.btn.blue {
  background-color: #1890ff;
  border-color: #1890ff;
}

.btn.blue:hover {
  background-color: #40a9ff;
  border-color: #40a9ff;
  transform: scale(1.05);
}

.btn.blue:active {
  background-color: #0d5cb6;
  border-color: #0d5cb6;
  transform: scale(0.98);
}

.btn.red {
  background-color: #ff4d4f;
  border-color: #ff4d4f;
}

.btn.red:hover {
  background-color: #ff7875;
  border-color: #ff7875;
  transform: scale(1.05);
}

.btn.red:active {
  background-color: #cf1322;
  border-color: #cf1322;
  transform: scale(0.98);
}

.btn.history {
  margin-top: 0.5vh;
  width: 100%;
}

