:root {
  --bg: #ffffff;
  --ink: #14181f;
  --muted: #5b6573;
  --line: rgba(0, 0, 0, 0.12);
  --panel: #f6f7f9;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --warn: #b5781f;
  --bad: #d23b56;
  --good: #1f9d6b;
  --tint: rgba(0, 0, 0, 0.03);
  --tint-2: rgba(0, 0, 0, 0.05);
  --button-ink: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--button-ink);
  font-weight: 750;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.button:hover {
  opacity: 0.86;
}

.button.secondary,
.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover,
.button.ghost:hover {
  border-color: var(--ink);
  opacity: 1;
}

/* ---------- 站頂導覽列 ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.site-brand {
  font-weight: 850;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.site-gh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.site-gh:hover {
  background: var(--ink);
  color: var(--button-ink);
  border-color: var(--ink);
}

.site-gh svg { display: block; }

/* footer */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-gh {
  font-size: 13px;
}

@media (max-width: 620px) {
  .site-gh span { display: none; }
  .site-brand { font-size: 16px; }
}

.hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  /* 中文字身比拉丁字高，1.1 會讓大標上下行重疊；CJK 標題至少要 1.25。 */
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 800;
}

h1 {
  max-width: 760px;
  font-size: clamp(40px, 6.4vw, 72px);
}

.subtitle {
  margin: 26px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.trust span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.diagnosis {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.diagnosis-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--tint);
}

.score {
  font-size: 34px;
  font-weight: 900;
}

.label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.diagnosis-body {
  padding: 20px;
}

.issue {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.issue:last-child {
  border-bottom: 0;
}

.num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.rewrite {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: var(--tint);
  border: 1px solid var(--line);
}

.rewrite strong {
  display: block;
  margin-bottom: 6px;
}

section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 46px;
}

.section-head-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
}

.section-head p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(37, 99, 235, 0.12);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.step {
  position: relative;
}

.step .num {
  margin-bottom: 18px;
}

.agent {
  border-top: 2px solid var(--accent);
}

.agent:nth-child(2) {
  border-top-color: var(--good);
}

.agent:nth-child(3) {
  border-top-color: var(--warn);
}

.agent:nth-child(4) {
  border-top-color: var(--bad);
}

.agent:nth-child(5) {
  border-top-color: var(--accent);
}

.demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.pane {
  padding: 24px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.pane.before {
  border-top: 2px solid var(--bad);
}

.pane.after {
  border-top: 2px solid var(--good);
}

.challenge-box {
  margin: 18px 0;
  padding: 20px;
  border-left: 2px solid var(--warn);
  background: rgba(217, 154, 78, 0.08);
  border-radius: 0 8px 8px 0;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

li + li {
  margin-top: 8px;
}

.faq {
  display: grid;
  gap: 14px;
}

details {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.output-list {
  margin: 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.9;
  overflow-x: auto;
}

.output-list .muted {
  color: var(--muted);
}

.final-cta {
  text-align: center;
  background: var(--bg);
}

.final-cta .actions {
  justify-content: center;
}

.final-cta .closing-line {
  margin: 32px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}

footer {
  padding: 36px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Wizard 開場 ---------- */
.wz-hero {
  display: flex;
  flex-direction: column;
  padding: 132px 0 96px;
  color: var(--ink);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-shell {
  display: block;
  text-align: center;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
}

.hero-copy .eyebrow {
  justify-content: center;
}

.hero-actions {
  justify-content: center;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 520px;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0.92;
  filter: none;
  z-index: -2;
}

.hero-agent-image {
  object-fit: contain;
  padding: 32px 18px 190px;
  background: #f4f5f7;
  opacity: 0.92;
  filter: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.88));
  z-index: -1;
}

.section-head-offset {
  margin-top: 64px;
}

.hero-visual-top {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.hero-chip {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.hero-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-mini-card {
  min-height: 112px;
  padding: 16px;
  border-radius: 10px;
  background: var(--tint-2);
  border: 1px solid var(--line);
}

.hero-mini-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--ink);
}

.hero-mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual-preview {
  margin-top: 12px;
  padding: 16px;
  border-radius: 10px;
  background: var(--tint);
  border: 1px solid var(--line);
}

.hero-visual-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-visual-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hero-visual-stack span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--tint-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.wz-hero .eyebrow {
  margin-bottom: 22px;
}

.wz-hero h1 {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(40px, 5.6vw, 66px);
  color: var(--ink);
}

.wz-hero .subtitle {
  margin: 22px auto 0;
  max-width: 600px;
  color: var(--muted);
  font-size: 19px;
}

.wz-hero .subtitle strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero-actions span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.hero-primary {
  min-height: 50px;
  padding: 0 26px;
}

.hero-bottom {
  border-top: 1px solid var(--line);
}

.hero-bottom-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  color: var(--muted);
}

.hero-bottom-inner span {
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-bottom-inner strong {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}

.wz-how {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.wz-market,
.wz-skills,
.wz-structure {
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.wz-goal-grid,
.wz-skill-grid {
  display: grid;
  gap: 14px;
}

.wz-goal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wz-skill-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wz-goal-card,
.wz-skill-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wz-goal-card {
  display: grid;
  gap: 10px;
  align-content: start;
  text-align: left;
  cursor: pointer;
}

.wz-goal-card:hover {
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.14);
}

.wz-goal-card.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wz-goal-card.is-disabled:hover {
  box-shadow: none;
  border-color: var(--line);
}

.wz-goal-card .wz-goal-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.wz-goal-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.wz-goal-title {
  font-size: 20px;
}

.wz-goal-desc {
  color: var(--muted);
  margin: 0;
}

.wz-goal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.wz-goal-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.wz-skill-card {
  display: grid;
  gap: 10px;
}

.wz-skill-card h3 {
  font-size: 18px;
}

.wz-skill-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.wz-skill-open {
  justify-self: start;
  margin-top: 4px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.wz-skill-open:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.wz-section-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.wz-section-card {
  text-align: left;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.wz-section-card:hover {
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.1);
}

.wz-section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.wz-section-preview {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.wz-section-full {
  margin: 0;
  padding: 16px;
  max-height: 56vh;
  overflow: auto;
}

.wz-skill-pack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 18px;
}

.wz-skill-pill {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.wz-skill-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.wz-skill-preview {
  display: grid;
  gap: 12px;
}

.wz-skill-preview-pre {
  max-height: 60vh;
}

/* ---------- Wizard ---------- */
.wz-section {
  padding: 48px 0 80px;
}

.wz-hint {
  margin: 0 0 4px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.wz {
  max-width: 880px;
  margin: 0 auto;
}

/* ===== 全螢幕 AI 面談 overlay ===== */
body.wz-lock { overflow: hidden; }

.wz-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
}

.wz-overlay[hidden] { display: none; }

/* 頂部固定進度列 */
.wz-topbar {
  flex: 0 0 auto;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.wz-topbar-inner {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 12px;
}

.wz-progress {
  height: 2px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.wz-progress-fill {
  height: 100%;
  width: 6%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.wz-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}

.wz-topbar-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-width: 0;
}

.wz-step-count {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.wz-eta {
  color: var(--muted);
  font-size: 13px;
}

.wz-restart {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
}

.wz-restart:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.wz-topbar-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wz-close {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
}

.wz-close:hover {
  border-color: var(--ink, #14181f);
  color: var(--ink, #14181f);
}

.wz-close:focus-visible,
.wz-restart:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 中間捲動舞台 */
.wz-stage {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 36px 16px 56px;
}

/* 聚焦卡片 */
.wz-card {
  width: min(720px, 100%);
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 48px;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.wz-card.no-anim { transition: none; }
.wz-card.is-exit-next { transform: translateX(-40px); opacity: 0; }
.wz-card.is-exit-prev { transform: translateX(40px); opacity: 0; }
.wz-card.is-enter-next { transform: translateX(40px); opacity: 0; }
.wz-card.is-enter-prev { transform: translateX(-40px); opacity: 0; }

/* 底部固定導航 */
.wz-footer {
  flex: 0 0 auto;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.wz-footer[hidden] { display: none; }

.wz-footer-inner {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.wz-next { min-width: 150px; }

/* ===== 卡片內容 ===== */
.wz-q {
  font-size: clamp(23px, 3.2vw, 32px);
  margin-bottom: 10px;
}

.wz-sub {
  margin: 0 0 18px;
  color: var(--muted);
}

.wz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.wz-grid-wire {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 選項卡 */
.wz-opt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.wz-opt-card:hover { border-color: var(--accent); }

.wz-opt-card.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.wz-key {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wz-opt-card.is-on .wz-key {
  background: var(--accent);
  color: #fff;
}

.wz-opt-label { font-weight: 700; }

.wz-opt-text h3 { font-size: 17px; }
.wz-opt-text p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* Agent 卡 */
.wz-grid-agents {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wz-opt-card.wz-agent {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 20px 18px 18px;
}

.wz-opt-card.wz-agent:hover .wz-agent-figure {
  color: var(--accent);
}

.wz-opt-card.wz-agent.is-on .wz-agent-figure {
  color: var(--accent);
}

.wz-agent-figure {
  width: 100%;
  height: 132px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  transition: color 0.15s ease;
}

.wz-agent-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wz-agent-figure.wz-agent-figure-svg {
  height: 80px;
  width: 50px;
  background: transparent;
}

.wz-agent-figure-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wz-agent-text {
  width: 100%;
}

.wz-agent-focus {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.wz-agent-persona {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  opacity: 0.82;
  font-size: 13px;
  line-height: 1.6;
}

.wz-tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
}

.wz-tag-rec { background: rgba(79, 209, 160, 0.16); color: var(--good); }

.wz-group {
  margin: 24px 0 2px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 800;
}

.wz-agent-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.wz-mini { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* Wireframe 卡 */
.wz-wire {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.wz-wire h3 { font-size: 15px; }
.wz-wire p { margin: 0; color: var(--muted); font-size: 13px; }

.wz-wire-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--tint);
  overflow: hidden;
}

.wz-wire-thumb svg { width: 100%; height: 100%; display: block; }
.wz-wire-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wz-wire-ph { color: var(--muted); font-size: 13px; font-weight: 700; }

.wz-other {
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

/* ===== 完成頁 ===== */
.wz-done-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(79, 209, 160, 0.16);
  color: var(--good);
  font-weight: 800;
  font-size: 14px;
}

.wz-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
}

.wz-lang-label { color: var(--muted); font-size: 14px; font-weight: 700; }

.wz-lang-btn {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.wz-lang-btn.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.wz-output {
  width: 100%;
  min-height: 320px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tint);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  white-space: pre-wrap;
}

/* 可編輯的提示詞框：更高、聚焦時有提示邊框 */
.wz-output-edit {
  min-height: 420px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wz-output-edit:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.wz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.wz-link-back {
  display: inline-block;
  margin-top: 16px;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.wz-link-back:hover { text-decoration: underline; }

/* ===== Modal ===== */
.wz-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15, 18, 23, 0.45);
  display: grid;
  place-items: center;
  padding: 20px;
}

.wz-modal-box {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  color: var(--ink);
}

.wz-modal-box.is-wide { width: min(680px, 100%); }

.wz-modal-title { font-size: 22px; margin-bottom: 8px; }
.wz-modal-body { margin: 0 0 18px; color: var(--muted); }

.wz-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.wz-sample {
  margin: 0 0 18px;
  max-height: 50vh;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .hero-grid,
  .demo,
  .compare,
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .wz-hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero-shell {
    gap: 32px;
  }

  .hero-visual {
    min-height: 460px;
  }

  .wz-grid-wire,
  .wz-grid-agents {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .wz-goal-grid,
  .wz-skill-grid,
  .wz-section-cards {
    grid-template-columns: 1fr 1fr;
  }

  section {
    padding: 84px 0;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .hero,
  .wz-hero {
    padding-top: 32px;
  }

  section {
    padding: 64px 0;
  }

  .grid-3,
  .grid-4,
  .wz-grid,
  .wz-grid-wire,
  .wz-grid-agents {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 40px;
  }

  .wz-hero h1 {
    font-size: 34px;
    line-height: 1.25;
  }

  .subtitle {
    font-size: 18px;
  }

  .wz-hero .subtitle {
    margin-top: 14px;
    font-size: 16px;
  }

  .actions .button,
  .hero-actions .button {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
    margin-top: 22px;
  }

  .hero-actions span {
    display: none;
  }

  .hero-shell {
    gap: 18px;
    padding-bottom: 22px;
  }

  .hero-visual {
    min-height: 600px;
  }

  .hero-image,
  .hero-visual::after {
    inset: 0;
    height: 100%;
  }

  .hero-visual-top {
    justify-content: flex-start;
  }

  .hero-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wz-goal-grid,
  .wz-skill-grid,
  .wz-section-cards {
    grid-template-columns: 1fr;
  }

  .hero-bottom {
    display: none;
  }

  .hero-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  /* 面談 overlay 手機版 */
  .wz-card {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .wz-stage {
    padding: 20px 12px 40px;
  }

  .wz-footer-inner {
    flex-direction: column-reverse;
  }

  .wz-footer-inner .button {
    width: 100%;
  }

  .wz-next {
    min-width: 0;
  }

  .wz-modal-actions .button {
    flex: 1;
  }
}
