:root {
  --bg: #f4efe7;
  --panel: rgba(255, 255, 255, 0.9);
  --line: rgba(39, 34, 28, 0.12);
  --text: #241c15;
  --muted: #7d6c5d;
  --brand: #b4572f;
  --brand-dark: #8f3f1c;
  --accent: #efe0d2;
  --success: #18794e;
  --danger: #c0392b;
  --shadow: 0 20px 50px rgba(36, 28, 21, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(180, 87, 47, 0.15), transparent 30%),
    radial-gradient(circle at bottom right, rgba(36, 28, 21, 0.08), transparent 28%),
    linear-gradient(160deg, #f8f2ea, #f1e8dd 55%, #eee5da);
}

.shell {
  width: min(1040px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.headline {
  margin-bottom: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.headline h1 {
  margin: 14px 0 10px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
}

.headline p {
  margin: 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), #e8b690);
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.panel p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.stack {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(180, 87, 47, 0.55);
  box-shadow: 0 0 0 4px rgba(180, 87, 47, 0.12);
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.hint {
  margin-top: -2px;
  font-size: 13px;
  color: var(--muted);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #d18055);
}

.btn-secondary {
  color: var(--text);
  background: #f0e6dc;
}

.btn-ghost {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(180, 87, 47, 0.18);
}

.card-list {
  display: grid;
  gap: 14px;
}

.mini-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(39, 34, 28, 0.08);
  background: rgba(255, 255, 255, 0.66);
}

.mini-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.mini-card span,
.mini-card code {
  color: var(--muted);
  word-break: break-all;
}

.status {
  min-height: 48px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(39, 34, 28, 0.12);
  line-height: 1.7;
}

.status-success {
  color: var(--success);
  background: rgba(24, 121, 78, 0.08);
  border-style: solid;
}

.status-error {
  color: var(--danger);
  background: rgba(192, 57, 43, 0.08);
  border-style: solid;
}

.kv {
  display: grid;
  gap: 10px;
}

.kv-item {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(39, 34, 28, 0.08);
}

.kv-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.kv-item small {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.kv-item code {
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.tag-on {
  color: var(--success);
  background: rgba(24, 121, 78, 0.1);
}

.tag-off {
  color: var(--danger);
  background: rgba(192, 57, 43, 0.1);
}

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

  .panel {
    padding: 24px 20px;
  }
}
