:root {
  --deep: #1f5f52;
  --green: #4a8f79;
  --pale: #e7f1ec;
  --gold: #c08a2e;
  --cream: #fbf8f2;
  --ink: #22312c;
  --ink-2: #5b6b66;
  --line: #e2e8e5;
  --card: #ffffff;
  --danger: #b4553c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(74, 143, 121, 0.18), transparent 36%),
    var(--cream);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: var(--deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0 8px;
}
.brand { display: flex; gap: 12px; align-items: center; }
.sprout {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--deep);
  color: #f4efe4;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.brand h1, .panel h2, .card h3 { margin: 0; font-weight: 650; }
.brand p, .muted { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.top nav, .admin-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-nav a { padding: 6px 10px; border-radius: 999px; color: var(--deep); }
.admin-nav a.active { background: var(--deep); color: #fff; text-decoration: none; }

.panel, .card, .login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(31, 95, 82, 0.08);
}
.panel { padding: 20px; margin: 16px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.card header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.dot { width: 12px; height: 12px; border-radius: 99px; margin-top: 6px; flex: none; }
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pale);
  color: var(--deep);
  font-size: 12px;
}
.tag.gold { background: #f8efdc; color: #8a6118; }

label { display: block; margin: 12px 0 6px; font-size: 14px; color: var(--ink-2); }
input[type="text"], input[type="password"], input[type="number"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 18px; }

button, .button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  background: var(--deep);
  color: white;
  font: inherit;
  cursor: pointer;
}
button.light, .button.light { background: var(--pale); color: var(--deep); }
button.tiny { padding: 6px 10px; border-radius: 10px; }
.actions { display: flex; gap: 10px; margin-top: 16px; }

.ok, .error {
  padding: 10px 12px;
  border-radius: 12px;
  margin: 12px 0 0;
}
.ok { background: var(--pale); color: var(--deep); }
.error { background: #f8ebe7; color: var(--danger); }

.hotline { display: grid; grid-template-columns: 1.4fr 0.6fr 1.4fr auto; gap: 8px; align-items: center; margin-top: 10px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); padding: 28px; }
.endpoint { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.endpoint code { color: var(--deep); }
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #10201c;
  color: #e8efec;
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.example-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.copy-row { display: flex; gap: 8px; margin: 8px 0 16px; }

@media (max-width: 720px) {
  .row, .hotline { grid-template-columns: 1fr; }
  .top { align-items: flex-start; flex-direction: column; }
}
