/* 优化建议页 */

.xy-feedback-main {
  background: linear-gradient(180deg, #f0f4fb 0%, #f8fafc 120px, #ffffff 280px);
  padding: 36px 0 72px;
  min-height: calc(100vh - 120px);
}

.xy-feedback-wrap {
  max-width: 1040px;
  margin: 0 auto;
}

.xy-feedback-page-head {
  text-align: center;
  margin-bottom: 36px;
}

.xy-feedback-hero-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: #e8f0fe;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.xy-feedback-page-head h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a2b4a;
  margin: 0 0 10px;
}

.xy-feedback-page-desc {
  font-size: 1rem;
  color: #5a6b85;
  margin: 0;
  line-height: 1.6;
}

.xy-feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 991px) {
  .xy-feedback-grid {
    grid-template-columns: 1fr;
  }
}

.xy-feedback-aside {
  padding: 4px 8px 4px 0;
}

.xy-feedback-aside h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a2b4a;
  margin-bottom: 10px;
}

.xy-feedback-aside > p {
  color: #5a6b85;
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 15px;
}

.xy-feedback-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.xy-feedback-steps li {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.xy-feedback-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fec016;
  color: #1a2b4a;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xy-feedback-steps strong {
  display: block;
  color: #1a2b4a;
  font-size: 15px;
  margin-bottom: 2px;
}

.xy-feedback-steps span {
  color: #6b7c96;
  font-size: 13px;
  line-height: 1.5;
}

.xy-feedback-contact {
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8ecf2;
  font-size: 14px;
  color: #5a6b85;
  box-shadow: 0 2px 8px rgba(26, 43, 74, 0.04);
}

.xy-feedback-contact a {
  color: #2563eb;
  text-decoration: none;
}

.xy-feedback-contact a:hover {
  text-decoration: underline;
}

.xy-feedback-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(26, 43, 74, 0.08);
  padding: 28px 26px 26px;
  border: 1px solid #e8ecf2;
}

.xy-feedback-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.xy-feedback-card-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2b4a;
  margin: 0 0 4px;
}

.xy-feedback-card-head p {
  margin: 0;
  font-size: 13px;
  color: #8a97ab;
}

.xy-required {
  color: #e11d48;
}

.xy-feedback-quota {
  text-align: right;
  min-width: 120px;
}

.xy-feedback-quota-label {
  font-size: 12px;
  color: #8a97ab;
  margin-bottom: 6px;
}

.xy-feedback-quota-bar {
  height: 6px;
  background: #eef1f6;
  border-radius: 999px;
  overflow: hidden;
}

.xy-feedback-quota-fill {
  height: 100%;
  background: linear-gradient(90deg, #fec016, #f5a623);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.xy-feedback-quota-num {
  font-size: 12px;
  color: #5a6b85;
  margin-top: 6px;
}

.xy-feedback-field {
  margin-bottom: 20px;
}

.xy-feedback-field > label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a2b4a;
  margin-bottom: 10px;
}

.xy-feedback-field label .optional {
  font-weight: 400;
  color: #8a97ab;
}

.xy-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 576px) {
  .xy-category-grid {
    grid-template-columns: 1fr;
  }
}

.xy-category-item {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.xy-category-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.xy-category-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 8px;
  border: 2px solid #e8ecf2;
  border-radius: 12px;
  background: #fafbfd;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.xy-category-item input:checked + .xy-category-box {
  border-color: #fec016;
  background: #fffbeb;
  box-shadow: 0 4px 14px rgba(254, 192, 22, 0.25);
}

.xy-category-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef3fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
}

.xy-category-item input:checked + .xy-category-box .xy-category-icon {
  background: #fec016;
}

.xy-category-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a2b4a;
  line-height: 1.3;
}

.xy-feedback-textarea {
  width: 100%;
  min-height: 150px;
  padding: 14px 16px;
  border: 2px solid #e8ecf2;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #1a2b4a;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafbfd;
}

.xy-feedback-textarea:focus {
  outline: none;
  border-color: #fec016;
  box-shadow: 0 0 0 3px rgba(254, 192, 22, 0.2);
  background: #fff;
}

.xy-feedback-char-count {
  text-align: right;
  font-size: 12px;
  color: #8a97ab;
  margin-top: 6px;
}

.xy-feedback-char-count.warn {
  color: #d97706;
}

.xy-upload-zone {
  border: 2px dashed #d4dce8;
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  background: #fafbfd;
  transition: border-color 0.2s, background 0.2s;
}

.xy-upload-zone:hover,
.xy-upload-zone.dragover {
  border-color: #fec016;
  background: #fffbeb;
}

.xy-upload-zone input[type="file"] {
  display: none;
}

.xy-upload-icon {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.7;
}

.xy-upload-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a2b4a;
  margin-bottom: 4px;
}

.xy-upload-hint {
  font-size: 12px;
  color: #8a97ab;
}

.xy-upload-preview {
  display: none;
  margin-top: 12px;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px 12px;
  background: #f4f6fa;
  border-radius: 10px;
}

.xy-upload-preview.show {
  display: flex;
}

.xy-upload-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

.xy-upload-preview-name {
  flex: 1;
  font-size: 13px;
  color: #3d4f6f;
  word-break: break-all;
}

.xy-upload-remove {
  border: none;
  background: none;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.xy-upload-remove:hover {
  color: #ef4444;
}

.xy-feedback-submit {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #1a2b4a;
  background: linear-gradient(135deg, #fec016 0%, #f5a623 100%);
  box-shadow: 0 6px 20px rgba(254, 192, 22, 0.35);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.xy-feedback-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(254, 192, 22, 0.45);
}

.xy-feedback-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.xy-feedback-guest {
  text-align: center;
  padding: 40px 20px;
}

.xy-feedback-guest-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef3fb, #dce8f8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.xy-feedback-guest h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a2b4a;
  margin-bottom: 10px;
}

.xy-feedback-guest p {
  color: #6b7c96;
  font-size: 15px;
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto 24px;
}

.xy-feedback-guest-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.xy-btn-primary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: #1a2b4a;
  background: linear-gradient(135deg, #fec016, #f5a623);
  box-shadow: 0 4px 14px rgba(254, 192, 22, 0.35);
}

.xy-btn-primary:hover {
  color: #1a2b4a;
  text-decoration: none;
  transform: translateY(-1px);
}

.xy-btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: #3d4f6f;
  background: #fff;
  border: 2px solid #e8ecf2;
}

.xy-btn-outline:hover {
  color: #1a2b4a;
  border-color: #fec016;
  text-decoration: none;
}

.xy-feedback-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(80px);
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.xy-feedback-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.xy-feedback-toast.success {
  background: #059669;
}

.xy-feedback-toast.error {
  background: #dc2626;
}
