/* pages/device/eartag-detail/eartag-detail.wxss */
.eartag-detail-container {
  background: #f8f9fa;
  min-height: 100vh;
}

/* 顶部导航 */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24rpx 32rpx;
  background: #3cc51f;
  color: white;
}

.back-btn {
  width: 60rpx;
  height: 60rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-icon {
  font-size: 32rpx;
  font-weight: bold;
}

.title {
  font-size: 32rpx;
  font-weight: bold;
}

.placeholder {
  width: 60rpx;
}

/* 耳标信息 */
.eartag-info {
  background: #ffffff;
  margin: 24rpx 32rpx;
  border-radius: 12rpx;
  padding: 32rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32rpx;
  padding-bottom: 24rpx;
  border-bottom: 1rpx solid #f0f0f0;
}

.eartag-number {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
}

.bind-status {
  padding: 12rpx 24rpx;
  border-radius: 20rpx;
  font-size: 24rpx;
  font-weight: 500;
}

.bind-status.bound {
  background: #52c41a;
  color: #ffffff;
}

.bind-status.unbound {
  background: #1890ff;
  color: #ffffff;
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 24rpx;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16rpx 0;
}

.label {
  font-size: 28rpx;
  color: #666;
  flex: 1;
}

.value {
  font-size: 28rpx;
  color: #333;
  font-weight: 500;
  text-align: right;
  flex: 1;
}

/* 操作按钮 */
.action-buttons {
  padding: 32rpx;
  display: flex;
  flex-direction: column;
  gap: 16rpx;
}

.btn {
  padding: 24rpx;
  border-radius: 12rpx;
  text-align: center;
  font-size: 28rpx;
  font-weight: 500;
}

.btn.primary {
  background: #3cc51f;
  color: #ffffff;
}

.btn.secondary {
  background: #f5222d;
  color: #ffffff;
}

.btn.default {
  background: #ffffff;
  color: #333;
  border: 1rpx solid #d9d9d9;
}

.btn:active {
  opacity: 0.8;
}

/* 加载状态 */
.loading-container {
  text-align: center;
  padding: 80rpx;
}

.loading-spinner {
  width: 48rpx;
  height: 48rpx;
  border: 4rpx solid #f0f0f0;
  border-top: 4rpx solid #3cc51f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20rpx;
}

.loading-text {
  font-size: 28rpx;
  color: #999;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 375px) {
  .header {
    padding: 20rpx 24rpx;
  }
  
  .eartag-info {
    margin: 20rpx 24rpx;
    padding: 24rpx;
  }
  
  .action-buttons {
    padding: 24rpx;
  }
}
