* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; background: #f1f5f9; color: #0f172a; }
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-card { background: #fff; padding: 32px; border-radius: 12px; width: min(400px, 92vw); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card .sub { color: #64748b; font-size: 13px; margin-bottom: 20px; }
.auth-card label { display: block; margin-bottom: 14px; font-size: 14px; }
.auth-card input { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; }
.auth-card button { width: 100%; padding: 12px; border: none; border-radius: 8px; background: #2563eb; color: #fff; font-weight: 600; cursor: pointer; }
.err { color: #b91c1c; font-size: 13px; margin-top: 10px; min-height: 18px; }

.top {
  background: #fff; border-bottom: 1px solid #e2e8f0; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.top nav { display: flex; gap: 16px; font-size: 14px; }
.top nav a { color: #64748b; text-decoration: none; }
.top nav a.on { color: #2563eb; font-weight: 600; }

.page { padding: 16px; max-width: 1200px; margin: 0 auto; }
.toolbar { display: flex; gap: 8px; margin-bottom: 16px; }
.toolbar input { flex: 1; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; min-width: 0; }
.toolbar button, .btn-primary, .btn-ok, .btn-warn {
  padding: 10px 16px; border-radius: 8px; border: none; font-size: 14px; cursor: pointer; font-weight: 600;
}
.toolbar button, .btn-primary { background: #2563eb; color: #fff; }
.btn-ok { background: #16a34a; color: #fff; }
.btn-warn { background: #fff; border: 1px solid #fca5a5; color: #b91c1c; }

.table-wrap { background: #fff; border-radius: 12px; overflow: auto; border: 1px solid #e2e8f0; }
.user-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.user-table th, .user-table td { padding: 12px 10px; border-bottom: 1px solid #f1f5f9; text-align: left; }
.user-table th { background: #f8fafc; font-size: 12px; color: #64748b; }
.user-table select { padding: 6px 8px; border-radius: 6px; border: 1px solid #e2e8f0; }
.ok { color: #16a34a; } .bad { color: #b91c1c; }
.empty { text-align: center; color: #94a3b8; padding: 24px; }

.cards { display: none; gap: 12px; flex-direction: column; }
.user-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px;
}
.card-head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.card-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f8fafc; font-size: 14px; }
.card-row span:first-child { color: #64748b; }
.card-actions { margin-top: 12px; display: flex; gap: 8px; }
.card-actions button { flex: 1; }

@media (max-width: 768px) {
  .table-wrap { display: none; }
  .cards { display: flex; }
  .toolbar { flex-direction: column; }
}

.faq-page { max-width: none; }
.faq-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; min-height: calc(100vh - 64px); }
.faq-list { background: #fff; border-radius: 12px; padding: 12px; border: 1px solid #e2e8f0; }
.faq-list ul { list-style: none; margin-top: 12px; max-height: 70vh; overflow: auto; }
.faq-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; margin-bottom: 4px; }
.faq-list li.on { background: #eff6ff; color: #2563eb; }
.faq-list li em { color: #94a3b8; font-style: normal; font-size: 12px; }
.faq-editor { background: #fff; border-radius: 12px; padding: 16px; border: 1px solid #e2e8f0; }
.faq-editor label { display: block; margin-bottom: 12px; font-size: 14px; }
.faq-editor input, .faq-editor select { margin-left: 8px; padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 6px; }
#editor { min-height: 280px; margin-bottom: 12px; }
.faq-actions { display: flex; gap: 8px; }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
}
