@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@700;900&family=Noto+Sans+TC:wght@400;500&family=Klee+One:wght@400;600&display=swap');

:root {
  --color-bg: #FAF7F2;
  --color-bg-alt: #F3EFE7;
  --color-heading: #22201B;
  --color-text: #4A463F;
  --color-primary: #2F4C3E;
  --color-primary-contrast: #FFFFFF;
  --color-gold: #C9A66B;
  --color-warn: #A85C4B;
  --color-hairline: #E4DFD3;
  --radius: 3px;
  --content-width: 740px;
  --container-width: 1220px;
  --space-section: clamp(64px, 10vw, 140px);
  --card-padding: clamp(24px, 4vw, 44px);
}

* { box-sizing: border-box; }

html { background: var(--color-bg); }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Noto Sans TC", "Segoe UI", -apple-system, "PingFang TC", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 600px) {
  body { font-size: 17px; }
}

.wrap {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

main .wrap {
  max-width: var(--content-width);
}

main .wrap.wide { max-width: var(--container-width); }

img, svg { max-width: 100%; }

/* ---------- Headings & text ---------- */

h1, h2, h3 {
  font-family: "Noto Serif TC", serif;
  color: var(--color-heading);
  letter-spacing: 0.06em;
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  margin: 0 0 28px;
  letter-spacing: 0.05em;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 20px;
}

h3 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin: 0 0 14px;
}

p { margin: 0 0 1.2em; }

small, .aux {
  font-size: 13.5px;
  color: var(--color-text);
  opacity: 0.85;
}

strong { color: var(--color-heading); font-weight: 500; }

a {
  color: var(--color-primary);
  text-decoration: none;
  position: relative;
}

main a:not(.button):not(.card):not(.nav-plain) {
  background-image: none;
}

main a:not(.button):not(.step):not(.type-card):not(.example-card) {
  padding-bottom: 1px;
}

main a:not(.button):not(.step):not(.type-card):not(.example-card)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s ease;
}

main a:not(.button):not(.step):not(.type-card):not(.example-card):hover::after {
  transform: scaleX(1);
}

section + section,
.section { margin-top: var(--space-section); }

/* ---------- Header ---------- */

header.site-header {
  border-bottom: 1px solid var(--color-hairline);
  padding: 22px 0;
  background: var(--color-bg);
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  max-width: var(--container-width);
}

.site-title {
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--color-heading);
}

.site-title::after { display: none; content: none; }

nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

nav.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding-bottom: 3px;
}

nav.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  color: var(--color-primary);
}

nav.site-nav a:hover::after,
nav.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-new-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-heading);
  background: var(--color-gold);
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 5px;
  vertical-align: super;
}

/* ---------- Main / Footer ---------- */

main {
  padding: clamp(48px, 8vw, 88px) 0 var(--space-section);
}

footer.site-footer {
  border-top: 1px solid var(--color-hairline);
  padding: 28px 0;
  font-size: 0.85rem;
  color: var(--color-text);
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.footer-credit {
  color: var(--color-text);
  opacity: 0.7;
  font-size: 0.78rem;
}

.footer-contact {
  color: var(--color-text);
  opacity: 0.7;
  font-size: 0.78rem;
}

.footer-contact a {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* ---------- Lede / hero ---------- */

.lede {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--color-text);
}

.scenario-list {
  list-style: none;
  margin: 28px 0 36px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.scenario-list li {
  position: relative;
  padding-left: 26px;
  font-size: 17px;
  color: var(--color-heading);
}

.scenario-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 1px;
  background: var(--color-gold);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 8px;
}

/* ---------- Buttons ---------- */

.button, button[type="submit"] {
  display: inline-block;
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  text-decoration: none;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: "Noto Sans TC", sans-serif;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.22s ease, color 0.22s ease, transform 0.1s ease;
}

.button:hover, button[type="submit"]:hover {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.button:active, button[type="submit"]:active {
  transform: scale(0.98);
}

.button.secondary {
  border-color: var(--color-hairline);
  color: var(--color-text);
}

.button.secondary:hover {
  background: var(--color-heading);
  border-color: var(--color-heading);
  color: var(--color-primary-contrast);
}

form.report-form button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* ---------- Three-step flow ---------- */

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

@media (max-width: 720px) {
  .flow-steps { grid-template-columns: 1fr; }
}

.flow-steps li.step {
  border-top: 1px solid var(--color-hairline);
  padding-top: 20px;
}

.step .step-num {
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
  font-size: 40px;
  color: var(--color-gold);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.step h3 { margin-bottom: 8px; font-size: 19px; }

.step p { font-size: 14.5px; margin-bottom: 0; color: var(--color-text); }

/* ---------- Cards (type / example / response) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.type-card, .example-card, .response-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  padding: var(--card-padding);
  display: block;
  text-decoration: none;
  color: inherit;
}

.example-card h3, .type-card h3, .response-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.example-card p, .type-card p, .response-card p {
  font-size: 14.5px;
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-warn);
  border: 1px solid var(--color-warn);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
}

.tag.neutral {
  color: var(--color-text);
  border-color: var(--color-hairline);
}

.response-card .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13.5px;
  color: var(--color-text);
  margin-bottom: 12px;
}

.response-card .meta-row span { white-space: nowrap; }

.response-card .excerpt {
  border-top: 1px solid var(--color-hairline);
  padding-top: 12px;
  margin-top: 4px;
}

.empty-note {
  border: 1px dashed var(--color-hairline);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 14.5px;
  color: var(--color-text);
  margin-top: 24px;
}

/* ---------- Tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 15.5px;
}

table th, table td {
  border: none;
  border-bottom: 1px solid var(--color-hairline);
  padding: 18px 16px;
  text-align: left;
  vertical-align: top;
}

table th {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 500;
  color: var(--color-heading);
  border-bottom: 1px solid var(--color-heading);
}

table.compare td:first-child,
table.compare th:first-child { color: var(--color-heading); font-weight: 500; }

/* ---------- Details / SOP collapsibles ---------- */

details {
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 10px;
  background: var(--color-bg-alt);
}

details + details { margin-top: 10px; }

details summary {
  font-weight: 500;
  cursor: pointer;
  color: var(--color-heading);
  list-style: revert;
}

details summary::marker { color: var(--color-gold); }

details[open] summary { margin-bottom: 10px; }

details p { margin-bottom: 0.6em; }
details p:last-child { margin-bottom: 0; }

.law-articles { margin: 20px 0 8px; }

.law-articles summary { font-family: "Noto Sans TC", sans-serif; font-weight: 500; }

/* ---------- File block ---------- */

.file-block {
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 1.6em 0;
  background: var(--color-bg-alt);
  flex-wrap: wrap;
}

/* ---------- Trust / info panels ---------- */

.info-panel {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-primary);
  padding: 22px 28px;
  border-radius: var(--radius);
  margin: 1.6em 0;
}

.info-panel h3 { font-size: 18px; margin-bottom: 10px; }
.info-panel p:last-child { margin-bottom: 0; }

.trust-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 14px;
}

.trust-list li {
  position: relative;
  padding-left: 28px;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--color-primary);
}

/* ---------- Forms ---------- */

form.report-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.7em;
}

form.report-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-heading);
}

form.report-form .required { color: var(--color-warn); }

form.report-form input[type="text"],
form.report-form input[type="email"],
form.report-form input[type="url"],
form.report-form textarea {
  width: 100%;
  padding: 10px 4px;
  border: none;
  border-bottom: 1px solid var(--color-hairline);
  border-radius: 0;
  background: transparent;
  color: var(--color-heading);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form.report-form input[type="text"]:focus,
form.report-form input[type="email"]:focus,
form.report-form input[type="url"]:focus,
form.report-form textarea:focus {
  outline: none;
  border-bottom: 1px solid var(--color-primary);
  box-shadow: 0 4px 10px -6px rgba(47, 76, 62, 0.35);
}

form.report-form textarea { min-height: 150px; resize: vertical; }

form.report-form select {
  width: 100%;
  padding: 10px 28px 10px 4px;
  border: none;
  border-bottom: 1px solid var(--color-hairline);
  border-radius: 0;
  background: transparent;
  color: var(--color-heading);
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-text) 50%), linear-gradient(135deg, var(--color-text) 50%, transparent 50%);
  background-position: right 8px top 55%, right 2px top 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form.report-form select:focus {
  outline: none;
  border-bottom: 1px solid var(--color-primary);
  box-shadow: 0 4px 10px -6px rgba(47, 76, 62, 0.35);
}

form.report-form select:invalid { color: var(--color-text); }

form.report-form .radio-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form.report-form .radio-list label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
}

form.report-form input[type="radio"],
form.report-form input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
}

form.report-form .hint {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--color-text);
  margin-top: 6px;
}

.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  display: none;
  font-size: 14.5px;
}

.form-status.show { display: block; }
.form-status.ok { background: #EAF1EC; border: 1px solid var(--color-primary); color: var(--color-primary); }
.form-status.err { background: #F7EAE7; border: 1px solid var(--color-warn); color: var(--color-warn); }

.disclaimer { font-size: 0.8rem; color: var(--color-text); }

/* ---------- Posts list (fallback) ---------- */

.posts-list {
  list-style: none;
  padding: 0;
}

.posts-list li {
  border-bottom: 1px solid var(--color-hairline);
  padding: 14px 0;
}

.posts-list a { color: var(--color-heading); font-size: 1.05rem; }

/* ---------- SOP tabs ---------- */

.sop-tabs {
  display: flex;
  gap: 6px;
  margin: 8px 0 0;
  border-bottom: 1px solid var(--color-hairline);
}

.sop-tabs .tab-btn {
  font-family: "Noto Sans TC", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  background: transparent;
  border: none;
  padding: 12px 6px 14px;
  margin-bottom: -1px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.sop-tabs .tab-btn + .tab-btn { margin-left: 22px; }

.sop-tabs .tab-btn[aria-selected="true"] {
  color: var(--color-heading);
  border-bottom-color: var(--color-gold);
}

.tab-panel[hidden] { display: none; }

.tab-panel { padding-top: 40px; }

/* ---------- Illustrated SOP steps (comic version) ---------- */

.comic-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin: 30px 0 40px;
  padding: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .comic-steps { grid-template-columns: repeat(2, 1fr); }
  .comic-steps li.step-alert { grid-column: span 2; }
}

@media (max-width: 560px) {
  .comic-steps { grid-template-columns: 1fr; }
  .comic-steps li.step-alert { grid-column: span 1; }
}

.comic-steps li.step {
  border-top: 1px solid var(--color-hairline);
  padding-top: 22px;
  text-align: center;
}

.comic-steps .step-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: block;
  stroke: var(--color-heading);
}

.comic-steps .step-num {
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--color-gold);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}

.comic-steps h3 { font-size: 17px; margin-bottom: 8px; }

.comic-steps p { font-size: 14px; margin-bottom: 12px; color: var(--color-text); }

.step-quote {
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px dashed var(--color-hairline);
  font-family: "Noto Serif TC", serif;
  font-size: 13.5px;
  font-style: italic;
  color: var(--color-heading);
}

.comic-steps li.step-alert {
  border-top-color: var(--color-warn);
}

.comic-steps li.step-alert .step-num { color: var(--color-warn); }
.comic-steps li.step-alert .step-icon { stroke: var(--color-warn); }
.comic-steps li.step-alert .step-quote { border-top-color: var(--color-warn); }

.comic-steps .tag { margin-bottom: 14px; }

.comic-intro { color: var(--color-text); font-size: 15.5px; margin: 0 0 4px; }

/* ---------- Section sub-title (two-line heading) ---------- */

.section-title { margin: 0 0 4px; }
.section-title h2 { margin-bottom: 4px; }
.section-subtitle {
  font-size: 0.92rem;
  color: var(--color-text);
  margin: 0 0 20px;
}

.contact-block {
  margin: 14px 0 0;
  padding: 16px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  font-size: 14.5px;
  line-height: 1.9;
}

.contact-block a { color: var(--color-primary); }

/* ============================================================
   FUN-VARIANTS — A（雜誌跨頁感）／C（任務卡質感）雙版型切換器，永久保留功能
   關鍵字搜尋：FUN-VARIANTS
   打掉重練 v2：三版本改成風格強烈、一眼可辨的大改造（不再是 hover/淡入這類微互動）
   ============================================================ */

/* ---------- 共用結構：手風琴展開機制（三版本共用，不隨版本改變） ---------- */

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-panel.is-open {
  grid-template-rows: 1fr;
}

details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

.faq-icon {
  display: inline-block;
  margin-left: 8px;
  font-weight: 700;
  color: var(--color-gold);
  transition: transform 0.25s ease;
}

.faq-icon::before {
  content: "+";
}

details[open] .faq-icon {
  transform: rotate(180deg);
}

details[open] .faq-icon::before {
  content: "\2212";
}

@media (prefers-reduced-motion: reduce) {
  .faq-panel { transition: none; }
}

/* ---------- 共用 widget：版本切換器／提示條（外觀不隨版本改變，維持中性） ---------- */

.fun-variant-switcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--color-hairline);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 6px 20px rgba(34, 32, 27, 0.15);
}

.fun-variant-switcher button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-hairline);
  background: #fff;
  color: #22201B;
  font: 600 13px "Noto Sans TC", sans-serif;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.fun-variant-switcher button[aria-pressed="true"] {
  background: #22201B;
  color: #fff;
  border-color: #22201B;
}

.fun-variant-toast {
  position: fixed;
  right: 20px;
  bottom: 78px;
  z-index: 9999;
  background: #22201B;
  color: #fff;
  font: 500 13.5px "Noto Sans TC", sans-serif;
  padding: 8px 14px;
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(34, 32, 27, 0.25);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fun-variant-toast.is-visible {
  opacity: 1;
  transform: none;
}

body[data-variant] {
  min-height: 100vh;
  transition: background-color 0.3s ease;
}

.fun-hero-wrap {
  position: relative;
  z-index: 0;
}

.fun-deco-numeral {
  position: absolute;
  right: -8px;
  top: -28px;
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
  font-size: clamp(120px, 26vw, 380px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--color-gold);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  user-select: none;
  display: none;
}

.fun-hand-arrow {
  display: none;
  width: 96px;
  height: auto;
  margin-left: 4px;
  vertical-align: middle;
}

/* =====================================================================
   版本 A・雜誌跨頁感 — 巨型印刷體標題、滿版反轉色塊、磚紅螢光筆、不對稱卡片
   ===================================================================== */

body[data-variant="a"] {
  --color-bg: #EDE3C8;
  --color-bg-alt: #E3D6AE;
  --fun-ink: #14130F;
  --fun-brick: #C1442E;
  background-image: repeating-linear-gradient(45deg, transparent 0 10px, rgba(20, 19, 15, 0.035) 10px 11px);
  overflow-x: hidden;
}

body[data-variant="a"] header.site-header {
  border-bottom: 2px solid var(--fun-ink);
}

body[data-variant="a"] .fun-deco-numeral {
  display: block;
  opacity: 0.55;
}

body[data-variant="a"] main > .wrap > h1,
body[data-variant="a"] main h1 {
  font-size: clamp(56px, 11vw, 150px);
  line-height: 0.94;
  letter-spacing: -0.01em;
  max-width: none;
  position: relative;
  z-index: 1;
}

body[data-variant="a"] strong {
  background: linear-gradient(180deg, transparent 55%, rgba(193, 68, 46, 0.32) 55%);
  padding: 0 1px;
}

body[data-variant="a"] .section:has(.flow-steps) {
  background: var(--fun-ink);
  margin: var(--space-section) calc(50% - 50vw);
  padding: 56px calc(50vw - 50%);
}

body[data-variant="a"] .section:has(.flow-steps) h2 {
  color: #F5F1E6;
}

body[data-variant="a"] .section:has(.flow-steps) .step p,
body[data-variant="a"] .section:has(.flow-steps) .step h3 {
  color: #F5F1E6;
}

body[data-variant="a"] .section:has(.flow-steps) .step {
  border-top-color: rgba(245, 241, 230, 0.3);
}

body[data-variant="a"] .example-card:nth-child(2) {
  transform: translateY(-18px) rotate(0.6deg);
}

body[data-variant="a"] .example-card:nth-child(3) {
  transform: translateY(12px) rotate(-0.6deg);
}

body[data-variant="a"] .example-card {
  border: 2px solid var(--fun-ink);
  border-radius: 0;
}

body[data-variant="a"] .law-articles {
  position: relative;
}

body[data-variant="a"] .law-articles::before {
  content: "\201C";
  position: absolute;
  top: -64px;
  left: -12px;
  font-family: "Noto Serif TC", serif;
  font-size: 200px;
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.3;
  z-index: 0;
}

body[data-variant="a"] .button {
  border-radius: 0;
  border-width: 2px;
  border-color: var(--fun-ink);
  color: var(--fun-ink);
}

body[data-variant="a"] .button:hover {
  background: var(--fun-brick);
  border-color: var(--fun-brick);
  color: #fff;
}

body[data-variant="a"] details {
  border-radius: 0;
  border-width: 2px;
  border-color: var(--fun-ink);
}

/* =====================================================================
   版本 B・手繪筆記本感 — 手寫體、螢光筆劃記、便利貼卡片、手繪箭頭
   ===================================================================== */

body[data-variant="b"] {
  --color-bg: #FBF3DE;
  --color-bg-alt: #F3E9CC;
  --fun-highlighter: #FFD35C;
  --fun-chalk: #6F93B8;
  background-image:
    linear-gradient(rgba(111, 147, 184, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 147, 184, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
}

body[data-variant="b"] main > .wrap > h1,
body[data-variant="b"] main h1 {
  font-size: clamp(44px, 7vw, 84px);
}

body[data-variant="b"] .fun-hand-arrow {
  display: inline-block;
}

body[data-variant="b"] strong {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='8' viewBox='0 0 20 8'%3E%3Cpath d='M0 4 Q5 0 10 4 T20 4' fill='none' stroke='%23C9A66B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 20px 8px;
  padding-bottom: 3px;
}

body[data-variant="b"] .scenario-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

body[data-variant="b"] .scenario-list li {
  padding: 16px 18px 18px;
  background: #FFFDF6;
  border: 1px solid var(--color-hairline);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 0 3px 0 var(--color-hairline), 2px 6px 10px rgba(20, 19, 15, 0.1);
}

body[data-variant="b"] .scenario-list li:nth-child(1) { transform: rotate(-1.4deg); }
body[data-variant="b"] .scenario-list li:nth-child(2) { transform: rotate(1deg); }
body[data-variant="b"] .scenario-list li:nth-child(3) { transform: rotate(-0.8deg); }
body[data-variant="b"] .scenario-list li:nth-child(4) { transform: rotate(1.2deg); }

body[data-variant="b"] .scenario-list li:hover {
  transform: rotate(0deg) translateY(-3px);
}

body[data-variant="b"] .scenario-list li::before {
  display: none;
}

body[data-variant="b"] .example-card,
body[data-variant="b"] .info-panel,
body[data-variant="b"] .contact-block {
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  border: 1.5px solid var(--color-primary);
}

body[data-variant="b"] .info-panel::before {
  content: "";
  display: block;
  height: 20px;
  margin: -1px -1px 12px;
  background: repeating-linear-gradient(45deg, rgba(201, 166, 107, 0.45), rgba(201, 166, 107, 0.45) 4px, transparent 4px, transparent 8px);
  transform: rotate(-1deg);
}

body[data-variant="b"] .tab-btn,
body[data-variant="b"] .faq-icon {
  font-family: "Klee One", "Noto Sans TC", sans-serif;
}

body[data-variant="b"] .step-quote {
  font-family: "Klee One", "Noto Serif TC", serif;
}

/* =====================================================================
   版本 C・任務卡質感 — 六角徽章、切角卡片、連接箭頭、時限進度軌道
   ===================================================================== */

body[data-variant="c"] {
  --color-bg: #EEF2ED;
  --color-bg-alt: #FFFFFF;
}

body[data-variant="c"] main h1 {
  font-size: clamp(46px, 7.5vw, 92px);
}

body[data-variant="c"] .flow-steps li.step,
body[data-variant="c"] .comic-steps li.step {
  position: relative;
  border-top: none;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg-alt) 100%);
  padding: 30px 20px 22px;
  clip-path: polygon(0 12px, 12px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  box-shadow: 0 1px 2px rgba(34, 32, 27, 0.06), 0 8px 20px -6px rgba(34, 32, 27, 0.14), 0 20px 36px -22px rgba(47, 76, 62, 0.3);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

body[data-variant="c"] .comic-steps li.step {
  padding-top: 34px;
}

body[data-variant="c"] .flow-steps li.step:hover,
body[data-variant="c"] .comic-steps li.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(34, 32, 27, 0.08), 0 14px 26px -8px rgba(34, 32, 27, 0.18), 0 26px 44px -20px rgba(47, 76, 62, 0.35);
}

body[data-variant="c"] .step .step-num,
body[data-variant="c"] .comic-steps .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 64px;
  margin: 0 0 16px;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #3B2C10;
  background: linear-gradient(155deg, #E8C98A 0%, #C9A66B 45%, #9C7B45 100%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 3px rgba(0, 0, 0, 0.2);
}

body[data-variant="c"] .comic-steps .step-num {
  margin-left: auto;
  margin-right: auto;
}

body[data-variant="c"] .comic-steps li.step-alert .step-num {
  background: linear-gradient(155deg, #E7A392 0%, var(--color-warn) 45%, #7C3823 100%);
  color: #fff;
}

body[data-variant="c"] .comic-steps li.step:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -19px;
  top: 46%;
  font-size: 20px;
  color: var(--color-gold);
  z-index: 1;
}

@media (max-width: 900px) {
  body[data-variant="c"] .comic-steps li.step:not(:last-child)::after {
    display: none;
  }
}

body[data-variant="c"] .flow-steps {
  position: relative;
  margin-top: 60px;
}

body[data-variant="c"] .flow-steps::before {
  content: "";
  position: absolute;
  top: -26px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-primary));
}

body[data-variant="c"] .flow-steps li.step::before {
  content: "";
  position: absolute;
  top: -32px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.35);
}

body[data-variant="c"] .button {
  border-radius: 999px;
  padding: 12px 34px;
}

body[data-variant="c"] .button:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(47, 76, 62, 0.5);
}

/* ============================================================
   FUN-VARIANTS — 區塊結束
   ============================================================ */
