/* =========================================================
   AI 職涯探索 — style.css
   目錄：
   1. 色彩與基本變數（要換配色改這裡）
   2. 基本設定
   3. 共用元件（容器、按鈕、無障礙）
   4. 頁首與進度導覽
   5. 開場區塊
   6. STEP 區塊與經驗卡片
   7. Prompt 顯示區
   8. STEP 3 表單
   9. 底部提醒與頁尾
   10. Toast 提示
   11. 響應式（平板 / 手機）
   ========================================================= */

/* ---------- 1. 色彩與基本變數 ---------- */
/* 使用 Claude（Anthropic）官方品牌色 */
:root {
  --c-ink: #141413;           /* 主色：近黑，標題與深色背景 */
  --c-accent: #d97757;        /* Claude 橘：主要按鈕與重點 */
  --c-accent-hover: #c8654a;
  --c-accent-active: #b3573e;
  --c-accent-deep: #a8512f;   /* 深橘：圖示與次要文字 */
  --c-blue: #6a9bcc;          /* 官方藍：次要點綴 */
  --c-tint: #f0eee5;          /* 淺米：輔助區塊 */
  --c-tint-strong: #e8e6dc;
  --c-bg: #faf9f5;            /* 頁面背景：米白 */
  --c-surface: #ffffff;
  --c-text: #26251f;
  --c-muted: #56544c;
  --c-border: #e3e0d4;
  --c-border-strong: #8b8779; /* 輸入框邊框（對比 3:1 以上） */
  --c-focus: #141413;         /* 鍵盤焦點外框 */
  --c-error: #a63122;
  --c-error-bg: #fbf1ee;
  --c-warn: #8a5a12;
  --c-warn-bg: #fbf3e4;
  --c-success: #5d7046;       /* 綠色底（配白字） */
  --c-success-text: #4f6138;  /* 綠色文字（配淺底） */
  --c-success-bg: #eef0e6;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 19, 0.06);
  --shadow: 0 1px 2px rgba(20, 20, 19, 0.05), 0 6px 20px rgba(20, 20, 19, 0.07);
  --max-w: 1120px;
  --header-h: 68px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- 2. 基本設定 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth; /* 平滑滾動 */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.35;
  color: var(--c-ink);
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--c-accent-active); /* 深一階的橘，確保文字對比足夠 */
}

kbd {
  font-family: inherit;
  font-size: 0.875em;
  padding: 0.05em 0.45em;
  background: #fff;
  border: 1px solid var(--c-border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
}

/* 使用者偏好減少動態時，關閉動畫 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- 3. 共用元件 ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}

/* 鍵盤操作時的焦點外框 */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

/* 只給螢幕報讀器讀的文字 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--c-ink);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  flex-shrink: 0;
}

/* 按鈕 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px; /* 手機容易點擊 */
  padding: 0.625rem 1.25rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-lg {
  min-height: 52px;
  padding: 0.8rem 2rem;
  font-size: 1.0625rem;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.9375rem;
}

/* Claude 橘配深色文字，對比才足夠（白字配橘色會看不清楚） */
.btn-primary {
  background: var(--c-accent);
  color: var(--c-ink);
  box-shadow: 0 4px 14px rgba(20, 20, 19, 0.12);
}

.btn-primary:hover:not(:disabled) {
  background: var(--c-accent-hover);
  box-shadow: 0 6px 18px rgba(20, 20, 19, 0.18);
}

.btn-primary:active:not(:disabled) {
  background: var(--c-accent-active);
  color: #fff;
  box-shadow: 0 2px 8px rgba(20, 20, 19, 0.14);
}

.btn-outline {
  background: #fff;
  color: var(--c-ink);
  border-color: var(--c-accent);
}

.btn-outline:hover:not(:disabled) {
  background: var(--c-tint);
}

.btn-outline:active:not(:disabled) {
  background: var(--c-tint-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--c-accent-deep);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--c-tint);
}

.btn-ghost:active:not(:disabled) {
  background: var(--c-tint-strong);
}

.btn-danger {
  background: transparent;
  color: var(--c-error);
  border-color: #e5c0b6;
}

.btn-danger:hover:not(:disabled) {
  background: var(--c-error-bg);
  border-color: var(--c-error);
}

.btn-danger:active:not(:disabled) {
  background: #f6e3dd;
}

/* 收合按鈕的箭頭 */
.js-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.js-toggle[aria-expanded="true"]::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

/* ---------- 4. 頁首與進度導覽 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, 0.94);
  border-bottom: 1px solid var(--c-border);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-ink);
  background: var(--c-accent);
  border-radius: 9px;
}

.progress-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 步驟之間的連接線 */
.progress-list li + li::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--c-border);
  border-radius: 2px;
}

.progress-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 14px 4px 6px;
  color: var(--c-muted);
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.15s, color 0.15s;
}

.progress-link:hover {
  background: var(--c-tint);
  color: var(--c-ink);
}

.progress-link:active {
  background: var(--c-tint-strong);
}

/* 目前步驟：橘色底＋深色粗體，讓人一眼看出走到哪 */
.progress-link[aria-current="step"] {
  background: rgba(217, 119, 87, 0.2);
  color: var(--c-ink);
  font-weight: 700;
}

.nav-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-muted);
  background: #fff;
  border: 2px solid var(--c-border-strong);
  border-radius: 50%;
}

.progress-link[aria-current="step"] .nav-num {
  color: var(--c-ink);
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.progress-link.is-done .nav-num {
  color: #fff;
  background: var(--c-success);
  border-color: var(--c-success);
}

.nav-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.nav-step {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-label {
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 5. 開場區塊 ---------- */
.hero {
  padding-block: 24px 72px;
  background: var(--c-bg); /* 單色米白，不用漸層 */
}

.hero-topbar {
  display: flex;
  justify-content: flex-end;
}

.ig-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.ig-pill:hover {
  color: var(--c-accent-active);
  border-color: var(--c-accent);
}

.ig-pill:active {
  background: var(--c-tint);
}

.hero-content {
  max-width: 780px;
  margin: 32px auto 0;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 14px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  background: rgba(217, 119, 87, 0.22);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 .line {
  display: inline-block;
}

.hero-sub {
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--c-muted);
}

.hero-quote {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 20px;
  font-weight: 700;
  color: var(--c-ink);
  text-align: left;
  background: #fff;
  border-left: 4px solid var(--c-accent);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-sm);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.hero-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.hero-steps li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.hero-step-num {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-accent);
}

.hero-steps strong {
  font-size: 1.0625rem;
  color: var(--c-ink);
}

.hero-steps li > span:last-child {
  font-size: 0.9375rem;
  color: var(--c-muted);
}

/* ---------- 6. STEP 區塊與經驗卡片 ---------- */
.step {
  padding-block: 64px;
  scroll-margin-top: var(--header-h);
}

.step + .step {
  border-top: 1px solid var(--c-border);
}

.step-header {
  max-width: 780px;
  margin-bottom: 24px;
}

.step-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
}

/* STEP 標籤：橘底深字，讓步驟一眼可見 */
.step-badge {
  display: inline-block;
  padding: 6px 18px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-ink);
  background: var(--c-accent);
  border-radius: 999px;
}

/* STEP 2、STEP 3 上方的向下箭頭，表示接下來的步驟 */
.step + .step .step-header::before {
  content: "↓";
  content: "↓" / ""; /* 箭頭只是裝飾，不讓螢幕報讀器朗讀 */
  display: block;
  margin-bottom: 8px;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--c-accent);
}

.step-desc {
  margin-top: 12px;
  font-size: 1.0625rem;
  color: var(--c-muted);
}

.voice-tip {
  margin-bottom: 16px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #f6f1e6, #efebdf);
  border: 1px solid #e0d8c4;
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
}

.voice-tip-main {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-ink);
}

.voice-tip-sub {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.rule-note {
  margin-bottom: 20px;
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exp-card {
  padding: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 16px);
  transition: border-color 0.2s;
}

.exp-card.is-valid {
  border-color: #b4c09c;
}

.exp-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}

.exp-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.exp-title::before {
  content: "";
  width: 6px;
  height: 22px;
  background: linear-gradient(var(--c-accent-deep), var(--c-accent));
  border-radius: 4px;
}

.exp-status {
  padding: 4px 12px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-muted);
  background: var(--c-tint-strong);
  border-radius: 999px;
}

.exp-status.is-partial {
  color: var(--c-warn);
  background: var(--c-warn-bg);
}

.exp-status.is-valid {
  color: var(--c-success-text);
  background: var(--c-success-bg);
}

.exp-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-ink);
}

.field-hint {
  margin: 2px 0 8px;
  font-size: 0.875rem;
  color: var(--c-muted);
}

.field-input,
.text-input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem; /* 16px 以上，避免 iOS 自動放大 */
  line-height: 1.7;
  color: var(--c-text);
  background: #fdfcf8;
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.field-input {
  min-height: 112px;
  resize: none;
  overflow-y: hidden; /* 高度由 script.js 自動調整 */
}

.field-input::placeholder,
.text-input::placeholder {
  color: #6b7280;
}

.field-input:hover,
.text-input:hover {
  border-color: #6f6a5c;
}

.field-input:focus,
.text-input:focus {
  outline: 2px solid transparent; /* 高對比模式下仍會顯示 */
  background: #fff;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(217, 119, 87, 0.3);
}

.exp-card-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.exp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 20px;
}

.exp-count {
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.generate-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 28px 24px;
  text-align: center;
  background: #fff;
  border: 1.5px dashed #e0b6a0;
  border-radius: var(--radius);
}

.form-error {
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-error);
  white-space: pre-line;
  background: var(--c-error-bg);
  border: 1px solid #ecc6bb;
  border-radius: var(--radius-sm);
}

.form-error:empty {
  display: none;
}

/* ---------- 7. Prompt 顯示區 ---------- */
.prompt-panel {
  margin-top: 28px;
  padding: 20px 24px 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 4px solid var(--c-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.step-header + .prompt-panel {
  margin-top: 0;
}

.prompt-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.prompt-panel-title {
  font-size: 1.1875rem;
}

.stale-note {
  margin-top: 12px;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-warn);
  background: var(--c-warn-bg);
  border: 1px solid #ead9b4;
  border-radius: var(--radius-sm);
}

.prompt-note {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.prompt-note:empty {
  display: none;
}

.prompt-body {
  margin-top: 16px;
}

.prompt-text {
  display: block;
  width: 100%;
  height: 360px;
  min-height: 180px;
  padding: 16px 18px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
  white-space: pre-wrap;
  background: #f7f5ee;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  resize: vertical;
}

.prompt-text:focus {
  outline: 2px solid transparent;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(217, 119, 87, 0.3);
}

.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.next-hint {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--c-ink);
  background: var(--c-tint);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius-sm);
}

/* ---------- 8. STEP 3 表單 ---------- */
.career-form {
  padding: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.career-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.career-row .text-input {
  flex: 1;
  min-height: 52px;
}

.text-input[aria-invalid="true"] {
  border-color: var(--c-error);
}

.field-help {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.career-form .form-error {
  margin-top: 12px;
}

/* ---------- 9. 底部提醒與頁尾 ---------- */
.reminder {
  padding-block: 8px 72px;
}

.reminder-card {
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
  background: linear-gradient(135deg, #1f1d1a 0%, #2d2924 55%, #4a382c 100%);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(20, 20, 19, 0.2);
}

.reminder-card .reminder-label {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-ink);
  background: var(--c-accent);
  border-radius: 999px;
}

.reminder-card h2 {
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem);
  color: #fff;
}

.reminder-card p {
  max-width: 740px;
  margin-top: 12px;
  font-size: 1.0625rem;
  color: #e8e4d8;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.flow li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow li span {
  padding: 8px 16px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.flow li + li::before {
  content: "→";
  content: "→" / ""; /* 箭頭只是裝飾，不讓螢幕報讀器朗讀 */
  font-weight: 700;
  color: var(--c-accent);
}

.reminder-card .reminder-final {
  margin-top: 32px;
  padding-top: 24px;
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.site-footer {
  padding-block: 32px calc(32px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--c-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-title {
  font-weight: 700;
  color: var(--c-ink);
}

.footer-note {
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 8px;
  color: var(--c-muted);
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 18px;
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
  border: 1.5px solid var(--c-accent);
  border-radius: 999px;
  transition: background-color 0.15s;
}

.footer-contact a:hover {
  background: var(--c-tint);
}

.footer-contact a:active {
  background: var(--c-tint-strong);
}

/* ---------- 10. Toast 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 100;
  width: max-content;
  max-width: min(92vw, 520px);
  padding: 14px 20px;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
  background: var(--c-ink);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(20, 20, 19, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s, transform 0.2s;
}

.toast:empty {
  padding: 0;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 11. 響應式 ---------- */
/* 平板 */
@media (max-width: 860px) {
  .hero-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .exp-fields {
    grid-template-columns: 1fr;
  }
}

/* 手機 */
@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .container {
    padding-inline: 16px;
  }

  .brand {
    display: none;
  }

  .header-inner {
    justify-content: center;
  }

  .progress-nav {
    width: 100%;
  }

  .progress-list {
    justify-content: space-between;
    gap: 4px;
  }

  .progress-list li {
    gap: 4px;
  }

  .progress-list li + li::before {
    width: 10px;
  }

  .progress-link {
    gap: 6px;
    padding: 4px 10px 4px 4px;
  }

  .nav-num {
    width: 28px;
    height: 28px;
  }

  /* 手機只顯示數字圓圈與名稱，「STEP N」留給螢幕報讀器 */
  .nav-step {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .hero {
    padding-block: 16px 48px;
  }

  .hero-content {
    margin-top: 20px;
  }

  .hero-quote {
    display: block;
  }

  .hero-steps {
    margin-top: 40px;
  }

  .step {
    padding-block: 44px;
  }

  .exp-card {
    padding: 18px 16px;
  }

  .btn-lg,
  .exp-toolbar .btn {
    width: 100%;
  }

  .generate-box {
    padding: 20px 16px;
  }

  .career-form {
    padding: 20px 16px;
  }

  .career-row {
    flex-direction: column;
  }

  .prompt-panel {
    padding: 16px 16px 20px;
  }

  .prompt-text {
    height: 300px;
    padding: 14px;
  }

  .prompt-actions .js-copy {
    flex: 1;
  }

  .reminder-card {
    border-radius: 20px;
  }
}

/* 超窄螢幕（例如 320px） */
@media (max-width: 360px) {
  .progress-list li + li::before {
    display: none;
  }

  .nav-label {
    font-size: 0.875rem;
  }
}
