/* ==========================================================================
   PixelInn — report.css
   举报列表 /report 与后台 admin.html 共用的一部分
   ========================================================================== */

/* ---------- page head ---------- */
.rp-head {
  padding: 68px 0 44px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.rp-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}
.rp-head .h1 {
  margin: 10px 0 14px;
}
.rp-head .lede {
  max-width: 46ch;
  color: var(--muted);
}

.rp-tally {
  display: flex;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.rp-tally div {
  padding: 14px 22px;
  min-width: 96px;
}
.rp-tally div + div {
  border-left: 1px solid var(--line-soft);
}
.rp-tally dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.rp-tally dd {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.rp-tally dd[data-hot="true"] {
  color: var(--accent);
}

/* ---------- body layout ---------- */
.rp-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 56px;
  padding: 40px 0 96px;
  align-items: start;
}

/* ---------- toolbar ---------- */
.rp-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.rp-tabs {
  display: flex;
  gap: 4px;
}
.rp-tabs button {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--muted);
  transition: background var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.rp-tabs button:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.rp-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
}
.rp-tabs button b {
  font-weight: 500;
  opacity: 0.55;
  margin-left: 5px;
  font-family: var(--mono);
  font-size: 11px;
}

.rp-tools-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.rp-search {
  position: relative;
  display: flex;
  align-items: center;
}
.rp-search svg {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  color: var(--muted-2);
  pointer-events: none;
}
.rp-search .input {
  width: 190px;
  height: 36px;
  padding-left: 33px;
  font-size: 13.5px;
  background: var(--surface);
}
.rp-tools .select {
  height: 36px;
  font-size: 13.5px;
  background: var(--surface);
}

/* ---------- report card ---------- */
.rp-list {
  display: flex;
  flex-direction: column;
}
.rc {
  display: block;
  width: 100%;
  text-align: left;
  margin-inline: -16px;
  padding: 22px 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: var(--radius) var(--radius) 0 0;
  transition: background var(--d-fast) var(--ease);
}
.rc:hover,
.rc:focus-visible {
  background: var(--surface);
}
.rc:hover .rc-title {
  color: var(--accent-ink);
}
.rc:focus-visible {
  outline-offset: -2px;
}

.rc-top {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.rc-cat,
.rc-srv {
  font-size: 12px;
  color: var(--muted);
}
.rc-cat::before,
.rc-srv::before {
  content: "·";
  margin-right: 9px;
  color: var(--line);
}
.rc-id {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.rc-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
  transition: color var(--d-fast) var(--ease);
  text-wrap: pretty;
}
.rc-excerpt {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rc-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
}
.rc-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.rc-av {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--paper-2);
  image-rendering: pixelated;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
}
.rc-av img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.rc-name {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--mono);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.rc-sub {
  display: block;
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.4;
}

.rc-vote {
  flex: none;
  width: 200px;
  text-align: right;
}
.rc-vote-num {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.rc-vote-num b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- vote bar ---------- */
.vb {
  display: flex;
  gap: 2px;
  height: 5px;
  width: 100%;
  background: var(--paper-2);
  border-radius: 99px;
  overflow: hidden;
}
.vb i {
  display: block;
  height: 100%;
  border-radius: 99px;
  transition: width 600ms var(--ease);
}
.vb i[data-tone="ban"] {
  background: var(--danger);
}
.vb i[data-tone="clear"] {
  background: var(--live);
}
.vb[data-empty="true"] {
  opacity: 0.4;
}

/* ---------- status badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: currentColor;
}
.badge-open {
  color: var(--accent-ink);
  background: var(--accent-wash);
  border-color: #e6cfb8;
}
.badge-reviewing {
  color: #5d5a2c;
  background: #eee8cc;
  border-color: #ded4a5;
}
.badge-banned {
  color: #7e2b1f;
  background: var(--danger-wash);
  border-color: #e8c9c2;
}
.badge-handled {
  color: #4a4f52;
  background: #e8e6df;
  border-color: #d6d3c9;
}
.badge-cleared {
  color: #3d6440;
  background: #e2ebdd;
  border-color: #cbdcc4;
}

/* ---------- load more ---------- */
.rp-more {
  padding-top: 24px;
  text-align: center;
}
.rp-more .btn[hidden] {
  display: none;
}

/* ---------- sidebar ---------- */
.rp-side {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-card {
  padding: 20px;
  background: var(--surface);
}
.side-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.side-card-head h3 {
  margin-bottom: 0;
}
.mini-srv {
  display: grid;
  gap: 0;
  margin: 4px 0 10px;
}
.mini-row {
  display: grid;
  grid-template-columns: 8px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mini-row:last-child {
  border-bottom: 0;
}
.mini-row .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}
.mini-row[data-off="true"] .dot {
  background: var(--muted-3, #a9a294);
}
.mini-row .nm {
  font-size: 14px;
  color: var(--ink);
}
.mini-row .pl,
.mini-row .ms {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
.mini-note {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.6;
}
.side-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.side-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}
.side-card p + p {
  margin-top: 8px;
}
.side-card ol {
  counter-reset: s;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 12px;
}
.side-card ol li {
  counter-increment: s;
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.side-card ol li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  width: 16px;
  height: 16px;
  border: 1px solid #e0c7ae;
  border-radius: 99px;
  display: grid;
  place-items: center;
  line-height: 1;
}
.side-cta {
  background: var(--ink);
  color: var(--paper);
  border: 0;
}
.side-cta h3 {
  color: var(--paper);
}
.side-cta p {
  color: rgba(241, 236, 225, 0.62);
}
.side-cta .btn {
  width: 100%;
  margin-top: 14px;
  justify-content: center;
}
.side-cta .btn-accent {
  background: var(--accent);
  color: #fff8ec;
}
.side-cta .btn-accent:hover {
  background: #b8682f;
}

/* ---------- drawer detail ---------- */
.dt-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dt-id {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
}
.dt-title {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 18px 0 20px;
  text-wrap: pretty;
}
.dt-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
}
.dt-meta div {
  background: var(--surface);
  padding: 11px 13px;
}
.dt-meta dt {
  font-size: 10.5px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.dt-meta dd {
  margin: 3px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  word-break: break-word;
}
.dt-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.dt-block {
  margin-top: 26px;
}
.dt-label {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.dt-quote {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--paper);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.dt-evidence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-2);
  max-width: 100%;
  transition: border-color var(--d-fast) var(--ease);
}
.dt-evidence:hover {
  border-color: var(--ink);
}
.dt-evidence svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--muted);
}
.dt-evidence span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dt-note {
  margin-top: 26px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: var(--accent-wash);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.dt-note b {
  display: block;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 5px;
  font-weight: 500;
}
.dt-note p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #5b3a22;
}

/* ---------- vote box ---------- */
.vote-box {
  margin-top: 32px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.vote-q {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}
.vote-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vote-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 14px;
  transition: border-color var(--d-fast) var(--ease), background var(--d-fast) var(--ease),
    transform var(--d-fast) var(--ease);
}
.vote-btn:hover {
  border-color: var(--ink-2);
  transform: translateY(-1px);
}
.vote-btn .vb-n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.vote-btn[data-choice="ban"][aria-pressed="true"] {
  border-color: var(--danger);
  background: var(--danger-wash);
}
.vote-btn[data-choice="clear"][aria-pressed="true"] {
  border-color: var(--live);
  background: #e2ebdd;
}
.vote-btn[data-choice="ban"][aria-pressed="true"] .vb-n,
.vote-btn[data-choice="clear"][aria-pressed="true"] .vb-n {
  color: var(--ink);
}
.vote-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.vote-result {
  margin-top: 16px;
}
.vote-result .vb {
  height: 6px;
}
.vote-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.vote-mine {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--accent-ink);
}

/* ---------- comments ---------- */
.dt-comments-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 34px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.dt-comments-head h3 {
  font-size: 15px;
  font-weight: 600;
}
.cm {
  display: flex;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cm-av {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--paper-2);
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  image-rendering: pixelated;
}
.cm-av img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.cm-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.cm-name {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
}
.cm-time {
  font-size: 11px;
  color: var(--muted-2);
}
.cm-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-top: 2px;
  word-break: break-word;
}
.cm-form {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.cm-form .input {
  height: 36px;
  font-size: 13.5px;
}
.cm-form .textarea {
  min-height: 84px;
  font-size: 13.5px;
}
.cm-form-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.cm-form-row .hint {
  font-size: 11.5px;
}

/* ---------- submit modal ---------- */
.modal-wide {
  width: min(640px, 94vw);
}
.modal form {
  display: grid;
  gap: 14px;
}
.form-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.modal-head h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.modal-head p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- skeleton rows ---------- */
.sk-row {
  padding: 22px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.sk-row .skeleton {
  height: 12px;
  margin-bottom: 9px;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .rp-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .rp-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}
@media (max-width: 860px) {
  .rp-head {
    padding-top: 44px;
  }
  .rp-head-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }
  .rp-tally {
    width: 100%;
  }
  .rp-tally div {
    flex: 1;
    padding: 12px 16px;
    min-width: 0;
  }
  .rc-vote {
    width: 140px;
  }
}
@media (max-width: 620px) {
  .rp-tools {
    align-items: stretch;
  }
  .rp-tools-right {
    width: 100%;
  }
  .rp-tools .select {
    width: auto;
    flex: none;
    padding-right: 30px;
  }
  .rp-search {
    flex: 1 1 120px;
    min-width: 0;
  }
  .rp-search .input {
    width: 100%;
  }
  .rc-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .rc-vote {
    width: 100%;
    text-align: left;
  }
  .rc-title {
    font-size: 17px;
  }
  .dt-meta {
    grid-template-columns: 1fr;
  }
  .vote-opts {
    grid-template-columns: 1fr;
  }
  .drawer-body {
    padding: 20px 18px 40px;
  }
  .form-2 {
    grid-template-columns: 1fr;
  }
}
