/* 盾卫一言演示样式 — 全部外置，配合 CSP style-src 'self'（不给 unsafe-inline）。 */
:root {
  color-scheme: dark;
  --bg: #0b0e13;
  --card: #141923;
  --line: #232b3a;
  --text: #e6e9ef;
  --muted: #8a94a6;
  --accent: #4f8cff;
  --accent-2: #34d399;
  --err: #f87171;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(1200px 600px at 50% -10%, #16202f 0%, var(--bg) 60%);
  color: var(--text);
  font: 15px/1.6 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.card {
  width: 100%;
  max-width: 620px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

header h1 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: .5px;
}

.sub {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.stage {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.stage-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.stage-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

code {
  background: #0d1219;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 12px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #1b2230;
  color: var(--text);
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, opacity .15s ease;
}

.btn:hover:not(:disabled) { background: #222a3a; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: #3f7bf0; }

.state {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  min-height: 1.4em;
}
.state.ok { color: var(--accent-2); }
.state.err { color: var(--err); }

.quote {
  margin: 16px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: #0f141d;
  border-radius: 0 10px 10px 0;
  font-size: 17px;
  line-height: 1.7;
}

.meta {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.whoami { font-family: ui-monospace, monospace; }
.sdk { opacity: .7; }

.hidden { display: none; }
