* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f6f5f1; color: #222; line-height: 1.6;
}
header { background: #1f2a44; color: #fff; padding: 28px 20px 20px; }
header h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: 2px; }
header .subtitle { margin: 0; color: #c8d2e4; font-size: 14px; }
header nav { margin-top: 10px; }
header nav a { color: #9db8e8; font-size: 14px; }
main { max-width: 760px; margin: 0 auto; padding: 20px 16px 60px; }
.card {
  background: #fff; border: 1px solid #e4e1d8; border-radius: 10px;
  padding: 20px; margin-bottom: 18px;
}
.card h2 { margin: 0 0 12px; font-size: 18px; }
label { display: block; margin: 12px 0 4px; font-size: 14px; color: #444; }
input[type="text"], input[type="password"], textarea, select {
  width: 100%; padding: 9px 10px; border: 1px solid #cfccc2; border-radius: 6px;
  font-size: 15px; font-family: inherit; margin-top: 4px;
}
textarea { resize: vertical; }
button {
  background: #1f2a44; color: #fff; border: 0; border-radius: 6px;
  padding: 10px 22px; font-size: 15px; cursor: pointer; margin-top: 8px;
}
button:disabled { background: #b9bcc4; cursor: not-allowed; }
button:hover:not(:disabled) { background: #2c3c60; }
.hint { font-size: 13px; color: #888; }
.status { font-size: 14px; color: #666; margin-left: 8px; }
.notice {
  max-width: 760px; margin: 16px auto 0; padding: 12px 16px;
  background: #fff7e0; border: 1px solid #ecd27a; border-radius: 8px;
}
.error {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  background: #b3261e; color: #fff; padding: 12px 18px; border-radius: 8px;
  max-width: 90vw; font-size: 14px;
}
.ok { color: #2e7d32; }
.preview img, .result img { max-width: 100%; border-radius: 8px; margin-top: 12px; }
.result { margin-top: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
table th, table td {
  text-align: left; vertical-align: top; padding: 6px 8px;
  border-bottom: 1px solid #eee;
}
table th { width: 110px; color: #666; font-weight: normal; white-space: nowrap; }
.kv { margin: 6px 0; font-size: 14px; }
.kv b { color: #555; font-weight: 600; }
