:root {
  --ink: #1f2a2e;
  --muted: #5f6f73;
  --line: #dce4df;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --sage: #55766c;
  --teal: #0f766e;
  --amber: #b7791f;
  --danger: #b42318;
  --soft: #eef5f0;
  --shadow: 0 18px 48px rgba(31, 42, 46, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 56px;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--ink);
  color: white;
  font-weight: 800;
  border-radius: 8px;
}

.brand h1,
.brand p {
  margin: 0;
}

.brand h1 {
  font-size: 1.55rem;
  line-height: 1.25;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.print-button {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
  white-space: nowrap;
}

.top-nav {
  position: sticky;
  top: 83px;
  z-index: 19;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 56px;
  background: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.top-nav a {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  padding: 8px 11px;
  white-space: nowrap;
}

.top-nav a.active,
.top-nav a:hover {
  border-color: var(--line);
  background: var(--soft);
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: clamp(44px, 7vw, 78px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 150px;
}

.hero {
  display: grid;
  min-height: calc(100vh - 150px);
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero h2 {
  max-width: 830px;
  margin: 0;
  font-size: 5.2rem;
  line-height: 1.05;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.22rem;
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.hero-panel div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-panel strong {
  display: block;
  color: var(--teal);
  font-size: 3.2rem;
  line-height: 1;
}

.hero-panel span {
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 2.7rem;
  line-height: 1.18;
}

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

.check-grid label,
.task-board label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
  font-weight: 650;
}

.check-grid label.is-checked,
.task-board label.is-checked {
  border-color: rgba(15, 118, 110, 0.35);
  background: var(--soft);
  color: var(--teal);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.timeline span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 0.86rem;
  font-weight: 850;
}

.timeline strong {
  display: block;
  font-size: 1.1rem;
}

.timeline p,
.cards p,
.notice p,
.plain-note {
  margin-bottom: 0;
  color: var(--muted);
}

.notice {
  margin-top: 20px;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: var(--soft);
  padding: 18px 20px;
}

.notice.danger {
  border-left-color: var(--danger);
  background: #fff4f2;
}

.notice strong {
  font-size: 1.04rem;
}

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

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

.cards article,
.task-board > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

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

.table-row {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr 1.5fr;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row span {
  min-width: 0;
  padding: 14px 16px;
  overflow-wrap: anywhere;
}

.table-row span + span {
  border-left: 1px solid var(--line);
}

.table-head {
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.split > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}

.clean-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.plain-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px 20px;
}

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

.task-board > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 54px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px;
  }

  .top-nav {
    top: 0;
    padding: 9px 18px;
  }

  .hero,
  .check-grid,
  .timeline,
  .cards.three,
  .split,
  .task-board {
    grid-template-columns: 1fr;
  }

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

  .hero h2 {
    font-size: 3.15rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .hero-panel strong {
    font-size: 2.45rem;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-head {
    display: none;
  }

  .table-row {
    margin: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .table-row:last-child {
    border-bottom: 1px solid var(--line);
  }

  .table-row span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .table-row span:first-child {
    background: var(--soft);
    color: var(--teal);
    font-weight: 850;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand h1 {
    font-size: 1.28rem;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .print-button {
    width: 100%;
  }

  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 38px 0;
    scroll-margin-top: 64px;
  }

  .hero h2 {
    font-size: 2.35rem;
    line-height: 1.12;
  }

  .hero-panel div,
  .cards article,
  .task-board > div,
  .split > div,
  .notice,
  .plain-note {
    padding: 16px;
  }

  .section-heading h2 {
    font-size: 1.72rem;
  }

  .top-nav a {
    font-size: 0.86rem;
    padding: 7px 10px;
  }
}

@media print {
  .site-header,
  .top-nav {
    position: static;
  }

  .print-button,
  .top-nav {
    display: none;
  }

  body {
    background: white;
  }

  .section {
    break-inside: avoid;
    padding: 24px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel div,
  .cards article,
  .split > div,
  .task-board > div,
  .compare-table,
  .notice {
    box-shadow: none;
  }
}
