/* ===== 反馈信箱页面样式 ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  background: #FAFAF9;
  color: #1C1917;
  min-height: 100vh;
}

.fb-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.fb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #E7E5E4;
}

.fb-back {
  color: #78716C;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.fb-back:hover { color: #1C1917; }

.fb-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #1C1917;
}

/* Hero */
.fb-hero {
  text-align: center;
  padding: 48px 0 32px;
}

.fb-hero-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.fb-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: #1C1917;
  margin-bottom: 12px;
}

.fb-hero-desc {
  font-size: 15px;
  color: #78716C;
  line-height: 1.8;
}

/* Form */
.fb-main {
  padding: 0 0 60px;
}

.fb-form {
  background: #fff;
  border: 1px solid #E7E5E4;
  border-radius: 12px;
  padding: 32px;
}

.fb-field {
  margin-bottom: 24px;
}

.fb-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #44403C;
  margin-bottom: 8px;
}

.fb-field .required { color: #DC2626; }
.fb-field .optional { color: #A8A29E; font-weight: 400; font-size: 12px; }

.fb-field input,
.fb-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D6D3D1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #1C1917;
  background: #FAFAF9;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.fb-field input:focus,
.fb-field textarea:focus {
  border-color: #1C1917;
  box-shadow: 0 0 0 3px rgba(28, 25, 23, 0.08);
}

.fb-field textarea {
  resize: vertical;
  min-height: 120px;
}

.fb-hint {
  display: block;
  font-size: 12px;
  color: #A8A29E;
  margin-top: 4px;
}

.fb-char-count {
  text-align: right;
  font-size: 12px;
  color: #A8A29E;
  margin-top: 4px;
}

/* Type Selector */
.fb-type-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fb-type-btn {
  padding: 8px 16px;
  border: 1px solid #D6D3D1;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  color: #57534E;
  font-family: inherit;
}

.fb-type-btn:hover {
  border-color: #1C1917;
  color: #1C1917;
}

.fb-type-btn.active {
  background: #1C1917;
  color: #fff;
  border-color: #1C1917;
}

/* Submit */
.fb-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #1C1917, #292524);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.1s;
}

.fb-submit:hover { opacity: 0.9; }
.fb-submit:active { transform: scale(0.98); }
.fb-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Success State */
.fb-success {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 1px solid #E7E5E4;
  border-radius: 12px;
}

.fb-success-icon {
  font-size: 56px;
  margin-bottom: 16px;
  animation: pop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.fb-success h3 {
  font-size: 22px;
  color: #1C1917;
  margin-bottom: 8px;
}

.fb-success p {
  font-size: 14px;
  color: #78716C;
  margin-bottom: 24px;
}

.fb-again {
  padding: 10px 24px;
  border: 1px solid #D6D3D1;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.fb-again:hover {
  border-color: #1C1917;
  color: #1C1917;
}

/* Footer */
.fb-footer {
  padding: 32px 0;
  border-top: 1px solid #E7E5E4;
  text-align: center;
}

.fb-footer-text {
  font-size: 13px;
  color: #A8A29E;
  margin-bottom: 8px;
}

.fb-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.fb-footer-links a {
  color: #78716C;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.fb-footer-links a:hover { color: #1C1917; }

/* Toast */
.fb-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1C1917;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  max-width: 90vw;
  text-align: center;
}

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

/* Responsive */
@media (max-width: 480px) {
  .fb-form { padding: 20px; }
  .fb-hero-title { font-size: 24px; }
  .fb-hero { padding: 32px 0 24px; }
  .fb-type-group { gap: 6px; }
  .fb-type-btn { padding: 6px 12px; font-size: 12px; }
}
