* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f5f2fa;
  --card: #fff;
  --card-hover: #faf8ff;
  --primary: #8b6fc0;
  --primary-light: #b39ddb;
  --primary-dark: #5e3b9e;
  --accent: #c9a0b8;
  --danger: #d4787c;
  --success: #6db89a;
  --warning: #d4a76a;
  --text: #2d1f3d;
  --text2: #7a6b8a;
  --text-light: #b0a0c0;
  --border: #e8e0f0;
  --border-light: #f0e8f8;
  --radius: 14px;
  --shadow-sm: 0 1px 4px rgba(45,20,60,.06);
  --shadow-md: 0 4px 20px rgba(45,20,60,.08);
  --shadow-lg: 0 12px 40px rgba(30,10,50,.12);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f5f2fa 0%, #ede4f5 30%, #f2e8f8 60%, #f5f2fa 100%);
  color: var(--text); min-height: 100vh;
}

.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ---- QQ 群横幅 ---- */
.qq-top-bar {
  background: linear-gradient(135deg, #b39ddb, #c9a0b8);
  color: #fff; text-align: center; padding: 9px 16px; font-size: 14px; font-weight: 500;
}
.qq-top-bar a { color: #fff; text-decoration: none; display: inline-block; padding: 4px 18px; border: 1px solid rgba(255,255,255,.4); border-radius: 20px; transition: .2s; }
.qq-top-bar a:hover { background: rgba(255,255,255,.2); }

/* ---- Header ---- */
.top-header {
  background: linear-gradient(160deg, #1a1025 0%, #1e1235 25%, #261840 50%, #2d1b3d 75%, #1e1330 100%);
  color: #fff; padding: 0 16px;
}
.top-inner {
  max-width: 980px; margin: 0 auto; display: flex;
  justify-content: space-between; align-items: center;
  padding: 22px 0; flex-wrap: wrap; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-icon { font-size: 38px; filter: drop-shadow(0 2px 6px rgba(180,160,220,.3)); }
.brand h1 { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.brand-sub { font-size: 12px; color: rgba(255,255,255,.45); }
.back-link { color: rgba(255,255,255,.6); text-decoration: none; font-size: 14px; transition: .2s; padding: 8px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; }
.back-link:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }

.header-stats { display: flex; gap: 28px; }
.hstat { text-align: center; }
.hs-num { display: block; font-size: 26px; font-weight: 700; background: linear-gradient(135deg, #c4b5e0, #e0c8d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hs-label { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }
.hstat.danger .hs-num { background: linear-gradient(135deg, #e8a0a4, #d4787c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ---- Main ---- */
.main-content { max-width: 980px; margin: 0 auto; padding: 36px 16px 0; flex: 1; }

/* ---- Search ---- */
.hero-search { margin-bottom: 32px; }
.search-card {
  background: linear-gradient(180deg, #fff 0%, #faf8ff 100%);
  padding: 44px 36px; border-radius: var(--radius);
  box-shadow: var(--shadow-md); text-align: center;
  border: 1px solid var(--border-light);
}
.search-card h2 { font-size: 24px; margin-bottom: 8px; color: #2d1f3d; }
.search-sub { color: var(--text2); font-size: 14px; margin-bottom: 24px; }
.search-row { display: flex; gap: 12px; max-width: 540px; margin: 0 auto; }
.search-row input {
  flex: 1; padding: 15px 20px; font-size: 16px; border: 2px solid var(--border);
  border-radius: 12px; outline: none; transition: all .2s; background: #faf8ff;
}
.search-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(139,111,192,.1); }
.search-row button {
  padding: 15px 32px; background: linear-gradient(135deg, #8b6fc0, #a07cc5);
  color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all .2s; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(139,111,192,.3);
}
.search-row button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(139,111,192,.4); }

.loading { text-align: center; padding: 20px; color: var(--text2); }
.error-msg { background: #fff0f2; color: var(--danger); padding: 12px 16px; border-radius: 10px; margin-top: 14px; font-size: 14px; border: 1px solid #fdd; }

/* ---- 结果 ---- */
.result-card {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  margin-bottom: 24px; box-shadow: var(--shadow-md); border: 1px solid var(--border-light);
}
.qq-profile { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.qq-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: #eee; border: 3px solid var(--border-light); }
.qq-info h3 { font-size: 20px; }
.qq-num { font-size: 14px; color: var(--text2); display: block; margin-top: 2px; }
.risk-badge { display: inline-block; padding: 5px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-top: 8px; }
.risk-safe    { background: #e8f5f0; color: var(--success); }
.risk-warning { background: #fef5e7; color: var(--warning); }
.risk-danger  { background: #fef0f0; color: var(--danger); }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.stat-cell { text-align: center; padding: 16px; border-radius: 12px; background: #faf8ff; border: 1px solid var(--border-light); }
.stat-cell .num { font-size: 30px; font-weight: 700; }
.stat-cell .label { font-size: 12px; color: var(--text2); margin-top: 4px; }
.stat-cell.danger .num { color: var(--danger); }
.stat-cell.warning .num { color: var(--warning); }
.stat-cell.success .num { color: var(--success); }

.danger-banner {
  margin: 18px 0; padding: 20px 24px;
  background: linear-gradient(135deg, #e0747a, #c96068);
  color: #fff; border-radius: var(--radius); text-align: center; font-weight: 700;
  font-size: 18px; animation: dangerBannerPulse 2s ease-in-out infinite;
  box-shadow: 0 6px 24px rgba(200,90,100,.3);
}
@keyframes dangerBannerPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.02)} }
.danger-banner .big-icon { font-size: 36px; display: block; margin-bottom: 8px; }
.danger-banner .big-text { font-size: 17px; line-height: 1.5; }

.report-mini-list { margin-top: 20px; }
.report-mini-list h4 { font-size: 14px; color: var(--text2); margin-bottom: 10px; }
.report-mini-item {
  padding: 14px 16px; border-left: 3px solid var(--border); margin-bottom: 10px;
  background: #faf8ff; border-radius: 0 10px 10px 0; font-size: 14px;
}
.report-mini-item.confirmed { border-color: var(--danger); background: #fef5f5; }
.report-mini-item.rejected  { border-color: var(--success); background: #f5faf7; }
.status-tag { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; margin-right: 6px; }
.tag-pending   { background: #fef5e7; color: #b08040; }
.tag-confirmed { background: #fef0f0; color: #c05050; }
.tag-rejected  { background: #e8f5f0; color: #5a9a7a; }

.evidence-images { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.evidence-images .img-wrap { position: relative; overflow: visible; }
.evidence-images .img-wrap img {
  width: 110px; height: 110px; object-fit: cover; border-radius: 10px;
  border: 2px solid var(--border-light); cursor: pointer; transition: transform .2s;
}
.evidence-images .img-wrap:hover img {
  transform: scale(4.5); z-index: 9999; position: relative;
  box-shadow: 0 16px 60px rgba(30,10,50,.45); border-radius: 6px;
}

.qq-level { display:inline-block; padding:3px 12px; border-radius:12px; font-size:12px; font-weight:600; background: linear-gradient(135deg, #e8e0f8, #f0e8f8); color: var(--primary-dark); margin-left:10px; }

.lightbox {
  position: fixed; top:0;left:0;right:0;bottom:0; background: rgba(10,5,20,.92);
  display:flex; align-items:center; justify-content:center; z-index:9999; cursor:pointer;
}
.lightbox img { max-width:92vw; max-height:90vh; border-radius:12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

/* ---- Action Cards ---- */
.action-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.act-card {
  background: var(--card); padding: 32px 22px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); text-align: center;
  cursor: pointer; transition: all .25s; border: 2px solid transparent;
}
.act-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.act-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.act-card h3 { font-size: 17px; margin-bottom: 6px; }
.act-card p { font-size: 13px; color: var(--text2); }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,8,35,.55); z-index: 1000; display: flex;
  align-items: center; justify-content: center; padding: 16px;
  backdrop-filter: blur(4px);
}
.modal-card {
  background: var(--card); border-radius: var(--radius); padding: 32px 28px;
  width: 520px; max-width: 95vw; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); position: relative; border: 1px solid var(--border-light);
}
.modal-card.wide { width: 700px; }
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 22px; cursor: pointer; color: var(--text-light); padding: 6px 10px;
  border-radius: 8px; transition: .2s;
}
.modal-close:hover { color: var(--text); background: var(--border-light); }
.modal-card h2 { font-size: 21px; margin-bottom: 20px; }

.modal-card label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 14px; }
.modal-card label:first-of-type { margin-top: 0; }
.modal-card input, .modal-card textarea {
  width: 100%; padding: 11px 16px; border: 2px solid var(--border);
  border-radius: 10px; font-size: 14px; font-family: inherit; outline: none;
  background: #faf8ff; transition: .2s;
}
.modal-card input:focus, .modal-card textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,111,192,.08); }
.modal-card textarea { resize: vertical; }
.required { color: var(--danger); }
.optional { color: var(--text2); font-weight: 400; font-size: 12px; }

.btn-primary {
  margin-top: 18px; width: 100%; padding: 13px;
  background: linear-gradient(135deg, #8b6fc0, #a07cc5);
  color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all .2s; box-shadow: 0 4px 14px rgba(139,111,192,.25);
}
.btn-primary:hover { opacity: .92; transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.msg { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.msg-success { background: #e8f5f0; color: #4a7a60; }
.msg-error   { background: #fef0f0; color: #b84848; }

.img-preview-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.img-preview-row img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.img-thumb { position: relative; display: inline-block; }
.img-thumb .remove-img {
  position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--danger); color: #fff; border: none; font-size: 13px; line-height: 22px;
  text-align: center; cursor: pointer; display: none; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.img-thumb:hover .remove-img { display: block; }

/* ---- Review ---- */
.review-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.subtab {
  padding: 9px 22px; border: 2px solid var(--border); background: var(--card);
  border-radius: 22px; cursor: pointer; font-size: 14px; font-weight: 500; transition: .2s;
}
.subtab.active { background: linear-gradient(135deg, #8b6fc0, #a07cc5); color: #fff; border-color: transparent; }
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-card { background: #faf8ff; padding: 18px; border-radius: 12px; border: 1px solid var(--border-light); }
.review-card .meta { display: flex; gap: 12px; margin-bottom: 10px; font-size: 13px; color: var(--text2); }
.review-card .meta .qq { font-weight: 700; color: var(--primary); }
.review-card .reason { font-size: 14px; margin-bottom: 8px; line-height: 1.6; }
.review-card .evidence { font-size: 13px; color: var(--text2); background: #f0e8f8; padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; }
.review-card .vote-bar { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.review-card .counts { font-size: 13px; color: var(--text2); }
.vote-btn { padding: 7px 20px; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s; }
.vote-btn.confirm { background: linear-gradient(135deg, #d4787c, #c96068); color: #fff; }
.vote-btn.confirm:hover { opacity: .9; }
.vote-btn.reject  { background: linear-gradient(135deg, #6db89a, #5aa080); color: #fff; }
.vote-btn.reject:hover { opacity: .9; }
.vote-btn:disabled { opacity: .5; }
.vote-comment { flex: 1; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; outline: none; background: #faf8ff; }

.hint { text-align: center; color: var(--text2); padding: 24px; }

/* ---- Footer ---- */
.site-footer { background: linear-gradient(160deg, #1a1025, #221535); color: rgba(255,255,255,.45); padding: 24px 16px; margin-top: 48px; }
.footer-inner { max-width: 980px; margin: 0 auto; }
.footer-links { display: flex; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 13px; transition: .2s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-text { font-size: 12px; }

/* ---- Animations ---- */
@keyframes alertPulse { 0%,100%{box-shadow:0 0 0 0 rgba(200,90,100,.5)} 50%{box-shadow:0 0 0 22px rgba(200,90,100,0)} }
@keyframes alertShake { 0%,100%{transform:translateX(0)} 10%,50%,90%{transform:translateX(-4px)} 30%,70%{transform:translateX(4px)} }
.alert-danger { animation: alertPulse 1.5s ease-in-out 3, alertShake .5s ease-in-out 1; border:3px solid var(--danger)!important; }
.alert-overlay { position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(200,80,90,.1);z-index:9998;pointer-events:none;animation:fadeInOut 2s forwards; }
@keyframes fadeInOut { 0%{opacity:0} 30%{opacity:1} 100%{opacity:0} }
.confetti-canvas { position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:9999; }

.hidden { display: none !important; }
input[type="file"] { padding: 6px; font-size: 13px; }

/* ---- Review Page ---- */
.review-page-card { background: var(--card); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-md); border: 1px solid var(--border-light); }
.review-page-card h2 { margin-bottom: 4px; font-size: 22px; }
.review-sub { color: var(--text2); font-size: 14px; margin-bottom: 22px; }

@media (max-width: 640px) {
  .top-inner { flex-direction: column; text-align: center; }
  .action-cards { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; }
  .search-row button { width: 100%; }
  .modal-card { padding: 22px 18px; }
}
