/* ==========================================================================
   feedback.v1.css — 问题反馈表单页样式（复用 style.v11.css 设计令牌与基础组件）
   ========================================================================== */

.fb-page {
  padding: calc(var(--nav-height) + 48px) 24px 96px;
  min-height: 100vh;
}
.fb-container {
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- 页头 ---------- */
.fb-head {
  text-align: center;
  margin-bottom: 32px;
}
.fb-head h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.fb-head p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- 表单卡片 ---------- */
.fb-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.fb-field {
  margin-bottom: 20px;
}
.fb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fb-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.fb-label em {
  font-style: normal;
  color: #f87171;
  margin-left: 2px;
}

/* 输入框（深色，聚焦描边跟随主题渐变） */
.fb-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-primary);
  font: inherit;
  font-size: 0.925rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.fb-input::placeholder { color: var(--text-muted); }
.fb-input:focus {
  outline: none;
  border-color: var(--accent-1);
  background: rgba(255, 255, 255, 0.06);
}
.fb-textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
  font-family: inherit;
}

.fb-hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}
.fb-field > .fb-hint:first-of-type { text-align: left; }

/* ---------- 平台分段选择 ---------- */
.fb-seg {
  display: inline-flex;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.fb-seg-btn {
  padding: 9px 28px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s var(--ease);
}
.fb-seg-btn + .fb-seg-btn {
  border-left: 1px solid var(--border-soft);
}
.fb-seg-btn.active {
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 600;
}

/* ---------- 截图拖放区 ---------- */
.fb-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 18px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
}
.fb-drop:hover,
.fb-drop:focus-visible,
.fb-drop-over {
  border-color: var(--accent-1);
  color: var(--text-secondary);
  background: rgba(124, 58, 237, 0.06);
}
.fb-drop svg { flex: none; opacity: 0.7; }

/* 缩略图网格 */
.fb-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.fb-thumbs:empty { display: none; }
.fb-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.fb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fb-thumb-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.fb-thumb-size {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 6px;
  font-size: 0.68rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.fb-thumb-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #f5f5f7;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}
.fb-thumb:hover .fb-thumb-del { opacity: 1; }
.fb-thumb-del:hover { background: #dc2626; }

/* ---------- 蜜罐（对人与屏幕阅读器均不可见，仅机器人会填）---------- */
.fb-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- 提交区 / 进度提示 ---------- */
.fb-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.fb-progress {
  margin-top: 14px;
  min-height: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.fb-progress-error {
  color: #f87171;
}

/* ---------- 成功卡 ---------- */
.fb-done {
  text-align: center;
  padding: 48px 32px;
}
.fb-done-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.fb-done h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.fb-done p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.fb-done-sub {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
  /* 本页导航只有两个链接，不走主站汉堡菜单（script.v10.js 未引入），直接保持显示 */
  .nav .nav-links {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
  }
}
@media (max-width: 640px) {
  .fb-card { padding: 22px 18px; }
  .fb-row { grid-template-columns: 1fr; gap: 0; }
  .fb-head h1 { font-size: 1.6rem; }
}
