:root {
  --bg: #07111f;
  --card: rgba(18, 32, 54, 0.88);
  --line: #2c4566;
  --text: #eef4ff;
  --muted: #93a8c4;
  --accent: #4ea1ff;
  --ok: #35c47a;
  --danger: #ef6b6b;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 8% -8%, #16345c 0%, transparent 55%),
    radial-gradient(700px 380px at 100% 0%, #12304f 0%, transparent 50%),
    var(--bg);
}
a { color: var(--accent); text-decoration: none; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 8%;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.72);
  position: sticky; top: 0; z-index: 5;
}
.brand { font-weight: 700; letter-spacing: 0.04em; }
.nav a { margin-left: 16px; color: var(--muted); }
.nav a.active, .nav a:hover { color: var(--text); }
.wrap { max-width: 920px; margin: 0 auto; padding: 36px 20px 72px; }
.hero h1 { font-size: 40px; margin: 0 0 10px; }
.hero p, .hint { color: var(--muted); line-height: 1.7; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; margin-top: 28px; }
@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } .hero h1 { font-size: 28px; } }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
input, textarea {
  width: 100%; background: #0c1626; border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 11px 12px; font-size: 14px;
}
textarea { min-height: 70px; resize: vertical; }
.pad-wrap { border: 1px dashed #5678a3; border-radius: 12px; background: #fff; overflow: hidden; }
canvas { display: block; width: 100%; height: 230px; touch-action: none; cursor: crosshair; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
button, .btn {
  display: inline-block; border: 1px solid var(--line); background: #132033;
  color: var(--text); border-radius: 10px; padding: 10px 16px; cursor: pointer; font-size: 14px;
}
.primary { background: var(--accent); border-color: var(--accent); color: #041018; font-weight: 650; }
.danger { color: var(--danger); border-color: #5a2a2a; background: transparent; }
table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 16px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: middle; }
th { color: var(--muted); }
.sig { height: 54px; background: #fff; border-radius: 6px; }
.empty { color: var(--muted); padding: 28px 0; text-align: center; }
.toast {
  position: fixed; right: 16px; bottom: 16px; background: #17321f;
  color: #b8f0c8; padding: 10px 14px; border-radius: 8px; display: none;
}
.stat { font-size: 28px; font-weight: 700; }
footer { color: var(--muted); text-align: center; padding: 8px 0 28px; font-size: 12px; }
