/* ============================================================
   maochenhuan.cn 安全反馈中心 — 「涉密档案」美术体系
   纸米白 × 墨蓝 × 朱砂红，衬线大标题，档案编号，朱印
   ============================================================ */
:root {
  --paper: #f4f1ea;
  --paper-deep: #ede9df;
  --ink: #1a1f2c;
  --ink-soft: #3d465c;
  --muted: #6b7387;
  --line: #d8d2c4;
  --line-strong: #b8ae98;
  --seal: #c8463c;
  --seal-dark: #a93a31;
  --gold: #b8a98c;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "Fira Code", monospace;
  --shadow:
    0 1px 0 rgba(26, 31, 44, 0.05), 0 10px 30px -18px rgba(26, 31, 44, 0.25);
  --radius: 3px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* 纸张噪点纹理 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.7 0 0 0 0 0.65 0 0 0 0 0.55 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 纸张边缘压痕 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(to bottom, rgba(26, 31, 44, 0.03), transparent 120px),
    linear-gradient(to top, rgba(26, 31, 44, 0.03), transparent 120px);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ 顶部朱红栏 ============ */
.topbar {
  background: var(--seal);
  color: #f6efe7;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.topbar a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ============ 档案头部 ============ */
.header {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.header-mark {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.header-mark::before,
.header-mark::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
.header h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.header .subtitle {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.header .doc-no {
  position: absolute;
  right: 28px;
  top: 56px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-align: right;
  line-height: 1.7;
}

/* 朱红印章（CSS 画） */
.stamp {
  position: absolute;
  right: 28px;
  bottom: -22px;
  width: 88px;
  height: 88px;
  border: 3px solid var(--seal);
  border-radius: 50%;
  color: var(--seal);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-14deg);
  opacity: 0.85;
  background: rgba(200, 70, 60, 0.04);
  letter-spacing: 0.15em;
  text-shadow: 0 0 1px rgba(200, 70, 60, 0.5);
  box-shadow: inset 0 0 0 2px var(--paper);
}
.stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--seal);
  border-radius: 50%;
  opacity: 0.6;
}

/* ============ 章节 ============ */
.section {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type {
  border-bottom: none;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
}
.section-no {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--seal);
  line-height: 1;
}
.section-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.section-note {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ============ 声明卡片 ============ */
.declaration {
  border: 1px solid var(--line-strong);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.1)
  );
  padding: 26px 30px;
  position: relative;
  box-shadow: var(--shadow);
}
.declaration::before {
  content: "机密";
  position: absolute;
  top: -11px;
  left: 22px;
  background: var(--seal);
  color: #f6efe7;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 3px 12px;
  letter-spacing: 0.3em;
}
.declaration h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--ink);
}
.declaration p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.9;
}
.declaration p + p {
  margin-top: 8px;
}

/* ============ 流程列表 ============ */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.3);
}
.process-step {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  position: relative;
}
.process-step:last-child {
  border-right: none;
}
.process-step .step-no {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}
.process-step h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ============ 档案表单 ============ */
.archive-form {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
}
.form-section {
  padding: 30px 34px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-child {
  border-bottom: none;
}
.form-section-title {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--seal);
  letter-spacing: 0.12em;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 22px;
}
.field {
  position: relative;
}
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.field label .req {
  color: var(--seal);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--line-strong);
  background: transparent;
  padding: 8px 2px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s;
  border-radius: 0;
  appearance: none;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.75;
  font-size: 0.88rem;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7387'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 22px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--seal);
}
.field .hint {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 0.06em;
}

/* TraceCaptcha 容器 */
.captcha-wrap {
  margin: 6px 0 4px;
  border: 1px dashed var(--line-strong);
  padding: 16px;
  background: rgba(255, 255, 255, 0.3);
}
.captcha-wrap .captcha-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

/* 提交按钮 — 朱印风格 */
.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-submit {
  appearance: none;
  border: none;
  background: var(--seal);
  color: #f8f2e9;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  padding: 14px 42px;
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.15s,
    box-shadow 0.25s;
  box-shadow: 0 8px 22px -10px rgba(200, 70, 60, 0.55);
  border-radius: 0;
}
.btn-submit:hover {
  background: var(--seal-dark);
  transform: translateY(-1px);
}
.btn-submit:active {
  transform: translateY(0);
}
.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.form-status {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.form-status.ok {
  color: #2f7d5a;
}
.form-status.err {
  color: var(--seal);
}

/* ============ 鸣谢列表 ============ */
.hof-list {
  list-style: none;
}
.hof-item {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.4);
  padding: 22px 26px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: var(--shadow);
}
.hof-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--seal);
}
.hof-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.hof-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.hof-name a:hover {
  color: var(--seal);
  border-color: var(--seal);
}
.hof-date {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.hof-summary {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.85;
}
.hof-empty {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
  letter-spacing: 0.08em;
}

/* ============ 页脚 ============ */
.footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer .brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink);
}
.footer .brand em {
  font-style: normal;
  color: var(--seal);
}
.footer .meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  line-height: 1.8;
}
.footer .meta a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.footer .meta a:hover {
  color: var(--seal);
  border-color: var(--seal);
}

/* ============ 加载层 ============ */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  transition:
    opacity 0.5s,
    visibility 0.5s;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
#page-loader .loader-stamp {
  width: 74px;
  height: 74px;
  border: 3px solid var(--seal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--seal);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  animation: stamp-pulse 1.4s ease-in-out infinite;
}
#page-loader .loader-text {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}
@keyframes stamp-pulse {
  0%,
  100% {
    transform: scale(1) rotate(-14deg);
    opacity: 0.9;
  }
  50% {
    transform: scale(0.94) rotate(-14deg);
    opacity: 0.6;
  }
}

/* ============ 细节装饰 ============ */
.vline {
  width: 1px;
  background: var(--line-strong);
  align-self: stretch;
}
.tnum {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.8rem;
}
mark.red {
  background: transparent;
  color: var(--seal);
  font-family: var(--serif);
  font-weight: 900;
}

/* ============ 响应式 ============ */
@media (max-width: 720px) {
  .header {
    padding: 40px 0 30px;
  }
  .header .doc-no {
    position: static;
    margin-top: 18px;
    text-align: left;
  }
  .stamp {
    position: static;
    margin-top: 24px;
    transform: rotate(-14deg);
  }
  .form-section {
    padding: 24px 22px;
  }
  .process-step {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ============ 管理卷宗（/admin/） ============ */
.admin-body {
  min-height: 100vh;
  background: var(--paper-deep);
}

.admin-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  background: var(--paper);
  border: 1px solid var(--gold);
  box-shadow: 0 12px 40px rgba(26, 31, 44, 0.12);
  padding: 40px 34px;
  text-align: center;
}

.login-card .header-mark {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 14px;
}

.login-card h1 {
  font-family: var(--serif);
  font-size: 1.9rem;
  margin: 0 0 8px;
}

.login-card .subtitle {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 26px;
}

.login-msg {
  background: #f6e4e2;
  border: 1px solid var(--seal);
  color: var(--seal-dark);
  padding: 10px 12px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  text-align: left;
}

.login-note {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.back-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.admin-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-brand {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.1rem;
}

.admin-brand-en {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-left: 10px;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--paper);
}

.role-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 3px 8px;
}

.admin-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 172px 1fr;
}

.admin-nav {
  background: #242a38;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #e8e2d7;
  font-size: 0.9rem;
  padding: 10px 12px;
  cursor: pointer;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: rgba(244, 241, 234, 0.06);
}

.nav-item.active {
  background: var(--seal);
  color: #fff;
  border-left-color: #7d2b25;
}

.admin-main {
  padding: 26px;
  min-width: 0;
}

.admin-view .pane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--seal);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.admin-view .pane-head h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 0;
}

.pane-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.reports-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

.report-list-pane {
  background: var(--paper);
  border: 1px solid var(--gold);
  padding: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.filter {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--ink-soft);
  font-size: 0.78rem;
  padding: 5px 9px;
  cursor: pointer;
}

.filter.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.report-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 62vh;
  overflow-y: auto;
}

.report-item {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.report-item:hover {
  background: var(--paper-deep);
}

.report-item.active {
  border-left: 4px solid var(--seal);
  background: #fff;
}

.report-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.report-item-id {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.severity-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border: 1px solid currentColor;
}

.severity-low {
  color: #4b765f;
}
.severity-medium {
  color: #b88a3b;
}
.severity-high {
  color: #c87a2e;
}
.severity-critical {
  color: var(--seal);
}

.report-item-title {
  font-weight: 700;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-item-meta {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-list-empty {
  padding: 22px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.report-detail-pane {
  background: var(--paper);
  border: 1px solid var(--gold);
  padding: 22px;
  min-height: 420px;
  position: relative;
}

.pane-placeholder {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1rem;
  padding: 80px 0;
  text-align: center;
}

.detail-back {
  display: none;
  margin-bottom: 12px;
}

.report-detail .detail-head {
  position: relative;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.detail-id {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.detail-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 130px 0 0;
}

.detail-status {
  position: absolute;
  top: 0;
  right: 0;
  border: 3px double var(--seal);
  color: var(--seal);
  font-family: var(--serif);
  font-weight: 700;
  padding: 6px 10px;
  transform: rotate(-4deg);
  font-size: 0.85rem;
}

.detail-meta {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 6px 12px;
  margin: 0 0 18px;
  font-size: 0.84rem;
}

.detail-meta dt {
  color: var(--ink-soft);
  font-weight: 700;
}

.detail-meta dd {
  margin: 0;
  word-break: break-all;
}

.detail-block {
  border-top: 1px dashed var(--gold);
  padding-top: 14px;
  margin-top: 14px;
}

.detail-block h4 {
  font-family: var(--serif);
  font-size: 1rem;
  margin: 0 0 8px;
}

.detail-block p {
  font-size: 0.86rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.suggestion-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--gold);
  background: #fff;
  padding: 10px;
  font-family: inherit;
  font-size: 0.86rem;
  resize: vertical;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ack-form {
  display: grid;
  gap: 10px;
  font-size: 0.85rem;
}

.ack-form label {
  display: grid;
  gap: 4px;
  color: var(--ink-soft);
}

.ack-form input,
.ack-form textarea {
  border: 1px solid var(--gold);
  background: #fff;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.86rem;
}

.ack-form textarea {
  resize: vertical;
}

.user-add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  background: var(--paper);
  border: 1px solid var(--gold);
  padding: 16px;
  margin-bottom: 18px;
}

.user-add-form label {
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.user-add-form input,
.user-add-form select,
.user-role-select {
  border: 1px solid var(--gold);
  background: #fff;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.86rem;
}

.user-list,
.audit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--gold);
}

.user-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--paper-deep);
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 700;
}

.user-github-id {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.user-list-empty,
.audit-list-empty {
  padding: 26px;
  text-align: center;
  color: var(--ink-soft);
}

.audit-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.audit-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.audit-action {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--seal-dark);
}

.audit-time {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.audit-detail {
  font-size: 0.8rem;
  color: var(--ink-soft);
  word-break: break-all;
}

.admin-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 11px 20px;
  font-size: 0.86rem;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
  z-index: 60;
}

.admin-toast.toast-error {
  background: var(--seal-dark);
}

.hidden {
  display: none !important;
}

/* ============ 报告者 GitHub 身份条 ============ */
.identity-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 2px 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.identity-label {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
}

.identity-status {
  color: var(--muted);
  margin-left: -6px;
}

.identity-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.identity-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--paper-deep);
}

.identity-stamp {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--seal);
  border: 1px solid var(--seal);
  padding: 1px 6px;
  transform: rotate(-3deg);
}

.identity-action {
  margin-left: auto;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--seal);
  text-decoration: none;
  border-bottom: 1px solid var(--seal);
  cursor: pointer;
}

.identity-action:hover {
  color: var(--seal-dark);
  border-bottom-color: var(--seal-dark);
}

.identity-action.identity-logout {
  color: var(--muted);
  border-bottom: 1px solid var(--gold);
  font-size: 0.78rem;
}

.identity-action.identity-logout:hover {
  color: var(--ink-soft);
  border-bottom-color: var(--ink-soft);
}

@media (max-width: 720px) {
  .identity-action {
    margin-left: 0;
  }
}

.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  padding: 9px 16px;
  text-decoration: none;
  text-align: center;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-seal {
  background: var(--seal);
  color: #fff;
}
.btn-seal:hover:not(:disabled) {
  background: var(--seal-dark);
}
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--ink-soft);
  color: var(--ink-soft);
}
.btn-gold {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--ink-soft);
}

.admin-topbar .btn-ghost {
  border-color: var(--gold);
  color: var(--paper);
}

.admin-entry {
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

@media (max-width: 900px) {
  .reports-grid {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 760px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 10px;
    gap: 8px;
  }
  .nav-item {
    width: auto;
    white-space: nowrap;
    padding: 8px 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .nav-item.active {
    border-left: 0;
    border-bottom-color: #7d2b25;
  }
  .admin-main {
    padding: 16px;
  }
  .reports-grid {
    grid-template-columns: 1fr;
  }
  .report-list {
    max-height: none;
  }
  .detail-back {
    display: inline-block;
  }
  .reports-grid.detail-open .report-list-pane {
    display: none;
  }
  .reports-grid:not(.detail-open) .report-detail-pane {
    display: none;
  }
  .report-detail-pane {
    min-height: 300px;
  }
  .detail-title {
    margin-right: 0;
  }
  .detail-status {
    position: static;
    display: inline-block;
    margin-top: 8px;
  }
  .user-item {
    flex-wrap: wrap;
  }
}
