:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f6f8f7;
  --card: #ffffff;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────── */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-size: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; color: var(--brand-dark); }
.brand-text small { font-size: 12px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--brand); background: #ecfdf5; }
.nav a.active { color: #fff; background: var(--brand); }
.nav-cta { border: 1px solid var(--brand); color: var(--brand) !important; }

/* ── Hero ───────────────────────────── */
.hero { padding: 28px 0 8px; }
.hero h1 { font-size: 24px; margin: 0 0 6px; color: var(--ink); }
.hero p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── Filter bar ─────────────────────── */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; align-items: center; }
.filterbar select, .filterbar input, .field select, .field input, .field textarea {
  font: inherit; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; background: #fff; outline: none; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.filterbar select, .filterbar input { width: auto; }
.filterbar select:focus, .filterbar input:focus, .field select:focus, .field input:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.12);
}
.btn {
  font: inherit; font-size: 14px; border: none; cursor: pointer; border-radius: 10px;
  padding: 9px 16px; background: var(--brand); color: #fff; transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn-block { width: 100%; padding: 12px; font-size: 15px; }

/* ── Cards ──────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s;
  display: block;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16,24,40,.1); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: #e6f0ee; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; color: var(--brand); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-title { flex: 1; min-width: 0; }
.card-title .name { font-size: 16px; font-weight: 600; }
.card-title .meta { font-size: 12px; color: var(--muted); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: #f3f4f6; color: #4b5563; }
.tag.lock { color: #9ca3af; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13px; color: #374151; }
.fields .k { color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--muted); }

/* ── Detail ─────────────────────────── */
.detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.back { display: inline-block; margin-bottom: 14px; color: var(--brand); font-size: 14px; }
.detail-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.detail-head .avatar { width: 76px; height: 76px; font-size: 34px; }
.detail-head h2 { margin: 0; font-size: 22px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.kv .item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.kv .item .k { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.kv .item .v { font-size: 15px; }
.panel { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-top: 16px; }
.panel h3 { margin: 0 0 8px; font-size: 14px; }
.panel p { margin: 0; font-size: 14px; color: #374151; }
.note { margin-top: 16px; font-size: 13px; color: var(--muted); background: #f9fafb; border-radius: 10px; padding: 12px 14px; }

/* ── Report form ────────────────────── */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: #374151; }
.field label .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--muted); }
.captcha-box { display: flex; gap: 10px; align-items: center; }
.captcha-box svg { border: 1px solid var(--line); border-radius: 8px; cursor: pointer; height: 44px; }
.captcha-box .refresh { font-size: 13px; color: var(--brand); cursor: pointer; white-space: nowrap; }
.commit { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; font-size: 13px; color: #374151; background: #f0fdfa; border: 1px solid #ccfbf1; border-radius: 10px; padding: 12px 14px; }
.commit input { margin-top: 3px; }
.divider { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.sec-title { font-size: 15px; font-weight: 600; color: var(--brand-dark); margin: 18px 0 12px; }

/* ── States ─────────────────────────── */
.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 14px; }
.empty .big { font-size: 40px; margin-bottom: 10px; }
.loading { text-align: center; color: var(--muted); padding: 40px 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 0; }
.pager button { font: inherit; font-size: 14px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .info { font-size: 13px; color: var(--muted); }

/* ── Toast ──────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: #111827; color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; max-width: 80vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }
.toast.success { background: var(--brand); }

/* ── Footer ─────────────────────────── */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0; background: #fff; }
.site-footer .disclaimer { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.site-footer .privacy { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.site-footer .copyright { font-size: 12px; color: #9ca3af; margin: 0; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .filterbar select, .filterbar input { width: 100%; }
}
