*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1f2937;
  background: #f4f5f7;
  min-height: 100vh;
}

.fb-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.fb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.fb-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.fb-header a {
  color: #4f46e5;
  text-decoration: none;
  font-size: 14px;
}

.fb-header a:hover {
  text-decoration: underline;
}

.fb-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0;
}

.fb-tab {
  border: none;
  background: transparent;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.fb-tab:hover {
  color: #374151;
}

.fb-tab.is-active {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
}

.fb-panel {
  display: none;
}

.fb-panel.is-active {
  display: block;
}

.fb-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.fb-notice p {
  margin: 0 0 8px;
}

.fb-notice p:last-child {
  margin-bottom: 0;
}

.fb-notice-title {
  font-weight: 600;
  color: #b45309;
  margin-bottom: 6px !important;
}

.fb-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 18px;
  margin-bottom: 16px;
}

.fb-card h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
}

.fb-quota {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

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

.fb-field label {
  display: block;
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 6px;
}

.fb-field select,
.fb-field textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
}

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

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

.fb-char-count.is-warn {
  color: #d97706;
}

.fb-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.fb-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  background: #4f46e5;
  color: #fff;
}

.fb-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fb-btn.ghost {
  background: #f3f4f6;
  color: #374151;
}

.fb-msg {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}

.fb-msg.show {
  display: block;
}

.fb-msg.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.fb-msg.ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.fb-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fb-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fafafa;
}

.fb-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}

.fb-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.fb-tag.issue {
  background: #fef2f2;
  color: #b91c1c;
}

.fb-tag.suggestion {
  background: #eef2ff;
  color: #4f46e5;
}

.fb-tag.status-pending {
  background: #fffbeb;
  color: #b45309;
}

.fb-tag.status-processing {
  background: #eff6ff;
  color: #1d4ed8;
}

.fb-tag.status-completed,
.fb-tag.status-replied,
.fb-tag.status-rewarded {
  background: #ecfdf5;
  color: #047857;
}

.fb-tag.status-rejected {
  background: #fef2f2;
  color: #b91c1c;
}

.fb-tag.status-closed {
  background: #f3f4f6;
  color: #6b7280;
}

.fb-item-content {
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.fb-item-reply {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  font-size: 13px;
  color: #4b5563;
}

.fb-item-reply strong {
  color: #111827;
}

.fb-empty {
  text-align: center;
  color: #9ca3af;
  padding: 24px;
  font-size: 14px;
}

.fb-login-gate {
  text-align: center;
  padding: 48px 16px;
}

.fb-login-gate p {
  color: #6b7280;
  margin-bottom: 16px;
}
