* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f5f7;
  color: #222;
  line-height: 1.6;
}
a { color: #c0392b; }

.hero {
  background: linear-gradient(135deg, #b71c1c, #e53935);
  color: #fff;
  padding: 48px 16px 28px;
  text-align: center;
}
.hero h1 { margin: 0 0 8px; font-size: 2.2rem; letter-spacing: 2px; }
.hero p { margin: 0 0 20px; opacity: .9; }

.search { max-width: 640px; margin: 0 auto; }
.search input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1.05rem;
  border: none;
  border-radius: 999px;
  outline: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

.filters { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.filters button {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  padding: 4px 14px;
  cursor: pointer;
  font-size: .9rem;
}
.filters button.active { background: #fff; color: #b71c1c; }

main { max-width: 900px; margin: 0 auto; padding: 20px 16px; }
.summary { color: #666; margin: 0 0 12px; }
.list { display: grid; gap: 16px; }

.card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card h3 { margin: 0; font-size: 1.15rem; }
.meta { color: #888; font-size: .85rem; margin: 4px 0 10px; }
.tag {
  display: inline-block;
  font-size: .8rem;
  padding: 1px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-已核实 { background: #fdecea; color: #c62828; }
.status-待核实 { background: #fff4e0; color: #e67e00; }
.status-已申诉 { background: #eceff1; color: #546e7a; }

.ids { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.id {
  background: #f7f7f9;
  border: 1px solid #e3e3e8;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: .9rem;
  font-family: Consolas, monospace;
}
.id b { font-family: inherit; color: #b71c1c; font-weight: 600; margin-right: 4px; }
.desc { margin: 0; }
mark { background: #ffe082; padding: 0 2px; }

.evidence { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.evidence img {
  width: 96px; height: 96px; object-fit: cover;
  border-radius: 6px; cursor: zoom-in; border: 1px solid #ddd;
}

.empty { text-align: center; color: #888; padding: 40px 0; }
.empty strong { color: #2e7d32; }

.notice {
  max-width: 900px; margin: 10px auto 30px; padding: 16px 24px;
  background: #fffbe6; border: 1px solid #ffe58f; border-radius: 12px;
}
.notice h2 { margin: 0 0 6px; font-size: 1.05rem; }
.notice ul { margin: 0; padding-left: 20px; color: #555; font-size: .92rem; }

footer { text-align: center; color: #999; font-size: .85rem; padding: 0 0 30px; }

/* ---------- 按钮 ---------- */
button { font: inherit; }
.btn-primary, .btn-danger, .btn-ghost, .btn-light {
  display: inline-block; border-radius: 8px; padding: 8px 18px;
  cursor: pointer; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: #c62828; color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-danger { background: #fff; color: #c62828; border-color: #c62828; }
.btn-ghost { background: #fff; color: #555; border-color: #ccc; padding: 6px 12px; }
.btn-light { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.5); }
.submit-link { margin-top: 18px; }
.hero.small { padding: 28px 16px 22px; }

/* ---------- 详情页与防骗指南 ---------- */
.home-link { color: inherit; text-decoration: none; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card h2 { margin: 0; font-size: 1.3rem; }
.guide h3 { margin: 18px 0 6px; font-size: 1.05rem; }
.guide ul { margin: 0; padding-left: 20px; line-height: 1.8; }
.guides { max-width: 900px; margin: 0 auto 10px; padding: 0 16px; }
.section-title { font-size: 1.1rem; margin: 24px 0 10px; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.guide-list li { background: #fff; border-radius: 8px; padding: 10px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.guide-list a { color: #c62828; font-weight: 600; text-decoration: none; }
.guide-list span { display: block; color: #777; font-size: .88rem; margin-top: 2px; }
.back { margin: 16px 0; }
.back a { color: #c62828; }
.hint { color: #b26a00; font-size: .9rem; margin: 10px 0 0; }

/* ---------- 表单 ---------- */
.form {
  display: grid; gap: 16px; background: #fff; padding: 24px;
  border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 8px 10px;
  border: 1px solid #ccc; border-radius: 6px; width: 100%;
}
.form textarea { resize: vertical; }
.form fieldset { border: 1px solid #e3e3e8; border-radius: 8px; padding: 12px 14px; margin: 0; }
.form legend { font-weight: 600; font-size: .95rem; padding: 0 4px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .row3 { grid-template-columns: 1fr; } }
.id-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; margin-bottom: 8px; }
.req { color: #c62828; }
.hint { color: #888; font-size: .85rem; font-weight: 400; margin: 6px 0; }
.form label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; }
.msg { margin: 0; min-height: 1.4em; }
.msg.error { color: #c62828; }
.msg.ok { color: #2e7d32; font-weight: 600; }
.thumb { position: relative; }
.thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd; }
.thumb button {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px;
  border-radius: 50%; border: none; background: #333; color: #fff; cursor: pointer; line-height: 1;
}

/* ---------- 后台 ---------- */
.login { max-width: 360px; margin: 30px auto; }
.tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.tabs button { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 6px 16px; cursor: pointer; }
.tabs button.active { background: #c62828; color: #fff; border-color: #c62828; }
.tabs .tab-right { margin-left: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.actions select { font: inherit; padding: 6px; border-radius: 6px; }
.private { color: #6a1b9a; font-size: .88rem; background: #f6effa; padding: 6px 10px; border-radius: 6px; }
.evidence img.zoom { width: auto; height: auto; max-width: 100%; cursor: zoom-out; }

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 92vh; }
