:root {
  --demo-ink: #111111;
  --demo-bg: #f4f1ea;
  --demo-card: #fffdf8;
  --demo-accent: #0b5cab;
  --demo-accent-2: #b42318;
  --demo-line: #1a1a1a;
  --demo-soft: #e7eef6;
  --demo-ok: #0f7b4a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--demo-ink);
  background: var(--demo-bg);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

.demo-shell {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 48px;
}

.demo-lang {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin: 8px 0 16px;
}

.demo-lang a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--demo-line);
  border-radius: 10px;
  color: var(--demo-ink);
  text-decoration: none;
  font-weight: 800;
  background: #fff;
  padding: 0 12px;
}

.demo-hero, .demo-card, .demo-step {
  background: var(--demo-card);
  border: 3px solid var(--demo-line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 6px 6px 0 #111;
}

.demo-kicker {
  display: inline-block;
  background: #111;
  color: #fff;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

h1, h2 { line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 5vw, 44px); }
.demo-sub { font-size: clamp(18px, 2.4vw, 22px); margin: 0 0 24px; font-weight: 700; }

.demo-actions {
  display: grid;
  gap: 12px;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 3px solid var(--demo-line);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: var(--demo-accent);
  cursor: pointer;
  width: 100%;
}

.demo-btn.secondary { background: #fff; color: var(--demo-ink); }
.demo-btn.danger { background: var(--demo-accent-2); }
.demo-btn:focus { outline: 4px solid #f5c518; outline-offset: 2px; }

.demo-cat {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--demo-soft);
  border: 3px solid var(--demo-line);
  border-radius: 16px;
  padding: 14px;
  margin: 16px 0;
}

.demo-cat-face {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #ffd166;
  border: 3px solid #111;
  display: grid;
  place-items: center;
  font-size: 42px;
}

.demo-progress {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 16px 0;
}

.demo-progress span {
  min-height: 42px;
  border-radius: 10px;
  border: 2px solid #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  padding: 4px;
  background: #fff;
}

.demo-progress span.done { background: #c8f0d8; }
.demo-progress span.now { background: #ffe08a; }

.demo-facts {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.demo-facts div {
  border-bottom: 2px dashed #bbb;
  padding: 8px 0;
}

.demo-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.demo-roles {
  display: grid;
  gap: 12px;
}

.demo-note {
  font-weight: 700;
  margin-top: 18px;
}

@media (min-width: 768px) {
  .demo-actions { grid-template-columns: 1fr; max-width: 420px; }
  .demo-roles { grid-template-columns: 1fr 1fr; }
  .demo-hero { padding: 36px; }
}

@media (max-width: 640px) {
  .demo-progress { grid-template-columns: repeat(4, 1fr); }
  .demo-cat { grid-template-columns: 1fr; text-align: left; }
}
