:root {
  color-scheme: light;
  --bg: #f3efe6;
  --card: #fffaf0;
  --line: #d7c8a9;
  --ink: #1c1a17;
  --muted: #6e6656;
  --accent: #b55622;
  --accent-2: #224e5a;
  --danger: #b42318;
  --shadow: 0 18px 40px rgba(40, 24, 8, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Serif SC", Georgia, serif;
  background:
    radial-gradient(circle at top left, rgba(181, 86, 34, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(34, 78, 90, 0.12), transparent 24%),
    linear-gradient(180deg, #f6f1e8, var(--bg));
  color: var(--ink);
}

.shell {
  width: min(1400px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.hero,
.panel {
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid rgba(215, 200, 169, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 24px;
  padding: 28px;
  border-radius: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 12px;
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: clamp(30px, 4vw, 48px);
}

h2 {
  font-size: 22px;
}

.subtle {
  color: var(--muted);
  max-width: 62ch;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.api-box,
.form-grid {
  display: grid;
  gap: 12px;
}

.panel {
  padding: 20px;
  border-radius: 20px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

button {
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #d27633);
  color: white;
  transition: transform 140ms ease;
}

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

.status {
  min-height: 20px;
  color: var(--accent-2);
}

.status.error {
  color: var(--danger);
}

.table-wrap {
  overflow: auto;
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.table-wrap.tall {
  max-height: 520px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead {
  position: sticky;
  top: 0;
  background: #f5e5d3;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(215, 200, 169, 0.8);
  text-align: left;
  white-space: nowrap;
}

tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.55);
}

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