:root {
  --forest: #173d2f;
  --forest-2: #1f4d3a;
  --forest-3: #2f6b4f;
  --leaf: #3f7a5c;
  --cream: #f4f1e7;
  --paper: #fffdf8;
  --ink: #1e2923;
  --muted: #6e786f;
  --line: #e4dfd2;
  --amber: #c47b3b;
  --gold: #d8c48a;
  --red: #b04a3f;
  --red-soft: #fbedea;
  --green-soft: #e9f0ea;
  --amber-soft: #faf0df;
  --gray-soft: #f1efe8;
  --shadow: 0 18px 45px rgba(23, 61, 47, 0.08);
  --shadow-soft: 0 8px 24px rgba(23, 61, 47, 0.06);
  --radius: 22px;
  --radius-sm: 14px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  background:
    radial-gradient(1100px 620px at 8% -10%, rgba(63, 122, 92, 0.12), transparent 62%),
    radial-gradient(900px 520px at 108% 4%, rgba(196, 123, 59, 0.09), transparent 56%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(23, 61, 47, 0.07);
  font-size: 0.9em;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--leaf);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--gold);
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 登录 ---------- */
.login-view {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: 100vh;
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
  color: #f6f1e4;
  background:
    radial-gradient(800px 460px at 70% 10%, rgba(216, 196, 138, 0.16), transparent 62%),
    radial-gradient(560px 460px at 0% 100%, rgba(63, 122, 92, 0.55), transparent 66%),
    var(--forest);
}

.login-brand::before {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -220px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(216, 196, 138, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(216, 196, 138, 0.035),
    0 0 0 140px rgba(216, 196, 138, 0.025);
  pointer-events: none;
}

.login-brand::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 12%;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(216, 196, 138, 0.22);
  border-radius: 62% 38% 58% 42%;
  transform: rotate(24deg);
  pointer-events: none;
}

.brand-lockup,
.sidebar-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  color: var(--gold);
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(216, 196, 138, 0.28);
  border-radius: 15px;
}

.brand-mark svg {
  width: 34px;
  height: 34px;
}

.brand-mark.small {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.brand-mark.small svg {
  width: 28px;
  height: 28px;
}

.brand-lockup strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-lockup span:not(.brand-mark) {
  display: block;
  margin-top: 2px;
  color: rgba(246, 241, 228, 0.55);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.login-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 60px 0 36px;
}

.login-brand-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.login-brand-copy > p:last-child {
  max-width: 430px;
  margin: 26px 0 0;
  color: rgba(246, 241, 228, 0.66);
  line-height: 1.9;
}

.brand-notes {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 150px;
  margin-top: 8px;
}

.note-card {
  width: 230px;
  padding: 16px 18px;
  color: var(--ink);
  background: #fffdf7;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
  transform: rotate(-3deg);
}

.note-card.note-b {
  width: 215px;
  transform: translateY(18px) rotate(2.5deg);
}

.note-tag {
  display: inline-block;
  margin-bottom: 7px;
  padding: 2px 8px;
  color: var(--forest-3);
  font-size: 10px;
  font-weight: 650;
  background: var(--green-soft);
  border-radius: 999px;
}

.note-tag.amber {
  color: #8c5b22;
  background: var(--amber-soft);
}

.note-card p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.65;
}

.note-card small {
  color: var(--muted);
  font-size: 11px;
}

.brand-principles {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 26px;
  color: rgba(246, 241, 228, 0.56);
  font-size: 12px;
  letter-spacing: 0.08em;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-principles span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 8px 2px 0;
  background: var(--gold);
  border-radius: 50%;
}

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 48px 28px;
}

.login-card {
  width: min(420px, 100%);
  padding: 38px 36px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(228, 223, 210, 0.9);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.login-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 700;
}

.login-sub {
  margin: 8px 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field > span {
  display: block;
  margin-bottom: 8px;
  color: #435047;
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a4aaa3;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(63, 122, 92, 0.12);
}

.field textarea {
  min-height: 104px;
  line-height: 1.7;
  resize: vertical;
}

.field > .char-count,
.field > .field-help {
  margin: 6px 0 0;
  color: #9aa099;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.field > .char-count {
  text-align: right;
}

.form-error {
  margin: -4px 0 16px;
  padding: 10px 12px;
  color: #8b352d;
  font-size: 13px;
  background: var(--red-soft);
  border-radius: 10px;
}

.login-hint {
  margin: 16px 0 0;
  color: #8b938c;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.login-foot {
  margin: 0;
  color: #9a9e97;
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 3px solid rgba(63, 122, 92, 0.28);
  outline-offset: 2px;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: #fffdf8;
  background: var(--forest-3);
  border-color: var(--forest-3);
}

.btn-primary:hover:not(:disabled) {
  background: var(--forest-2);
  border-color: var(--forest-2);
}

.btn-ghost {
  color: #46534a;
  background: rgba(255, 253, 248, 0.55);
  border-color: var(--line);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--paper);
  border-color: #cfc8b8;
}

.btn-soft {
  color: var(--forest-3);
  background: var(--green-soft);
  border-color: transparent;
}

.btn-soft:hover:not(:disabled) {
  background: #dde9df;
}

.btn-danger {
  color: var(--red);
  background: var(--red-soft);
  border-color: transparent;
}

.btn-danger:hover:not(:disabled) {
  background: #f6ddd8;
}

.btn-amber {
  color: #7d4c19;
  background: var(--amber-soft);
  border-color: transparent;
}

.btn-amber:hover:not(:disabled) {
  background: #f6e5c9;
}

.btn-lg {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 15px;
  border-radius: 12px;
}

.btn-sm {
  min-height: 31px;
  padding: 5px 11px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: rgba(246, 241, 228, 0.55);
  background: transparent;
  border: 0;
  border-radius: 9px;
}

.icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- 应用框架 ---------- */
.app-view {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 264px;
  padding: 28px 20px 22px;
  color: #f6f1e4;
  background:
    radial-gradient(420px 280px at 10% 0%, rgba(216, 196, 138, 0.1), transparent 65%),
    var(--forest);
}

.sidebar-brand {
  padding: 0 8px 30px;
}

.sidebar-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.sidebar-brand small {
  display: block;
  margin-top: 2px;
  color: rgba(246, 241, 228, 0.42);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 13px;
  color: rgba(246, 241, 228, 0.58);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-item svg {
  width: 19px;
  height: 19px;
  opacity: 0.8;
}

.nav-item:hover {
  color: #f6f1e4;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: #fffdf8;
  background: rgba(255, 255, 255, 0.09);
}

.nav-item.active svg {
  color: var(--gold);
  opacity: 1;
}

.nav-item span:not(.nav-badge) {
  flex: 1;
}

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  background: var(--gold);
  border-radius: 999px;
}

.nav-badge.alert {
  color: #fff7f3;
  background: #c4654f;
}

.sidebar-foot {
  margin-top: auto;
  padding: 22px 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(246, 241, 228, 0.36);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #8cbf9a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(140, 191, 154, 0.12);
}

.sidebar-note p {
  margin: 0;
}

.admin-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.admin-avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  background: var(--gold);
  border-radius: 10px;
}

.admin-chip-text {
  min-width: 0;
  flex: 1;
}

.admin-chip-text strong {
  display: block;
  overflow: hidden;
  color: #f6f1e4;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-chip-text small {
  display: block;
  color: rgba(246, 241, 228, 0.4);
  font-size: 10px;
}

.main {
  max-width: 1220px;
  margin-left: 264px;
  padding: 34px clamp(24px, 4vw, 56px) 70px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(228, 223, 210, 0.75);
}

.topbar h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page {
  animation: page-in 0.28s ease both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 概览 ---------- */
.hero-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 30px 34px;
  color: #f8f3e7;
  background:
    radial-gradient(500px 260px at 90% -20%, rgba(216, 196, 138, 0.24), transparent 62%),
    linear-gradient(120deg, var(--forest) 0%, var(--forest-2) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-band::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(216, 196, 138, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(216, 196, 138, 0.04);
}

.hero-band .eyebrow {
  color: var(--gold);
}

.hero-band h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-band p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 9px 0 0;
  color: rgba(248, 243, 231, 0.62);
  font-size: 13px;
}

.hero-band-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-band .btn-primary {
  color: var(--forest);
  background: var(--gold);
  border-color: var(--gold);
}

.hero-band .btn-primary:hover {
  background: #e7d59c;
  border-color: #e7d59c;
}

.hero-band .btn-ghost {
  color: rgba(248, 243, 231, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-band .btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  position: relative;
  min-height: 146px;
  padding: 20px 21px 17px;
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid rgba(228, 223, 210, 0.9);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.stat-card.highlight {
  color: #f8f3e7;
  background: var(--forest-3);
  border-color: var(--forest-3);
}

.stat-card.highlight .stat-label,
.stat-card.highlight .stat-foot {
  color: rgba(248, 243, 231, 0.6);
}

.stat-card.highlight .stat-icon {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.stat-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 15px;
  color: var(--forest-3);
  background: var(--green-soft);
  border-radius: 9px;
}

.stat-icon svg {
  width: 18px;
  height: 18px;
}

.stat-value {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  margin-top: 9px;
  color: #4c5950;
  font-size: 12px;
  font-weight: 600;
}

.stat-foot {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
}

.panel {
  padding: 22px;
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid rgba(228, 223, 210, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.panel-title .small-count {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  color: var(--forest-3);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  background: var(--green-soft);
  border-radius: 999px;
}

.panel-link {
  padding: 0;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  border: 0;
}

.panel-link:hover {
  text-decoration: underline;
}

.mini-list {
  display: flex;
  flex-direction: column;
}

.mini-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid rgba(228, 223, 210, 0.72);
}

.mini-row:first-child {
  padding-top: 3px;
  border-top: 0;
}

.mini-dot {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  flex: 0 0 auto;
  background: var(--amber);
  border-radius: 50%;
}

.mini-dot.green {
  background: var(--leaf);
}

.mini-content {
  min-width: 0;
  flex: 1;
}

.mini-content strong {
  display: -webkit-box;
  overflow: hidden;
  color: #344239;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
  color: #939a93;
  font-size: 11px;
}

.mini-meta .cat {
  color: var(--leaf);
}

/* ---------- 审核卡片 ---------- */
.review-list,
.report-list,
.content-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card,
.report-card {
  padding: 22px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(228, 223, 210, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.review-card:hover,
.report-card:hover {
  border-color: #d7d0c0;
  box-shadow: 0 12px 30px rgba(23, 61, 47, 0.08);
}

.card-head,
.report-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 12px;
}

.card-head time,
.report-head time {
  margin-left: auto;
  color: #9aa099;
  font-size: 11px;
}

.category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4a574f;
  font-size: 12px;
}

.cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-sep {
  color: #c3beb2;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 999px;
}

.pill.pending {
  color: #7f521b;
  background: var(--amber-soft);
}

.pill.published {
  color: var(--forest-3);
  background: var(--green-soft);
}

.pill.rejected {
  color: #8c3a32;
  background: var(--red-soft);
}

.pill.hidden {
  color: #666d67;
  background: var(--gray-soft);
}

.pill.open {
  color: #7f521b;
  background: var(--amber-soft);
}

.pill.resolved {
  color: var(--forest-3);
  background: var(--green-soft);
}

.pill.dismissed {
  color: #666d67;
  background: var(--gray-soft);
}

.post-content {
  margin: 0;
  color: #29362e;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.image-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.thumb {
  position: relative;
  width: 96px;
  height: 96px;
  padding: 0;
  overflow: hidden;
  background: #ece8dd;
  border: 0;
  border-radius: 11px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.thumb:hover img {
  transform: scale(1.04);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 14px;
  padding-top: 12px;
  color: #8f968f;
  font-size: 11px;
  border-top: 1px dashed rgba(228, 223, 210, 0.9);
}

.meta-row .machine {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-row .report-flag {
  color: var(--red);
  font-weight: 600;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 15px;
}

/* ---------- 举报 ---------- */
.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 22px;
  padding-top: 3px;
}

.target-block + .target-block {
  margin-top: 14px;
}

.block-label {
  margin: 0 0 7px;
  color: #8f968f;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.target-snippet {
  padding: 13px 15px;
  color: #354239;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  background: #faf8f0;
  border: 1px solid #eee9dc;
  border-radius: 11px;
}

.target-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 7px;
  color: #929991;
  font-size: 11px;
}

.report-detail {
  min-height: 76px;
  color: #4b574f;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.report-reporter {
  margin-top: 12px;
  color: #919891;
  font-size: 11px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px dashed rgba(228, 223, 210, 0.9);
}

/* ---------- 内容管理 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
  padding: 7px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid rgba(228, 223, 210, 0.9);
  border-radius: 14px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.filter-chip {
  padding: 7px 13px;
  color: #6f7971;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  border: 0;
  border-radius: 9px;
}

.filter-chip:hover {
  background: rgba(63, 122, 92, 0.07);
}

.filter-chip.active {
  color: var(--forest-3);
  background: var(--green-soft);
}

.filter-hint {
  padding-right: 7px;
  color: #9aa099;
  font-size: 11px;
}

.content-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(228, 223, 210, 0.95);
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
}

.content-thumb {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  overflow: hidden;
  color: var(--forest-3);
  background: var(--green-soft);
  border-radius: 10px;
}

.content-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-thumb svg {
  width: 23px;
  height: 23px;
  opacity: 0.6;
}

.content-body {
  min-width: 0;
}

.content-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 3px;
}

.content-excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: #344239;
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin-top: 4px;
  color: #969d96;
  font-size: 11px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

/* ---------- 设置 ---------- */
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.settings-card {
  padding: 24px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(228, 223, 210, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.settings-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
}

.settings-card > p {
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.settings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(228, 223, 210, 0.75);
}

.char-count {
  color: #9aa099;
  font-size: 11px;
  text-align: right;
}

.switch-list {
  display: flex;
  flex-direction: column;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid rgba(228, 223, 210, 0.72);
}

.switch-row:first-child {
  padding-top: 0;
  border-top: 0;
}

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

.switch-info strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}

.switch-info small {
  display: block;
  margin-top: 2px;
  color: #969d96;
  font-size: 11px;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  background: #d8d4c8;
  border-radius: 999px;
  transition: background 0.18s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}

.switch input:checked + .switch-track {
  background: var(--leaf);
}

.switch input:checked + .switch-track::after {
  transform: translateX(18px);
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid rgba(63, 122, 92, 0.24);
  outline-offset: 2px;
}

.switch input:disabled + .switch-track {
  opacity: 0.55;
}

.settings-note {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  padding: 12px 13px;
  color: #7c847c;
  font-size: 11px;
  line-height: 1.7;
  background: #faf8f0;
  border: 1px solid #eee9dc;
  border-radius: 11px;
}

.settings-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--leaf);
}

/* ---------- 空态 / 加载 ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 40px 24px;
  text-align: center;
  background: rgba(255, 253, 248, 0.58);
  border: 1px dashed #d8d2c3;
  border-radius: var(--radius);
}

.empty-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  color: var(--leaf);
  background: var(--green-soft);
  border-radius: 22px 30px 24px 30px;
  transform: rotate(-4deg);
}

.empty-mark svg {
  width: 30px;
  height: 30px;
  transform: rotate(4deg);
}

.empty-state h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
}

.empty-state p {
  max-width: 360px;
  margin: 6px 0 0;
  color: #8e958e;
  font-size: 12px;
  line-height: 1.7;
}

.loading-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid rgba(228, 223, 210, 0.8);
  border-radius: var(--radius-sm);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.7) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
}

.section-heading p {
  margin: 4px 0 0;
  color: #8e958e;
  font-size: 12px;
}

.section-heading .count-label {
  color: var(--leaf);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Toast / Modal ---------- */
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 30px;
  max-width: min(440px, calc(100vw - 40px));
  padding: 11px 18px;
  color: #f8f3e7;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  background: rgba(23, 61, 47, 0.96);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
  animation: toast-in 0.22s ease both;
}

.toast.error {
  background: #8f3c33;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 6px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.modal-root {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 38, 29, 0.48);
  backdrop-filter: blur(3px);
  animation: fade-in 0.18s ease both;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(84vh, 820px);
  overflow: auto;
  padding: 30px;
  background: var(--paper);
  border: 1px solid rgba(228, 223, 210, 0.9);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(15, 35, 26, 0.28);
  animation: modal-in 0.2s ease both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 17px;
  width: 32px;
  height: 32px;
  color: #778078;
  font-size: 24px;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.modal-close:hover {
  color: var(--ink);
  background: #f3f0e7;
}

.modal-card h3 {
  margin: 0 34px 5px 0;
  font-family: var(--serif);
  font-size: 24px;
}

.modal-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.modal-body-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-section {
  margin-top: 18px;
}

.modal-section h4 {
  margin: 0 0 7px;
  color: #8f968f;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: #8d948d;
  font-size: 11px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.reason-chip {
  padding: 5px 10px;
  color: #5c675f;
  font-size: 11px;
  background: #f7f4eb;
  border: 1px solid #e7e2d5;
  border-radius: 999px;
}

.reason-chip:hover {
  color: var(--forest-3);
  background: var(--green-soft);
  border-color: transparent;
}

.image-viewer {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
}

.image-viewer img {
  max-height: 72vh;
  border-radius: 12px;
}

.modal-image-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-image-strip img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .login-view {
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
  }

  .brand-notes {
    display: none;
  }
}

@media (max-width: 860px) {
  .login-view {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: auto;
    padding: 30px 26px 34px;
  }

  .login-brand-copy {
    padding: 44px 0 18px;
  }

  .login-brand-copy h1 {
    font-size: clamp(32px, 8vw, 44px);
  }

  .brand-principles {
    display: none;
  }

  .login-panel {
    padding: 30px 20px 46px;
  }

  .sidebar {
    position: static;
    width: auto;
    padding: 18px 18px 0;
    border-radius: 0 0 22px 22px;
  }

  .sidebar-brand {
    padding: 0 4px 16px;
  }

  .nav {
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 14px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    width: auto;
    flex: 0 0 auto;
    padding: 8px 11px;
  }

  .nav-item svg {
    width: 16px;
    height: 16px;
  }

  .nav-badge {
    min-width: 18px;
    height: 18px;
  }

  .sidebar-foot {
    display: none;
  }

  .main {
    margin-left: 0;
    padding: 24px 20px 54px;
  }

  .topbar {
    margin-bottom: 20px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14px;
  }

  .login-card {
    padding: 28px 22px;
  }

  .hero-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .hero-band-actions {
    width: 100%;
  }

  .hero-band-actions .btn {
    flex: 1;
  }

  .stat-grid {
    gap: 10px;
  }

  .stat-card {
    min-height: 128px;
    padding: 16px;
  }

  .stat-value {
    font-size: 29px;
  }

  .review-card,
  .report-card {
    padding: 17px;
  }

  .card-head time,
  .report-head time {
    width: 100%;
    margin-left: 0;
  }

  .report-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .content-row {
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
  }

  .content-thumb {
    width: 46px;
    height: 46px;
  }

  .row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 3px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-hint {
    padding: 0 0 4px 8px;
  }

  .card-actions,
  .report-actions {
    justify-content: stretch;
  }

  .card-actions .btn,
  .report-actions .btn {
    flex: 1;
  }

  .modal-root {
    padding: 12px;
  }

  .modal-card {
    padding: 24px 20px;
    max-height: 90vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}