/* 意见反馈页（紧凑） */
.fb-body{background:#f3f5f8}
.fb-main{
  width:100%;max-width:480px;margin:0 auto;
  padding:10px 12px calc(20px + env(safe-area-inset-bottom,0px));
  box-sizing:border-box
}
.fb-form{display:flex;flex-direction:column;gap:10px}
.fb-card{
  background:#fff;border-radius:14px;padding:12px;
  border:1px solid #e8edf3
}
.fb-card-head{margin-bottom:8px;display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.fb-card-head h2{margin:0;font-size:14px;font-weight:700;color:#1f2937;line-height:1.3}
.fb-card-head p{margin:0;font-size:11px;color:#9aa3af;line-height:1.4;text-align:right}
.fb-cats{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px
}
.fb-cat{
  appearance:none;border:1px solid #e8edf4;background:#f8fafc;border-radius:12px;
  min-height:68px;padding:8px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  cursor:pointer;font-family:inherit;color:#64748b;
  transition:background .15s,color .15s,border-color .15s,box-shadow .15s;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation
}
.fb-cat-icon{
  width:28px;height:28px;border-radius:8px;background:#fff;border:1px solid #e8edf4;
  display:flex;align-items:center;justify-content:center;color:#64748b
}
.fb-cat-icon svg{width:16px;height:16px;display:block}
.fb-cat-label{font-size:11px;font-weight:650;line-height:1.15;text-align:center}
.fb-cat-icon,.fb-cat-label{pointer-events:none}
.fb-cat.is-active{
  background:#4a7dff;border-color:#4a7dff;color:#fff;
  box-shadow:0 6px 14px rgba(74,125,255,.22)
}
.fb-cat.is-active .fb-cat-icon{
  background:rgba(255,255,255,.18);border-color:transparent;color:#fff
}
.fb-compose{
  background:#f4f6f9;border-radius:12px;padding:10px;min-height:110px;
  display:flex;flex-direction:column;gap:8px;border:1px solid #eef1f5
}
.fb-compose textarea{
  width:100%;border:none;outline:none;resize:vertical;min-height:64px;
  background:transparent;font-size:14px;line-height:1.5;color:#1f2937;
  font-family:inherit;box-sizing:border-box
}
.fb-compose textarea::placeholder{color:#a0a8b4}
.fb-images{display:flex;flex-wrap:wrap;gap:8px}
.fb-add,.fb-thumb{
  width:56px;height:56px;border-radius:10px;box-sizing:border-box;
  display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden
}
.fb-add{
  border:1.5px dashed #c5ccd8;background:#fff;cursor:pointer;color:#94a3b8;
  appearance:none;padding:0;font:inherit;flex-direction:column;gap:0
}
.fb-file-input{
  position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;z-index:2
}
.fb-add-plus{font-size:20px;line-height:1;font-weight:400;pointer-events:none;position:relative;z-index:1}
.fb-add-text{display:none}
.fb-thumb{background:#fff;border:1px solid #e5e7eb}
.fb-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.fb-thumb-del{
  position:absolute;top:2px;right:2px;width:18px;height:18px;border:none;border-radius:50%;
  background:rgba(15,23,42,.62);color:#fff;font-size:12px;line-height:18px;cursor:pointer;padding:0;z-index:3
}
.fb-input{
  width:100%;height:42px;padding:0 12px;border:1px solid #eef1f5;border-radius:10px;
  background:#f4f6f9;font-size:14px;color:#1f2937;font-family:inherit;box-sizing:border-box
}
.fb-input:focus{outline:none;border-color:#93b4ff;box-shadow:0 0 0 3px rgba(74,125,255,.12);background:#fff}
.fb-input::placeholder{color:#a0a8b4}
.fb-submit{
  width:100%;height:44px;border:none;border-radius:12px;cursor:pointer;
  background:#4a7dff;color:#fff;
  font-size:15px;font-weight:700;font-family:inherit;
  box-shadow:0 8px 18px rgba(74,125,255,.25)
}
.fb-submit:active{opacity:.92}
.fb-submit:disabled{opacity:.55;cursor:not-allowed}

/* 弹窗：挂到 body，覆盖全站 */
.fb-modal[hidden]{display:none!important}
.fb-modal{
  position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;
  padding:24px;box-sizing:border-box
}
.fb-modal-mask{position:absolute;inset:0;background:rgba(15,23,42,.48)}
.fb-modal-box{
  position:relative;z-index:1;width:min(300px,100%);
  background:#fff;border-radius:16px;padding:20px 18px 14px;text-align:center;
  box-shadow:0 20px 50px rgba(15,23,42,.24)
}
.fb-modal-icon{
  width:40px;height:40px;margin:0 auto 10px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700
}
.fb-modal.is-ok .fb-modal-icon{background:#e8fff6;color:#0a8f6c}
.fb-modal.is-err .fb-modal-icon{background:#fff1f0;color:#e74c3c}
.fb-modal-msg{margin:0 0 14px;font-size:15px;line-height:1.55;color:#1f2937;word-break:break-word}
.fb-modal-ok{
  width:100%;height:40px;border:none;border-radius:10px;cursor:pointer;
  background:#4a7dff;color:#fff;font-size:15px;font-weight:650;font-family:inherit
}

html[data-theme="dark"] .fb-body{background:#000}
html[data-theme="dark"] .fb-card{background:#1c1c1e;border-color:#2c2c2e}
html[data-theme="dark"] .fb-card-head h2{color:#f5f5f7}
html[data-theme="dark"] .fb-card-head p{color:#8e8e93}
html[data-theme="dark"] .fb-cat{background:#2c2c2e;border-color:#3a3a3c;color:#aeaeb2}
html[data-theme="dark"] .fb-cat-icon{background:#1c1c1e;border-color:#3a3a3c;color:#aeaeb2}
html[data-theme="dark"] .fb-cat.is-active{background:#4a7dff;border-color:#4a7dff;color:#fff}
html[data-theme="dark"] .fb-compose,
html[data-theme="dark"] .fb-input{background:#2c2c2e;border-color:#3a3a3c;color:#f5f5f7}
html[data-theme="dark"] .fb-add{background:#1c1c1e;border-color:#3a3a3c;color:#8e8e93}
html[data-theme="dark"] .fb-modal-box{background:#1c1c1e}
html[data-theme="dark"] .fb-modal-msg{color:#f5f5f7}
