/* pages/device/eartag-add/eartag-add.wxss */
.eartag-add-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;
}

/* 表单容器 */
.form-container {
  background: #ffffff;
  margin: 24rpx 32rpx;
  border-radius: 12rpx;
  padding: 32rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
}

.form-item {
  margin-bottom: 32rpx;
}

.form-item:last-child {
  margin-bottom: 0;
}

.label {
  display: block;
  font-size: 28rpx;
  color: #333;
  margin-bottom: 16rpx;
  font-weight: 500;
}

.input {
  width: 100%;
  padding: 20rpx 24rpx;
  border: 1rpx solid #d9d9d9;
  border-radius: 8rpx;
  font-size: 28rpx;
  color: #333;
  background: #ffffff;
}

.input:focus {
  border-color: #3cc51f;
}

.textarea {
  width: 100%;
  min-height: 120rpx;
  padding: 20rpx 24rpx;
  border: 1rpx solid #d9d9d9;
  border-radius: 8rpx;
  font-size: 28rpx;
  color: #333;
  background: #ffffff;
  resize: none;
}

.textarea:focus {
  border-color: #3cc51f;
}

/* 提交按钮 */
.submit-container {
  padding: 32rpx;
}

.submit-btn {
  width: 100%;
  padding: 24rpx;
  background: #3cc51f;
  color: #ffffff;
  border-radius: 12rpx;
  text-align: center;
  font-size: 32rpx;
  font-weight: bold;
}

.submit-btn:active {
  background: #2ea617;
}

/* 加载状态 */
.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;
  }
  
  .form-container {
    margin: 20rpx 24rpx;
    padding: 24rpx;
  }
  
  .submit-container {
    padding: 24rpx;
  }
}
