:root {
  --ink: #1d252c;
  --muted: #65717c;
  --line: #dfe5ea;
  --paper: #ffffff;
  --soft: #f4f7f9;
  --accent: #0f8f6f;
  --accent-dark: #087058;
  --danger: #bd2e2e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(145deg, #f7faf9 0%, #eef4f7 45%, #f8f9f6 100%);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

.ghost {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.ghost:hover {
  background: var(--soft);
}

.danger {
  background: var(--danger);
}

.page {
  width: min(92vw, 460px);
  margin: 0 auto;
  padding: 48px 0;
}

.profile,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 80px rgba(25, 48, 59, 0.11);
}

.profile {
  padding: 34px 26px 30px;
  text-align: center;
}

.brand {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: 30px;
}

h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

.headline,
.description,
.hint {
  color: var(--muted);
  line-height: 1.7;
}

.qr-shell {
  position: relative;
  width: min(78vw, 310px);
  aspect-ratio: 1;
  margin: 26px auto 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.qr {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  background: white;
}

.empty-qr {
  color: var(--muted);
}

.wechat {
  margin-bottom: 10px;
  font-weight: 700;
}

.list {
  padding: 20px 0;
}

.list a,
.item {
  display: block;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: white;
  color: var(--ink);
  text-decoration: none;
}

.admin-layout {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 34px 0;
}

.admin-top,
.row,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel {
  padding: 22px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 18px;
  align-items: start;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

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

.checkline input {
  width: auto;
}

.preview {
  width: 170px;
  aspect-ratio: 1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: var(--soft);
}

.preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}

.item {
  cursor: pointer;
}

.item strong {
  display: block;
  margin-bottom: 6px;
}

.item small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 780px) {
  .workspace,
  .admin-top {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-top {
    justify-items: start;
  }
}

