* { box-sizing: border-box; }
body {
  margin: 0; padding: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f0f2f5; color: #1f2937; line-height: 1.6;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.site-header { text-align: center; padding: 24px 0 12px; }
.site-header h1 { margin: 0 0 14px; font-size: 22px; color: #2563eb; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.site-header nav a {
  text-decoration: none; color: #374151; background: #fff;
  padding: 6px 14px; border-radius: 999px; font-size: 14px;
  border: 1px solid #e5e7eb; transition: .2s;
}
.site-header nav a:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.card {
  background: #fff; border-radius: 12px; padding: 20px;
  margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.card h2 { margin: 0 0 14px; font-size: 18px; }
label { display: block; margin: 10px 0 4px; font-size: 14px; color: #4b5563; }
input[type=text], input[type=password], input[type=number] {
  width: 100%; padding: 10px 12px; border: 1px solid #d1d5db;
  border-radius: 8px; font-size: 15px; outline: none; transition: .2s;
}
input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
button {
  margin-top: 16px; width: 100%; padding: 12px;
  background: #2563eb; color: #fff; border: 0; border-radius: 8px;
  font-size: 16px; cursor: pointer; transition: .2s;
}
button:hover { background: #1d4ed8; }
.result { margin-top: 16px; padding: 12px 14px; border-radius: 8px; font-size: 15px; word-break: break-all; }
.result.ok  { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.result.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.notice { white-space: pre-wrap; background: #f9fafb; padding: 12px; border-radius: 8px; margin: 0; font-size: 14px; }
table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
th, td { padding: 10px; border-bottom: 1px solid #e5e7eb; text-align: left; }
th { background: #f9fafb; font-weight: 600; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tabs a { padding: 6px 16px; border-radius: 999px; text-decoration: none; background: #f3f4f6; color: #374151; font-size: 14px; }
.tabs a.active { background: #2563eb; color: #fff; }
.hint { font-size: 13px; color: #6b7280; background: #fffbeb; padding: 10px 12px; border-radius: 8px; border: 1px solid #fde68a; }
.site-footer { text-align: center; color: #9ca3af; font-size: 13px; padding: 20px 0 40px; }
.debug { text-align: left; margin-bottom: 10px; }
.debug pre { background: #1f2937; color: #d1fae5; padding: 10px; border-radius: 8px; overflow: auto; font-size: 12px; }
