* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  font-size: 14px;
}

.tab-container {
  display: flex;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 15px 0;
  font-size: 16px;
  color: #4a90e2;
  cursor: pointer;
}

.tab.active {
  border-bottom: 2px solid #4a90e2;
}

.content {
  padding: 15px;
  background-color: #fff;
}

.section-title {
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-subtitle {
  margin: 20px 0;
  font-size: 16px;
  font-weight: bold;
}

.batch-rating {
  display: flex;
  align-items: center;
  color: #4a90e2;
}

.batch-rating-icon {
  margin-left: 5px;
}

.input-field {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

.form-section {
  margin-bottom: 20px;
  position: relative;
}

.form-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.required {
  color: red;
}

input[type="text"], textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #999;
}

input[type="text"].line-input {
  width: 100%;
  border: none !important;
  border-bottom: 1px solid #ddd !important;
  padding: 6px 0;
  background-color: transparent;
  color: #333;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 14px;
  border-radius: 0;
  margin: 0;
}

.line-input {
  width: 100%;
  border: none !important;
  border-bottom: 1px solid #ddd !important;
  padding: 6px 0;
  background-color: transparent;
  color: #333;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 14px;
  border-radius: 0;
  margin: 0;
}

.line-input::placeholder {
  color: #999;
  font-size: 14px;
}

.input-error {
  border-color: red;
}

.line-input.input-error {
  border-bottom-color: red !important;
}

.error-message {
  color: red;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.error-message.show {
  display: block;
}

.rating-container {
  margin-bottom: 20px;
}

.rating-title {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.rating-label {
  margin-right: 10px;
  font-weight: bold;
}

.rating-stars {
  display: flex;
  align-items: center;
}

.rating-label-left {
  margin-right: 15px;
  font-weight: bold;
}

.star {
  color: #4a90e2;
  font-size: 30px;
  margin-right: 10px;
}

.star i {
  color: #ddd;
}

.star.active i {
  color: #4a90e2;
}

.rating-text {
  margin-left: auto;
  color: #666;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tag {
  background-color: white;
  border: 1px solid #e0e0e0;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.tag.selected, .tag.active {
  background-color: #e6f2ff;
  border-color: #4a90e2;
  color: #4a90e2;
}

.suggestions {
  margin-bottom: 20px;
}

.suggestions-label {
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}

.suggestions textarea {
  height: 120px;
  resize: none;
}

.char-count {
  text-align: right;
  color: #999;
  font-size: 12px;
  margin-top: 5px;
}

.footer-info {
  background-color: #f5f5f5;
  padding: 15px;
  margin-top: 20px;
}

.info-item {
  margin-bottom: 10px;
}

.captcha-container {
  display: flex;
  margin-top: 15px;
  margin-bottom: 20px;
}

.captcha-input {
  flex: 1;
  margin-right: 10px;
  position: relative;
}

.captcha-image {
  width: 120px;
  height: 40px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.captcha-text {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: bold;
  color: #666;
  letter-spacing: 2px;
  transform: skew(-5deg);
}

.submit-container {
  margin-top: 30px;
  text-align: center;
  padding-bottom: 20px;
}

.submit-button {
  background-color: #a8c6eb;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 30px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

.submit-button.active {
  background-color: #4a90e2;
}

.submit-button:disabled,
.submit-button.disabled {
  background-color: #d0d0d0;
  color: #999;
  cursor: not-allowed;
}

/* 消息提示样式 */
.message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
  max-width: 300px;
  word-wrap: break-word;
}

.message.success {
  background-color: #4caf50;
}

.message.error {
  background-color: #f44336;
}

.message.hide {
  opacity: 0;
}

.captcha-input-field {
  width: 100%;
  padding: 8px 10px;
  padding-right: 30px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
  outline: none;
}

.clear-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ccc;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  display: none;
}

.clear-button::before {
  content: "×";
  font-weight: bold;
}

.captcha-input-field:not(:placeholder-shown) + .clear-button {
  display: flex;
}

.captcha-input-field::placeholder {
  color: #999;
  font-size: 14px;
}

.captcha-input-field.input-error {
  border-color: red;
}