:root {
  --bg: #f5efe4;
  --card: #fffdf8;
  --ink: #2b2620;
  --muted: #6f665a;
  --line: #e2d8c6;
  --accent: #8a5a2b;
  --accent-ink: #ffffff;
  --soft: #efe5d3;
  --ok: #3f6b3a;
  --warn: #9a3b2e;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.7; }
header { border-bottom: 1px solid var(--line); background: var(--card); }
.bar { max-width: 760px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: .5px; color: inherit; text-decoration: none; }
.brand span { color: var(--accent); }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 14px; }
nav a:hover { color: var(--accent); }
main { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
h1 { font-size: 30px; line-height: 1.35; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
a.tile { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; text-decoration: none; color: inherit; }
a.tile:hover { border-color: var(--accent); }
a.tile strong { display: block; font-size: 18px; margin-bottom: 4px; }
a.tile span { color: var(--muted); font-size: 14px; }
label.step { display: block; font-weight: 600; margin-bottom: 10px; }
textarea { width: 100%; min-height: 120px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); background: #fff; resize: vertical; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
select, input[type=text], input[type=file] { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
button { font: inherit; cursor: pointer; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); padding: 8px 14px; }
button:hover { border-color: var(--accent); }
button.primary { width: 100%; margin-top: 16px; padding: 13px; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; font-size: 16px; }
button.primary:disabled { opacity: .6; cursor: wait; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.out h2, .out h3 { margin: 18px 0 6px; line-height: 1.4; }
.out h1 { font-size: 22px; margin: 4px 0 10px; }
.out h2 { font-size: 18px; }
.out ul, .out ol { padding-left: 22px; margin: 6px 0; }
.out p { margin: 6px 0; }
.pre { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; } }
.pair img { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.pair p { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.status { font-size: 14px; color: var(--muted); }
.status.err { color: var(--warn); }
.status.ok { color: var(--ok); }
.hidden { display: none; }
.small { padding: 4px 10px; font-size: 13px; }
footer { max-width: 760px; margin: 0 auto; padding: 0 20px 40px; color: var(--muted); font-size: 13px; }
