:root {
  color-scheme: light;
  --ink: #171512;
  --muted: #716d66;
  --paper: #f5f1e8;
  --card: #fffdf8;
  --line: #ddd5c7;
  --accent: #a83d31;
  --accent-dark: #7e2b23;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, #fff7e8 0, transparent 32rem),
    var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 70px; }
header, .section-title, .inline-form { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
header { margin-bottom: 28px; }
h1 { margin: 4px 0 8px; font-size: clamp(32px, 6vw, 60px); letter-spacing: -.06em; }
h2 { margin: 0 0 14px; }
p { color: var(--muted); }
.eyebrow { margin: 0; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .24em; }
.status, .panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: 0 18px 60px rgba(61, 45, 31, .08);
}
.status { padding: 12px 16px; white-space: nowrap; }
.panel { padding: 22px; margin-bottom: 22px; }
.drop-zone {
  min-height: 250px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  background: #faf7f0;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.drop-zone.is-dragging {
  border-color: var(--accent);
  background: #fff4e8;
  transform: translateY(-1px);
}
.drop-zone input { display: none; }
.drop-zone img { display: none; width: 100%; max-height: 420px; object-fit: contain; }
button {
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  margin-top: 14px;
  color: white;
  background: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: var(--accent-dark); }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { background: #393631; }
.inline-form { justify-content: flex-start; flex-wrap: wrap; }
.inline-form button { margin: 0; }
.inline-form input[type="password"] {
  min-width: 250px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}
.message { min-height: 22px; margin-bottom: 0; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.result {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.result img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.result div { padding: 12px; }
.result strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result span { color: var(--muted); font-size: 13px; }
@media (max-width: 700px) {
  header, .section-title { align-items: flex-start; flex-direction: column; }
  .status { white-space: normal; }
}
