* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; color: #222; background: #f6f7f9; line-height: 1.6; }
header { background: #fff; border-bottom: 1px solid #e5e7eb; }
header .wrap { max-width: 860px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
header a.logo { font-size: 20px; font-weight: 700; color: #111; text-decoration: none; }
header nav a { color: #666; text-decoration: none; font-size: 14px; margin-left: 16px; }
header nav a:hover { color: #2563eb; }
main { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 26px; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 24px 0 8px; }
.desc { color: #666; margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; text-decoration: none; color: #222; }
.card:hover { border-color: #2563eb; }
.card h3 { margin: 0 0 6px; font-size: 16px; color: #111; }
.card p { margin: 0; font-size: 13px; color: #666; }
textarea, input[type=text], input[type=number], input[type=datetime-local], select { width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; }
textarea { min-height: 160px; resize: vertical; }
label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
button, .btn { padding: 10px 18px; border: none; border-radius: 8px; background: #2563eb; color: #fff; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { background: #1d4ed8; }
button.secondary { background: #e5e7eb; color: #222; }
button.secondary:hover { background: #d1d5db; }
pre.out { background: #111827; color: #e5e7eb; padding: 14px; border-radius: 8px; overflow: auto; white-space: pre-wrap; word-break: break-all; font-size: 14px; min-height: 60px; }
.result { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px; margin-top: 12px; word-break: break-all; }
.result b { display: block; font-size: 13px; color: #666; margin-bottom: 2px; }
.note { font-size: 13px; color: #888; }
.checks label { display: inline-block; font-weight: 400; margin: 0 14px 0 0; }
input[type=checkbox], input[type=radio] { width: auto; }
input[type=range] { width: 100%; }
footer { text-align: center; color: #999; font-size: 13px; padding: 24px 16px; }
footer a { color: #999; }
#qrbox { margin-top: 16px; text-align: center; }
#qrbox img, #qrbox canvas { max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
td, th { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; font-size: 14px; }
th { background: #f3f4f6; }
@media (max-width: 600px) { h1 { font-size: 22px; } .btnrow button { flex: 1; } }
