:root {
  --red: #dd6562;
  --pink: #f5d0d0;
  --paper: #f8f4ed;
  --cream: #fffaf5;
  --sage: #cfe0d9;
  --brick: #bf7878;
  --green: #203318;
  --moss: #39543b;
  --ink: #373737;
  --gray: #595757;
  --line: rgba(89, 87, 87, .18);
  --shadow: 0 18px 45px rgba(55, 55, 55, .08);
  --r: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(245, 208, 208, .42), transparent 28rem), linear-gradient(180deg, var(--cream) 0%, var(--paper) 52%, #fff 100%);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: auto; padding: 44px 24px 70px; }
.hero { display: grid; grid-template-columns: 1.35fr .85fr; gap: 24px; }
.card, .hero-card, .principle {
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, .8);
}
.hero-card { padding: 42px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--moss); font-size: 14px; font-weight: 800; letter-spacing: .08em; }
.mark { width: 38px; height: 38px; border-radius: 999px; background: linear-gradient(145deg, var(--red), var(--brick)); box-shadow: 0 8px 22px rgba(221, 101, 98, .22); }
h1 { margin: 0; color: var(--green); font-size: clamp(34px, 5vw, 58px); line-height: 1.12; font-weight: 900; }
.sub { margin: 18px 0 0; color: var(--gray); font-size: clamp(16px, 2vw, 20px); font-weight: 700; }
.principle { padding: 34px 30px; background: linear-gradient(180deg, rgba(32, 51, 24, .96), rgba(57, 84, 59, .95)); color: var(--cream); display: flex; flex-direction: column; justify-content: space-between; }
.eyebrow { color: rgba(255, 250, 245, .78); font-size: 13px; font-weight: 900; letter-spacing: .16em; margin-bottom: 16px; }
.principle strong { display: block; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; }
.principle p { margin: 22px 0 0; color: rgba(255, 250, 245, .88); }
.nav { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 6px; }
.nav a, .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 250, 245, .98), rgba(248, 244, 237, .92));
  border: 1px solid rgba(89, 87, 87, .2);
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(55, 55, 55, .09), inset 0 1px 0 rgba(255, 255, 255, .9);
  cursor: pointer;
  user-select: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.nav a:hover, .btn:hover {
  transform: translateY(-2px);
  border-color: rgba(191, 120, 120, .38);
  background: linear-gradient(180deg, #fffdf8, #f1eadf);
  box-shadow: 0 14px 28px rgba(55, 55, 55, .14), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.nav a:active, .btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(55, 55, 55, .08), inset 0 2px 5px rgba(55, 55, 55, .14);
}
.nav a:focus-visible, .btn:focus-visible {
  outline: 3px solid rgba(221, 101, 98, .34);
  outline-offset: 3px;
}
.nav .nav-primary {
  background: linear-gradient(180deg, var(--green), #2c4324);
  border-color: rgba(32, 51, 24, .7);
  color: var(--cream);
  box-shadow: 0 12px 24px rgba(32, 51, 24, .24), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.nav .nav-primary:hover {
  background: linear-gradient(180deg, #2c4324, var(--green));
  border-color: rgba(32, 51, 24, .82);
  color: #fff;
  box-shadow: 0 16px 32px rgba(32, 51, 24, .3), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.nav .nav-primary:active {
  box-shadow: 0 5px 12px rgba(32, 51, 24, .2), inset 0 2px 6px rgba(0, 0, 0, .24);
}
.section { margin-top: 34px; }
.title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.title h2 { margin: 0; color: var(--green); font-size: clamp(24px, 3vw, 34px); line-height: 1.18; }
.small { color: var(--brick); font-size: 14px; font-weight: 900; letter-spacing: .06em; white-space: nowrap; }
.card { padding: 26px; }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.priority-grid { align-items: stretch; }
.mini { position: relative; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .76); padding: 20px 18px; overflow: hidden; }
.mini::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--sage); }
.mini.red::before { background: var(--red); }
.mini.green::before { background: var(--green); }
.mini.brick::before { background: var(--brick); }
.mini.pink::before { background: var(--pink); }
.mini h3 { margin: 0 0 8px; color: var(--green); font-size: 18px; line-height: 1.35; }
.mini p, .mini li { color: var(--gray); font-size: 14px; }
.mini ul { margin: 8px 0 0; padding-left: 18px; }
.priority-card {
  border-color: rgba(191, 120, 120, .34);
  background: linear-gradient(180deg, rgba(255, 250, 245, .96), rgba(248, 244, 237, .9));
  box-shadow: 0 16px 34px rgba(191, 120, 120, .16), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.priority-card::before {
  height: 6px;
  background: var(--brick);
}
.priority-card h3 { font-size: 20px; }
.detail-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.detail-block strong {
  display: block;
  color: var(--green);
  font-size: 14px;
  margin-bottom: 4px;
}
.detail-block p { margin: 2px 0; }
.detail-block ol {
  margin: 6px 0 0;
  padding-left: 20px;
  color: var(--gray);
  font-size: 14px;
}
.meta { font-size: 13px; color: var(--brick); font-weight: 900; }
.pill { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: var(--cream); background: var(--green); font-size: 13px; font-weight: 900; margin-bottom: 12px; }
.flow { display: grid; gap: 12px; }
.flow.compact { margin-top: 14px; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .74); }
.dot { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 999px; background: var(--red); color: var(--cream); font-size: 13px; font-weight: 900; }
.dot.green { background: var(--green); }
.dot.gray { background: var(--gray); }
.step strong { display: block; color: var(--green); margin-bottom: 3px; }
.step span { color: var(--gray); font-size: 14px; }
.warning { margin-top: 10px; border-radius: var(--r); padding: 30px; color: var(--cream); background: linear-gradient(135deg, var(--red), var(--brick)); box-shadow: 0 20px 44px rgba(191, 120, 120, .2); }
.warning h2 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 38px); line-height: 1.15; }
.warning p { margin: 0; color: rgba(255, 250, 245, .92); }
.footer { max-width: var(--max); margin: auto; padding: 0 24px 42px; color: rgba(89, 87, 87, .82); font-size: 13px; text-align: center; }
.checklist input, .checklist-item input { width: 1.05em; height: 1.05em; margin-right: 8px; accent-color: var(--green); }
.checklist label, .checklist-item label { cursor: pointer; }

@media (max-width: 980px) {
  .hero, .grid5, .grid3, .grid2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 30px 16px 54px; }
  .hero-card, .principle, .card, .warning { border-radius: 22px; padding: 24px; }
  .title { display: block; }
  .small { display: block; margin-top: 4px; white-space: normal; }
  .nav { gap: 12px; }
  .nav a { width: 100%; min-height: 48px; justify-content: center; }
}

@media print {
  body { background: #fff; }
  .nav { display: none; }
  .wrap { max-width: none; padding: .5cm; }
  .card, .hero-card, .principle, .mini, .warning { box-shadow: none; break-inside: avoid; }
  .principle, .warning { color: #111; background: #fff; border: 2px solid #111; }
}
