:root {
  --bg: #f5f3ef;
  --card: #fffdfa;
  --card-2: #f1f0eb;
  --text: #252521;
  --muted: #77776f;
  --line: #dcd9d1;
  --soft: #e8ece6;
  --soft-2: #eef0eb;
  --accent: #687367;
  --accent-dark: #596358;
  --warn: #7c6248;
  --warn-bg: #f5ece2;
  --danger: #8a5450;
  --danger-bg: #f5e9e7;
  --shadow: 0 18px 48px rgba(36, 36, 32, 0.08);
  --radius: 22px;
  --max: 1080px;
  --font-sans:
  "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui,
  -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --nav-h: 73px;
  --chapter-h: 52px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
body,
button,
input,
select,
textarea {
  font-family: var(--font-sans) !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans) !important;
  font-weight: 800;
}
p,
li,
dd,
dt,
td,
th {
  font-family: var(--font-sans);
}

button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
.hidden {
  display: none !important;
}
[hidden] {
  display: none !important;
}
.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;
}
/* 點目錄跳轉時，標題不能被固定的導覽列／章節列蓋住 */
.section,
#top,
#results {
  scroll-margin-top: calc(var(--nav-h) + var(--chapter-h) + 40px);
}
@media (min-width: 1400px) {
  .section,
  #top,
  #results {
    scroll-margin-top: calc(var(--nav-h) + 22px);
  }
}
.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.feaver-site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #dcd9d1;
  background: #f5f3ef;
}
.feaver-site-nav__inner {
  width: min(calc(100% - 40px), 1080px);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.feaver-site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #252521;
  text-decoration: none;
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
}
.feaver-site-nav__logo {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 12px;
}
.feaver-site-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.feaver-site-nav__links a {
  padding: 10px 13px;
  border-radius: 12px;
  color: #77776f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}
.feaver-site-nav__links a:hover {
  color: #252521;
  background: #fffdfa;
}
.feaver-site-nav__links .feaver-site-nav__cta {
  color: #fff;
  background: #252521;
  margin-left: 4px;
  padding-inline: 16px;
}
@media (max-width: 620px) {
  :root {
    --nav-h: 63px;
    --chapter-h: 48px;
  }
  .feaver-site-nav__inner {
    width: min(calc(100% - 24px), 1080px);
    min-height: 62px;
    gap: 10px;
  }
  .feaver-site-nav__brand span {
    display: none;
  }
  .feaver-site-nav__logo {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .feaver-site-nav__links {
    gap: 1px;
  }
  .feaver-site-nav__links a {
    padding: 9px 8px;
    font-size: 12px;
  }
}

header.hero {
  padding: 64px 0 28px;
}
.hero-intro {
  position: static;
}
.tool-eyebrow {
  display: block;
  margin: 0 0 14px;
  color: #606c61;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.tool-eyebrow strong {
  font-weight: 900;
}
header.hero h1.tool-hero-title {
  margin: 0;
  max-width: 100%;
  color: #242522;
  font-size: clamp(54px, 7.2vw, 90px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 900;
}
header.hero h1.tool-hero-title span {
  color: #606c61;
}
header.hero h1.tool-hero-title .tool-hero-sub {
  display: block;
  margin-top: 24px;
  font-size: clamp(19px, 2.3vw, 25px);
  line-height: 1.45;
  letter-spacing: -0.02em;
  font-weight: 800;
}
/* 標語緊接副標，兩行一起讀；和 H1 的距離由副標的 margin-top 拉開 */
.hero-tagline {
  max-width: 820px;
  margin: 2px 0 0;
  color: #3f463c;
  font-size: clamp(19px, 2.3vw, 25px);
  line-height: 1.45;
  letter-spacing: -0.02em;
  font-weight: 850;
}
@media (max-width: 720px) {
  header.hero h1.tool-hero-title {
    font-size: clamp(31px, 9vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.045em;
  }
  header.hero h1.tool-hero-title .tool-hero-sub {
    margin-top: 18px;
    font-size: 17px;
  }
  .hero-tagline {
    margin-top: 2px;
    font-size: 17px;
  }
  header.hero {
    padding: 50px 0 28px;
  }
}
@media (max-width: 390px) {
  header.hero h1.tool-hero-title {
    font-size: 30px;
  }
}
.hero-lead {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.input-panel {
  margin-top: 34px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.input-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}
.input-panel-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.025em;
}
.input-panel-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.required-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 15px;
}
.field {
  min-width: 0;
}
label.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 780;
}
.hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffefa;
  color: var(--text);
  outline: none;
  transition:
  border-color 0.16s ease,
  box-shadow 0.16s ease;
}
input,
select {
  height: 52px;
  padding: 0 14px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #aeb9ae;
  box-shadow: 0 0 0 4px rgba(119, 132, 120, 0.11);
}
select:disabled {
  background: var(--card-2);
  border-style: dashed;
  color: var(--muted);
  cursor: not-allowed;
  opacity: 1;
  -webkit-text-fill-color: var(--muted);
}

.preset-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.preset-bar--top {
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.preset-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.preset-bar--top .preset-hint {
  flex: 0 0 100%;
}

details.more-options {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
}
details.more-options > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 0 17px;
  font-weight: 780;
  user-select: none;
}
details.more-options > summary::-webkit-details-marker {
  display: none;
}
details.more-options > summary::after {
  content: "＋";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
details.more-options[open] > summary::after {
  content: "－";
}
.optional-summary-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.optional-fields-body {
  padding: 16px 17px 17px;
  border-top: 1px solid var(--line);
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.option-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.light-warn {
  margin: 0 0 15px;
  padding: 11px 14px;
  border-left: 3px solid var(--warn);
  border-radius: 0 12px 12px 0;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 13px;
  line-height: 1.65;
}
.light-warn strong {
  font-weight: 850;
}
.more-grid.is-locked {
  opacity: 0.42;
}
.more-grid.is-locked .option-row label {
  cursor: not-allowed;
}
.option-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--accent);
}
.option-row label {
  font-size: 14px;
  font-weight: 700;
}
.option-row small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.btn {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  background: #fffefa;
  color: var(--text);
  transition: transform 0.14s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}
.form-actions .btn {
  font-size: 16px;
  font-weight: 780;
}
.result-prompt {
  margin-top: 0;
  margin-bottom: 28px;
}
.result-prompt__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 22px;
  border: 1px solid #d6ddd4;
  border-radius: 18px;
  background: var(--soft);
}
.result-prompt__inner strong,
.result-prompt__inner span {
  display: block;
}
.result-prompt__inner strong {
  color: var(--text);
  font-size: 16px;
}
.result-prompt__inner span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}
.result-prompt__inner .btn {
  flex: 0 0 auto;
}
.primary-btn {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.secondary-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-size: 16px;
}
.soft-btn {
  background: var(--soft);
  border-color: #d6ddd4;
  color: var(--accent-dark);
}
.ghost-btn {
  background: var(--card);
  color: var(--text);
}
.btn-small {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 11px;
}
.export-bar {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 22px;
}

#results {
  padding-top: 28px;
}
.summary-banner {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
}
.summary-label {
  color: #bfc4bb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.summary-value {
  font-size: clamp(38px, 6.4vw, 64px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
}
.summary-mid {
  color: #dcded9;
  font-size: 14px;
  line-height: 1.8;
}
.summary-mid strong {
  color: #fff;
}
.summary-meta {
  color: #c5c8c2;
  font-size: 14px;
  text-align: right;
}
.summary-meta .big {
  display: block;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.progress-panel {
  margin-top: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}
.progress-head strong {
  font-size: 18px;
}
.progress-number {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.progress-track {
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: #e4e2dc;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.section {
  margin: 32px 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}
.section-head h2 {
  margin: 0;
  color: #252522;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.section-desc {
  margin: 8px 0 0;
  color: #6f6d67;
  font-size: 15px;
  line-height: 1.75;
}
.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 45px rgba(30, 29, 26, 0.08);
}
.panel h3 {
  margin: 0 0 6px;
  font-size: 19px;
}
.panel-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 清單 ---------- */
.list-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-2);
}
.list-tabs button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.list-tabs button[aria-selected="true"] {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
  box-shadow: 0 6px 16px rgba(36, 37, 34, 0.06);
}
.list-tabs button .cnt {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffefa;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.chip[aria-pressed="true"] {
  background: var(--soft);
  border-color: #cfd8cd;
  color: var(--accent-dark);
}
.filter-spacer {
  flex: 1 1 auto;
}

.gear-groups {
  display: grid;
  gap: 14px;
}
.gear-group {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.72);
  overflow: hidden;
}
.gear-group-head {
  padding: 14px 16px;
  background: #f0eee8;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.gear-group-head strong {
  font-size: 15px;
}
.gear-group-head span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.gear-list {
  display: grid;
  gap: 9px;
  padding: 12px 14px 14px;
}
.gear-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 14px 15px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.gear-item.opt {
  background: rgba(255, 253, 249, 0.6);
  border-style: dashed;
}
.gear-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--accent);
}
.gear-title {
  font-size: 14px;
  font-weight: 780;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.gear-desc {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.gear-side {
  display: grid;
  gap: 4px;
  justify-items: end;
  white-space: nowrap;
}
.gear-weight {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.zone-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--soft-2);
  border: 1px solid #dfe3dd;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.zone-pill:hover {
  background: var(--soft);
}
.gear-item.done {
  opacity: 0.55;
}
.gear-item.done .gear-title,
.gear-item.done .gear-desc {
  text-decoration: line-through;
}
.tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
}
.tag-must,
.tag-lv1 {
  background: #e7ece6;
  color: #4d5a4d;
}
.tag-rec,
.tag-lv2 {
  background: var(--warn-bg);
  color: var(--warn);
}
.tag-lv3 {
  background: var(--card-2);
  color: var(--muted);
}
.tag-cond {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-weight: 700;
}
.tag-opt {
  background: var(--card-2);
  color: var(--muted);
}
.tag-key {
  background: var(--warn-bg);
  color: var(--warn);
}
.tag-winter {
  background: #e7edf2;
  color: #4e6070;
}
.tag-share {
  background: #f0ece4;
  color: #7a6a52;
}
.empty-note {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- 背包剖析圖 ---------- */
.pack-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}
.pack-stage {
  position: sticky;
  top: 88px;
  z-index: 4;
  padding: 18px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
  radial-gradient(
  circle at 50% 10%,
  rgba(255, 255, 255, 0.92),
  transparent 60%
  ),
  linear-gradient(180deg, #fbf7ee 0%, #f2ebdd 100%);
  box-shadow: inset 0 1px 0 #fff, 0 18px 45px rgba(30, 29, 26, 0.07);
  overflow: hidden;
}
.pack-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 64px;
  background: linear-gradient(
  180deg,
  transparent,
  rgba(124, 98, 72, 0.09)
  );
  pointer-events: none;
}
.pack-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(54vh, 460px);
  margin: 0 auto;
  overflow: visible;
}
.pack-tip {
  position: absolute;
  z-index: 5;
  max-width: 250px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.97);
  box-shadow: 0 14px 32px rgba(36, 37, 34, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition:
  opacity 0.14s ease,
  transform 0.14s ease;
}
.pack-tip.show {
  opacity: 1;
  transform: translateY(0);
}
.pack-tip strong {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
}
.pack-tip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.pack-tip .pack-tip-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}
.pack-tip .pack-tip-items b {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--soft-2);
  border: 1px solid #e0e4de;
  color: #5c6459;
  font-size: 10.5px;
  font-weight: 750;
}

.stage-caption {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 4px;
}
.stage-caption .sc-step {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.stage-caption .sc-title {
  font-size: 15px;
  font-weight: 850;
}

/* zone groups：無動畫，改為滑鼠停留互動 */
.pz {
  cursor: pointer;
}
/* 滑鼠點選時不顯示瀏覽器預設焦點框，改用下面自己畫的外框 */
.pz:focus {
  outline: none;
}
.pz:focus-visible .pz-halo,
.pz.active .pz-halo {
  opacity: 1;
  stroke: #252521;
  stroke-width: 3.4;
}
.pz-halo {
  opacity: 0;
}
.pack-stage.has-active .pz:not(.active) {
  opacity: 0.4;
}
.pz-label {
  opacity: 0.94;
}
.pz.active .pz-label {
  opacity: 1;
}
.liner-line {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}

/* 步驟卡 */
.steps-rail {
  display: grid;
  gap: 8px;
}
.step-group {
  margin-top: 10px;
  padding-left: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.step-group:first-child {
  margin-top: 0;
}

.pretrip-list {
  display: grid;
  gap: 9px;
}
.pretrip-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px 15px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.pretrip-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.pretrip-item.done {
  opacity: 0.55;
}
.pretrip-item.done .gear-title,
.pretrip-item.done .gear-desc {
  text-decoration: line-through;
}
.step-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
}
.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}
.step-head:hover {
  background: rgba(232, 236, 230, 0.5);
}
.step-chevron {
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.18s ease;
}
.step-card.open .step-chevron {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.step-body {
  padding: 0 16px 16px 58px;
}
.step-card .num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.step-card strong {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 800;
}
.step-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.step-card .why {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 750;
}
.step-card.open,
.step-card[aria-current="true"] {
  border-color: #aab5a9;
  box-shadow: 0 10px 26px rgba(104, 115, 103, 0.12);
}
.step-card.open .num,
.step-card[aria-current="true"] .num {
  background: var(--accent);
  border-color: var(--accent-dark);
  color: #fff;
}
.step-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.step-items span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--soft-2);
  border: 1px solid #e0e4de;
  font-size: 11px;
  font-weight: 750;
  color: #5c6459;
}

/* 重心提示 */
.balance-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.balance-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.85);
}
.balance-card strong {
  display: block;
  font-size: 14px;
}
.balance-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ---------- 資訊區塊 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.breadcrumb a {
  color: var(--accent-dark);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span[aria-current] {
  color: var(--text);
}

.basic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.basic-card {
  padding: 16px 17px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.basic-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.basic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
@media (max-width: 1020px) {
  .basic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .basic-grid {
    grid-template-columns: 1fr;
  }
}
.guide-group + .guide-group {
  margin-top: 26px;
}
.guide-group__title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
}
.link-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.link-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  text-decoration: none;
  transition:
  border-color 0.16s ease,
  transform 0.16s ease;
}
.link-card:hover {
  border-color: #b9c3b8;
  transform: translateY(-2px);
}
.link-card strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.link-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
@media (max-width: 1020px) {
  .link-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .link-cards {
    grid-template-columns: 1fr;
  }
}

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.cta-panel p {
  margin: 6px 0 0;
  color: #c8ccc5;
  font-size: 14px;
  line-height: 1.7;
}
.cta-panel .btn {
  background: #fffdfa;
  border-color: #fffdfa;
  color: #252521;
  min-height: 52px;
  font-size: 15px;
}

.static-list {
  display: grid;
  gap: 14px;
}
.static-group {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.72);
  overflow: hidden;
}
.static-group-head {
  padding: 13px 16px;
  background: #f0eee8;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  font-weight: 800;
}
.static-group-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.static-group ul {
  margin: 0;
  padding: 12px 18px 14px 34px;
}
.static-group li {
  margin: 6px 0;
  font-size: 14.5px;
  line-height: 1.7;
}
.static-group li em {
  font-style: normal;
  color: var(--muted);
  font-size: 12.5px;
}
.static-steps {
  display: grid;
  gap: 10px;
  counter-reset: step;
}
.static-step {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.static-step strong {
  display: block;
  font-size: 15px;
}
.static-step p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.faq-grid {
  display: grid;
  gap: 12px;
}
.faq-item {
  overflow: hidden;
  border: 1px solid #d8d4cc;
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.92);
}
.faq-item summary {
  padding: 18px 20px;
  color: #252522;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  cursor: pointer;
}
.faq-answer {
  padding: 0 20px 20px;
  color: #6f6d67;
  font-size: 15px;
  line-height: 1.8;
}
.legal {
  padding: 22px;
  border-left: 4px solid var(--accent);
}
.legal strong {
  font-size: 17px;
}
.legal p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.legal p + p {
  margin-top: 10px;
}
.combined-notice {
  overflow: hidden;
  padding: 0;
  border-radius: 22px;
}
.notice-block {
  padding: 24px;
}
.notice-block > strong {
  display: block;
  margin-bottom: 10px;
  color: #252522;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 850;
}
.notice-block p,
.notice-block li {
  color: #6f6d67;
  font-size: 15px;
  line-height: 1.8;
}
.notice-block ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.notice-divider {
  height: 1px;
  background: #d8d4cc;
}

footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  border-top: 1px solid #d8d4cc;
  color: #6f6d67;
  font-size: 13px;
}
.source-footer {
  padding-top: 22px;
  font-size: 13px;
  line-height: 1.75;
}
.source-footer .data-updated {
  margin-bottom: 8px;
}
.source-footer .sources {
  margin: 8px 0 0;
  padding-left: 20px;
}
.source-footer .sources li + li {
  margin-top: 5px;
}
.source-footer a {
  color: inherit;
  font-weight: 400;
  text-underline-offset: 3px;
}
.footer-inner {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.footer-brand__logo {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 10px;
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links a {
  text-decoration: none;
}

/* ---------------- 章節導覽 ----------------
   窄螢幕：導覽列下方的吸頂章節列，點開是底部選單。
   寬螢幕（≥1400px）：內容右側的 sticky 目錄，兩者不會同時出現。
   兩者都在捲過 hero（產生器）之後才淡入，避免和主要 CTA 搶注意力。 */
.chapter-bar {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--chapter-h);
  border-bottom: 1px solid var(--line);
  background: #f5f3ef;
}
.chapter-bar.is-visible {
  display: block;
}
.chapter-bar__inner {
  width: min(calc(100% - 24px), var(--max));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chapter-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.chapter-bar__btn--top {
  padding: 7px 12px;
  font-size: 15px;
}
.chapter-bar__lines {
  position: relative;
  width: 13px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.chapter-bar__lines::after {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 100%;
  border-top: 2px solid currentColor;
}
.chapter-bar__now {
  flex: 1;
  min-width: 0;
  text-align: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toc-rail {
  display: none;
  position: fixed;
  top: calc(var(--nav-h) + 30px);
  left: calc(50% + var(--max) / 2 + 20px);
  width: min(190px, calc(50vw - var(--max) / 2 - 32px));
  z-index: 800;
  opacity: 0;
  transform: translateX(8px);
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
  pointer-events: none;
}
.toc-rail.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.toc-rail__title {
  margin: 0 0 10px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
}
.toc-rail__list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}
.toc-link {
  display: block;
  margin-left: -2px;
  padding: 7px 11px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.toc-link:hover {
  color: var(--text);
}
.toc-link.is-key {
  color: #46503f;
  font-weight: 850;
}
.toc-link.is-active {
  border-left-color: var(--accent);
  border-radius: 0 9px 9px 0;
  background: rgba(232, 236, 230, 0.6);
  color: var(--text);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(30, 30, 26, 0.42);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.sheet-backdrop.is-open {
  opacity: 1;
}
.chapter-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1600;
  max-height: 78vh;
  overflow-y: auto;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: var(--card);
  box-shadow: 0 -18px 48px rgba(36, 36, 32, 0.2);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.chapter-sheet.is-open {
  transform: none;
}
.chapter-sheet__head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px 12px;
  background: var(--card);
  font-size: 15px;
}
.chapter-sheet__close {
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  background: var(--card-2);
  color: var(--muted);
  font-size: 14px;
}
.chapter-sheet__list {
  display: grid;
  gap: 2px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}
.sheet-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 13px;
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}
.sheet-link.is-key {
  font-weight: 850;
}
.sheet-link.is-active {
  background: var(--soft);
}
.sheet-link.is-active::after {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
}

@media (min-width: 1400px) {
  .toc-rail {
    display: block;
  }
  .chapter-bar,
  .chapter-bar.is-visible {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-bar,
  .toc-rail,
  .chapter-sheet,
  .sheet-backdrop {
    transition: none;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 2000;
  transform: translate(-50%, 18px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transition:
  opacity 0.22s ease,
  transform 0.22s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1020px) {
  .required-grid {
    grid-template-columns: 1fr 1fr;
  }
  .more-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pack-layout {
    grid-template-columns: 1fr;
  }
  .pack-stage {
    position: static;
    z-index: auto;
    background: #f7f2e8;
    box-shadow: none;
  }
  .pack-stage::after {
    display: none;
  }
  .pack-svg {
    max-height: min(46vh, 380px);
  }
  .balance-note {
    grid-template-columns: 1fr;
  }
  .summary-banner {
    grid-template-columns: 1fr;
  }
  .summary-meta {
    text-align: left;
  }
}
@media (max-width: 620px) {
  .required-grid,
  .more-grid {
    grid-template-columns: 1fr;
  }
  .input-panel {
    padding: 20px;
  }
  .panel {
    padding: 18px;
  }
  .section-head h2 {
    font-size: 24px;
  }
  .gear-item {
    grid-template-columns: auto 1fr;
  }
  .gear-side {
    grid-column: 2;
    justify-items: start;
    flex-direction: row;
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .form-actions,
  .export-bar {
    justify-content: stretch;
  }
  .form-actions .btn,
  .export-bar .btn {
    flex: 1 1 140px;
  }
  .result-prompt__inner {
    align-items: stretch;
    flex-direction: column;
  }
  .result-prompt__inner .btn {
    width: 100%;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 11mm 14mm;
  }
  body.printing-sheet > *:not(#printSheet) {
    display: none !important;
  }
  html,
  body {
    background: #fff;
    color: #171713;
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: 9.5pt;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  body.printing-sheet #printSheet {
    display: block !important;
  }
  .print-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8mm;
    align-items: end;
    padding-bottom: 4mm;
    border-bottom: 2px solid #252522;
    break-after: avoid;
    page-break-after: avoid;
  }
  .print-brand {
    margin-bottom: 1.5mm;
    color: #66706a;
    font-size: 8pt;
    font-weight: 800;
    letter-spacing: 0.08em;
  }
  .print-title {
    margin: 0;
    font-size: 21pt;
    line-height: 1.15;
    letter-spacing: -0.04em;
  }
  .print-summary {
    margin-top: 2mm;
    color: #555a56;
    font-size: 9pt;
  }
  .print-capacity {
    text-align: right;
    white-space: nowrap;
  }
  .print-capacity small {
    display: block;
    color: #6b706c;
    font-size: 7.5pt;
  }
  .print-capacity strong {
    font-size: 15pt;
  }
  .print-section {
    margin-top: 5mm;
  }
  .print-section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0 0 2.5mm;
    padding-bottom: 1.5mm;
    border-bottom: 1px solid #aaa;
    font-size: 13pt;
  }
  .print-section-title span {
    color: #666;
    font-size: 8pt;
    font-weight: 500;
  }
  .print-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3mm 5mm;
    align-items: start;
  }
  .print-group {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .print-group h3 {
    margin: 0;
    padding: 1.6mm 2mm;
    border: 1px solid #c9cbc7;
    border-bottom: 0;
    background: #eceee9;
    font-size: 9pt;
    line-height: 1.2;
  }
  .print-item {
    display: grid;
    grid-template-columns: 4mm minmax(0, 1fr) auto;
    gap: 1.8mm;
    align-items: start;
    min-height: 5mm;
    padding: 1.5mm 2mm;
    border: 1px solid #d8d9d6;
    border-top: 0;
    line-height: 1.25;
  }
  .print-box {
    display: grid;
    place-items: center;
    width: 3.2mm;
    height: 3.2mm;
    margin-top: 0.1mm;
    border: 1.2px solid #333;
    border-radius: 0.6mm;
    font-size: 7pt;
    font-weight: 900;
    line-height: 1;
  }
  .print-item.is-done .print-box {
    color: #fff;
    background: #30332f;
  }
  .print-item-main {
    min-width: 0;
  }
  .print-item-name {
    font-weight: 750;
  }
  .print-item-desc {
    display: block;
    margin-top: 0.5mm;
    color: #666;
    font-size: 7.2pt;
  }
  .print-meta {
    color: #555;
    font-size: 7.2pt;
    white-space: nowrap;
  }
  .print-level {
    display: inline-block;
    margin-left: 1mm;
    padding: 0.25mm 1mm;
    border: 1px solid #9da19b;
    border-radius: 8mm;
    color: #454a45;
    font-size: 6.5pt;
    font-weight: 600;
    vertical-align: 0.2mm;
  }
  .print-level.must {
    color: #fff;
    background: #3e5148;
    border-color: #3e5148;
  }
  .print-grid--one {
    grid-template-columns: minmax(0, 1fr);
  }
  .print-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6mm 5mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .print-step {
    display: grid;
    grid-template-columns: 4.6mm minmax(0, 1fr);
    gap: 1.6mm;
    font-size: 8pt;
    line-height: 1.3;
  }
  .print-step b {
    display: grid;
    place-items: center;
    width: 4mm;
    height: 4mm;
    border: 1px solid #555;
    border-radius: 50%;
    font-size: 6.5pt;
  }
  .print-step em {
    display: block;
    color: #62665f;
    font-style: normal;
    font-size: 7.2pt;
  }
  .print-note {
    margin-top: 2.5mm;
    padding: 1.6mm 2.2mm;
    border-left: 2px solid #8a8f89;
    background: #f2f3f0;
    color: #4a4f4a;
    font-size: 7.5pt;
    line-height: 1.45;
    break-inside: avoid;
  }
  .print-foot {
    margin-top: 5mm;
    padding-top: 2mm;
    border-top: 1px solid #bbb;
    color: #777;
    font-size: 7pt;
    text-align: center;
  }
}

#printSheet {
  display: none;
}
