/* feedback.css - 完全独立，不依赖项目样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.feedback-container {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 32px;
  /* 垂直居中的同时把底部备案信息推到页面落底 */
  margin: auto 0;
}

.feedback-header {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feedback-header h1 {
  font-size: 24px;
  color: #1a1a2e;
}

.header-note {
  font-size: 14px;
  color: #8c8c9e;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.required {
  color: #e74c3c;
}

#subject {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

#subject:focus {
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74,144,217,0.15);
}

#description {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  outline: none;
  transition: border-color 0.2s;
}

#description:focus {
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74,144,217,0.15);
}

.drop-zone {
  border: 2px dashed #c0c8d4;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafbfc;
}

.drop-zone:hover {
  border-color: #4a90d9;
  background: #f0f6ff;
}

.drop-zone.dragover {
  border-color: #4a90d9;
  background: #e8f0fe;
}

.drop-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.drop-zone-inner p {
  color: #666;
  font-size: 14px;
}

.drop-hint {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.preview-item {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e8;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-item .remove-btn:hover {
  background: rgba(231,76,60,0.9);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.submit-btn {
  height: 46px;
  padding: 0 32px;
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #3a7bc8;
}

.submit-btn:disabled {
  background: #a0b8d0;
  cursor: not-allowed;
}

.submit-status {
  font-size: 14px;
  color: #666;
}

.submit-status.success {
  color: #27ae60;
}

.submit-status.error {
  color: #e74c3c;
}

.submit-btn--ghost {
  background: #fff;
  color: #4a90d9;
  border: 1px solid #4a90d9;
}

.submit-btn--ghost:hover {
  background: #eef3fb;
}

.submit-btn--ghost:disabled {
  background: #fff;
  color: #a0b8d0;
  border-color: #a0b8d0;
}

/* 响应式 */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  .feedback-container {
    padding: 20px;
  }
  .preview-item {
    width: 100px;
    height: 100px;
  }
}
