/* style.css —— 展示页样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(160deg, #f3ede4, #e7dfd3);
  color: #3b3b46;
  padding: 24px;
}

.card {
  width: min(480px, 100%);
  background: #fffdf9;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(59, 59, 70, 0.12);
  padding: 32px 28px;
  text-align: center;
}

h1 { font-size: 1.5rem; margin-bottom: 6px; }
.sub { font-size: 0.85rem; color: #8a8a94; margin-bottom: 20px; }

.input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.input-row label { position: absolute; left: -9999px; } /* 视觉隐藏，保留可访问性 */
.input-row input {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  padding: 10px 14px;
  border: 2px solid #e0d8ca;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s;
}
.input-row input:focus { border-color: #d9a45e; }

button {
  font-size: 0.95rem;
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background: #e8d5b5;
  color: #3b3b46;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
button:hover { background: #dfc79e; }
button:active { transform: scale(0.97); }
#btn-random { white-space: nowrap; }

.avatar-box {
  width: min(360px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 20px;
  border-radius: 20px;
  overflow: hidden;
  background: #f0eae0;
  box-shadow: inset 0 0 0 2px #e5dccb;
}
.avatar-box svg { display: block; width: 100%; height: 100%; }

.btn-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; }
.btn-row button { background: #d9a45e; color: #fff; }
.btn-row button:hover { background: #c98f47; }

.status { min-height: 1.4em; font-size: 0.9rem; color: #5ca86a; margin-bottom: 4px; }
.status.err { color: #d9534f; }
.hint { font-size: 0.75rem; color: #b0a894; }
.hint code { background: #f0eae0; padding: 1px 6px; border-radius: 6px; }
