:root {
  --bg: #f5f2eb;
  --ink: #1f1a16;
  --muted: #6b5f56;
  --accent: #d46a4a;
  --card: #fff8ef;
  --line: #e2d6c8;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff3e6 0%, #f5f2eb 55%);
  color: var(--ink);
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  min-height: 100vh;
}

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 18px 40px;
}

.header {
  margin-bottom: 20px;
}

.back {
  display: inline-block;
  color: #fffaf3;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 12px;
  padding: 6px 12px 6px 30px;
  border-radius: 999px;
  background: linear-gradient(120deg, #d46a4a, #9b3f2c);
  box-shadow: 0 8px 16px rgba(212, 106, 74, 0.22);
  position: relative;
}

.back::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-left: 2px solid #fffaf3;
  border-bottom: 2px solid #fffaf3;
  transform: translateY(-50%) rotate(45deg);
}

.header h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(75, 54, 40, 0.08);
  display: grid;
  gap: 14px;
}


.field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 214, 200, 0.9);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
}

.type-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.type-option {
  position: relative;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(226, 214, 200, 0.9);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 180ms ease;
}

.type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-option:has(input:checked) {
  border-color: rgba(212, 106, 74, 0.6);
  color: var(--accent);
  background: rgba(212, 106, 74, 0.08);
}

.submit {
  border: 0;
  padding: 12px;
  border-radius: 999px;
  font-size: 14px;
  background: linear-gradient(120deg, #d46a4a, #9b3f2c);
  color: #fffaf3;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(212, 106, 74, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.submit:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 12px rgba(212, 106, 74, 0.22);
  filter: brightness(0.98);
}

.submit:focus-visible {
  outline: 2px solid rgba(212, 106, 74, 0.5);
  outline-offset: 3px;
}

.tip {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.hint {
  font-size: 12px;
  color: var(--muted);
}
