:root { --bg:#f6f7fb; --card:#fff; --text:#111827; --muted:#667085; --line:#e5e7eb; --brand:#1d4ed8; --ok:#027a48; --warn:#b54708; --bad:#b42318; }
* { box-sizing:border-box; }
body { margin:0; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans TC', sans-serif; background:var(--bg); color:var(--text); }
a { color:var(--brand); text-decoration:none; }
.container { max-width:1120px; margin:0 auto; padding:32px 20px; }
.hero { background:linear-gradient(135deg, #111827, #1d4ed8); color:white; border-radius:28px; padding:34px; box-shadow:0 18px 40px rgba(15,23,42,.18); }
.hero p { color:#dbeafe; }
.card { background:var(--card); border:1px solid var(--line); border-radius:22px; padding:24px; box-shadow:0 12px 28px rgba(15,23,42,.06); margin:18px 0; }
.grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
textarea, input, select { width:100%; border:1px solid #d1d5db; border-radius:14px; padding:14px; font-size:16px; background:white; }
textarea { min-height:150px; resize:vertical; }
button { border:0; border-radius:14px; padding:12px 18px; background:#111827; color:white; font-weight:700; cursor:pointer; }
button:disabled { opacity:.5; cursor:not-allowed; }
button.secondary { background:#e5e7eb; color:#111827; }
button.blue { background:var(--brand); }
.badge { display:inline-block; padding:4px 10px; border-radius:999px; background:#eef2ff; color:#3730a3; font-size:13px; margin:3px; }
.badge.ok { background:#ecfdf3; color:var(--ok); }
.badge.warn { background:#fffaeb; color:var(--warn); }
.badge.bad { background:#fef3f2; color:var(--bad); }
pre { white-space:pre-wrap; background:#0f172a; color:#e5e7eb; border-radius:14px; padding:16px; overflow:auto; line-height:1.45; }
.answer { white-space:pre-wrap; line-height:1.75; }
.muted { color:var(--muted); }
.nav { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.nav a { margin-left:12px; }
.result-item { border-top:1px solid var(--line); padding-top:14px; margin-top:14px; }
@media (max-width: 840px) { .grid { grid-template-columns:1fr; } .hero { padding:24px; } }
