/* =========================================================
   举报功能样式（与主站暗色设计系统统一）
   ========================================================= */
.report-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity .2s ease;
}
.report-mask.show { display: flex; opacity: 1; }

.report-dialog {
  width: 100%; max-width: 560px; max-height: 88vh;
  display: flex; flex-direction: column;
  background: #2c2c2e; border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; box-shadow: 0 24px 64px rgba(0,0,0,.5);
  transform: translateY(12px) scale(.98); transition: transform .2s ease;
  overflow: hidden;
}
.report-mask.show .report-dialog { transform: translateY(0) scale(1); }

.report-dialog header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.report-dialog header h3 { font-size: 17px; color: #f5f5f7; font-weight: 600; }
.report-dialog header .sub { font-size: 12px; color: #8e8e93; margin-top: 2px; }
.report-close {
  width: 32px; height: 32px; border: none; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.06); color: #98989d; font-size: 16px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.report-close .fas { font-size: 14px; line-height: 1; }
.report-close:hover { background: rgba(255,255,255,.12); color: #fff; }

.report-body { padding: 18px 22px; overflow-y: auto; flex: 1; }

/* 举报对象 Tab */
.report-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.report-tab {
  flex: 1; padding: 9px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  background: rgba(255,255,255,.04); color: #98989d; font-size: 13px; cursor: pointer;
  transition: all .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.report-tab .fas { font-size: 14px; line-height: 1; flex: 0 0 auto; }
.report-tab.active { background: var(--primary, #F14D42); border-color: var(--primary, #F14D42); color: #fff; }

/* 文章多选列表 */
.report-article-picker { margin-bottom: 18px; }
.report-picker-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.report-picker-head .label { font-size: 13px; color: #c7c7cc; }
.report-picker-head .count { font-size: 12px; color: #8e8e93; }
.report-picker-head .count b { color: var(--primary, #F14D42); }
.report-article-list {
  max-height: 220px; overflow-y: auto; border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; background: rgba(255,255,255,.03);
}
.report-article-list .tip { padding: 18px; text-align: center; color: #636366; font-size: 13px; }
.report-article-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13px; color: #d4d4d4;
}
.report-article-item:last-child { border-bottom: none; }
.report-article-item:hover { background: rgba(255,255,255,.05); }
.report-article-item input[type="checkbox"] { margin-top: 2px; accent-color: var(--primary, #F14D42); flex: 0 0 auto; }
.report-article-item .t { flex: 1; line-height: 1.5; word-break: break-all; }
.report-article-item .d { color: #636366; font-size: 11px; flex: 0 0 auto; padding-top: 2px; }

/* 举报原因分组 */
.report-reason-group { margin-bottom: 14px; }
.report-reason-group .g-title {
  font-size: 12px; color: #8e8e93; margin-bottom: 8px; letter-spacing: .5px;
}
.report-reason-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.report-reason-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  background: rgba(255,255,255,.04); color: #c7c7cc; font-size: 13px; cursor: pointer;
  transition: all .15s; user-select: none;
}
.report-reason-chip:hover { border-color: rgba(255,255,255,.25); }
.report-reason-chip.on {
  background: rgba(241,77,66,.15); border-color: var(--primary, #F14D42); color: #ff8a7a;
}
.report-reason-chip input { display: none; }

/* 表单 */
.report-field { margin-bottom: 14px; }
.report-field label { display: block; font-size: 13px; color: #c7c7cc; margin-bottom: 6px; }
.report-field input[type="text"], .report-field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  background: rgba(255,255,255,.05); color: #e5e5ea; font-size: 13px; font-family: inherit;
  outline: none; transition: border-color .15s;
}
.report-field input:focus, .report-field textarea:focus { border-color: var(--primary, #F14D42); }
.report-field textarea { resize: vertical; min-height: 64px; }

.report-error {
  display: none; padding: 9px 12px; margin-bottom: 12px; border-radius: 8px;
  background: rgba(241,77,66,.12); border: 1px solid rgba(241,77,66,.35);
  color: #ff8a7a; font-size: 13px;
}

.report-dialog footer {
  display: flex; gap: 10px; padding: 14px 22px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.report-btn {
  flex: 1; padding: 11px; border: none; border-radius: 10px; font-size: 14px; cursor: pointer;
  transition: all .15s;
}
.report-btn-cancel { background: rgba(255,255,255,.07); color: #c7c7cc; }
.report-btn-cancel:hover { background: rgba(255,255,255,.12); }
.report-btn-submit { background: var(--primary, #F14D42); color: #fff; font-weight: 600; }
.report-btn-submit:hover { background: #d63f36; }
.report-btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Toast（与后台 toast 视觉统一） */
.report-toast-wrap {
  position: fixed; right: 24px; bottom: 24px; z-index: 1100;
  display: flex; flex-direction: column; gap: 10px;
}
.report-toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px; font-size: 14px; color: #fff;
  background: #3a3a3c; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  animation: reportToastIn .25s ease;
  max-width: 360px;
}
.report-toast .ico { display: inline-flex; align-items: center; flex: 0 0 auto; }
.report-toast .ico .fas { font-size: 14px; line-height: 1; }
.report-toast .msg { flex: 1; min-width: 0; }
.report-toast.success { border-color: rgba(52,199,89,.5); }
.report-toast.success .ico { color: #34c759; }
.report-toast.error { border-color: rgba(241,77,66,.5); }
.report-toast.error .ico { color: #ff6b60; }
.report-toast.hide { animation: reportToastOut .25s ease forwards; }
@keyframes reportToastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes reportToastOut { to { opacity: 0; transform: translateX(20px); } }

/* 移动端适配 */
@media (max-width: 640px) {
  .report-dialog { max-height: 92vh; }
  .report-article-list { max-height: 180px; }
}
