:root {
  --green: #14915a;
  --green-dark: #0e533e;
  --ink: #143028;
  --muted: #5d7468;
  --line: #e4efe8;
  --bg: #f3f7f4;
  --side: #0f3d2e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

button, input { font: inherit; }

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(20, 145, 90, 0.18), transparent 32%),
    linear-gradient(180deg, #e7f8ee, #f7fbf8 48%, #eef4f8);
}

.login-card {
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  box-shadow: 0 16px 40px rgba(15, 61, 46, 0.1);
}

.mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
}

.login-card h1 { margin: 16px 0 0; color: var(--green-dark); font-size: 30px; }
.login-card p { margin: 8px 0 18px; color: var(--muted); }
.login-card label { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; }
.login-card input, .toolbar input {
  width: 100%;
  height: 42px;
  margin-top: 6px;
  border: 1px solid #d7e6dc;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
}
.login-card button, .toolbar button, .pager button {
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
}
.login-card button { width: 100%; margin-top: 18px; font-size: 16px; }
.login-card button:disabled, .toolbar button:disabled, .pager button:disabled { opacity: 0.45; cursor: default; }
.error { min-height: 22px; margin-top: 10px; color: #c2410c; font-size: 14px; }

.shell { display: flex; min-height: 100vh; }
.side {
  width: 228px;
  flex: none;
  background: var(--side);
  color: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 14px;
  overflow: auto;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 4px 10px 22px; }
.brand strong, .brand span { display: block; white-space: nowrap; }
.brand strong { font-size: 16px; }
.brand span { margin-top: 2px; color: rgba(255, 255, 255, 0.62); font-size: 12px; }
.side a {
  display: block;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.side a.on, .side a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.main { flex: 1; min-width: 0; }
.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar b { font-size: 18px; }
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.ghost {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #b7d8c4;
  background: #fff;
  color: var(--green-dark);
  cursor: pointer;
}
.content { padding: 24px 28px 40px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.group { margin: 28px 0 8px; font-size: 16px; color: var(--muted); }
.jump { color: var(--green-dark); font-weight: 700; text-decoration: none; }
.card h2 { margin: 16px 0 4px; font-size: 16px; }
.card + .card { margin-top: 16px; }
.plain { margin: 8px 0 0; padding-left: 18px; color: var(--ink); }
.back { display: inline-flex; align-items: center; text-decoration: none; }
.stat {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(20, 80, 50, 0.06);
}
.stat em { display: block; font-style: normal; color: var(--muted); }
.stat strong { display: block; margin-top: 10px; font-size: 36px; color: var(--green-dark); }
.stat small { color: var(--green); }

.toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.toolbar h1 { margin: 0; font-size: 22px; }
.toolbar form { display: flex; gap: 8px; width: min(420px, 100%); }
.toolbar input { margin-top: 0; }
.toolbar button { padding: 0 18px; flex: none; }

.card {
  background: #fff;
  border-radius: 16px;
  padding: 8px 18px 16px;
  box-shadow: 0 8px 24px rgba(20, 80, 50, 0.06);
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
th { color: var(--muted); font-weight: 600; }
.id { color: var(--muted); font-family: Consolas, monospace; font-size: 12px; }
.empty, .loading { padding: 28px 8px; color: var(--muted); }
.hidden { display: none; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 14px; }
.pager button { padding: 0 14px; }
.pager span { color: var(--muted); font-size: 14px; }
.form label { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; }
.form input, .form textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #d7e6dc;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.form input { height: 42px; padding: 0 12px; }
.form textarea { min-height: 96px; resize: vertical; }
.faq-edit { border-top: 1px solid var(--line); padding-top: 8px; }
.faq-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
.faq-tools span { display: flex; gap: 8px; }
.faq-tools .ghost { height: 32px; }
.feedback-text { white-space: pre-wrap; max-width: 420px; line-height: 1.6; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; margin-right: 6px; vertical-align: middle; }
.form .actions { display: flex; gap: 8px; margin-top: 18px; }
.form .actions button {
  padding: 0 18px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.form .actions .ghost { background: #fff; color: var(--green-dark); border: 1px solid #b7d8c4; }
.note { margin: 0; color: var(--muted); line-height: 1.7; }
.status-ok, .status-wait { font-weight: 700; }
.status-ok { color: var(--green-dark); }
.status-wait { color: #b45309; }

@media (max-width: 900px) {
  .shell { display: block; }
  .side { position: static; width: auto; height: auto; }
  .cards { grid-template-columns: 1fr; }
  .toolbar { display: block; }
  .toolbar form { width: 100%; margin-top: 12px; }
  .content { padding: 16px; }
  table { display: block; overflow-x: auto; }
}
