@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+TC:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f8f3ea;
  --card: #fffaf2;
  --text: #2f2a24;
  --muted: #5f5348;
  --line: #ddcbb4;
  --primary: #2f6b46;
  --primary-dark: #235437;
  --primary-soft: #e6f4df;
  --warn-soft: #fff8e8;
  --warn: #6f4b0d;
  --shadow: 0 18px 50px rgba(80, 54, 24, .13);
  --focus: 0 0 0 3px rgba(47, 107, 70, .18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, "Noto Sans TC", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}

a { color: inherit; }

.page {
  min-height: 100vh;
  padding: 20px 16px 44px;
}

.container {
  max-width: 880px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 19px;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.hero,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px 22px;
  margin-bottom: 16px;
}

.home-hero {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
    align-items: center;
  }
}

.card {
  padding: 22px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary-dark);
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1.12;
  margin: 0;
  color: var(--primary-dark);
  font-weight: 800;
}

h2 {
  font-size: 21px;
  margin: 0 0 10px;
  color: var(--primary-dark);
}

h3 {
  font-size: 17px;
  margin: 18px 0 8px;
  color: var(--primary-dark);
}

p,
li {
  line-height: 1.8;
}

.subtitle,
.muted {
  color: var(--muted);
}

.subtitle {
  font-size: 17px;
  margin: 12px 0 0;
  color: #51483f;
  font-weight: 500;
  max-width: 620px;
}

.grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
}

.notice {
  background: var(--warn-soft);
  border: 1px solid #f1d9a8;
  color: var(--warn);
  border-radius: 16px;
  padding: 12px 14px;
  line-height: 1.7;
  font-weight: 600;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn {
  border-radius: 18px;
  padding: 15px 18px;
  font-weight: 700;
  background: var(--primary);
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  box-shadow: 0 10px 24px rgba(35, 84, 55, .18);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.btn.secondary {
  background: white;
  color: var(--primary-dark);
  border: 1.5px solid #b8a58b;
  box-shadow: 0 8px 18px rgba(80, 54, 24, .10);
}

.btn:hover,
.help-card:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.help-card:focus-visible,
.nav a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.flow-panel {
  background: #fffdf8;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 14px 34px rgba(80, 54, 24, .10);
  display: grid;
  gap: 10px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  font-weight: 800;
}

.flow-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: 0 0 auto;
}

.flow-arrow {
  color: #9a866d;
  padding-left: 16px;
}

@media (min-width: 760px) {
  .flow-panel {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .flow-arrow {
    padding-left: 0;
    text-align: center;
  }
}

.section-head {
  margin-bottom: 14px;
}

.section-head p {
  margin: 0;
}

.help-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .help-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.help-card {
  background: #fffdf8;
  border: 1.5px solid #d5bea0;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(80, 54, 24, .09);
  color: var(--text);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 94px;
  padding: 14px;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.help-card:hover {
  border-color: var(--primary);
  box-shadow: 0 14px 34px rgba(80, 54, 24, .14);
}

.help-card b,
.help-card small {
  display: block;
}

.help-card b {
  color: var(--primary-dark);
  font-size: 17px;
}

.help-card small {
  color: var(--muted);
  line-height: 1.55;
  margin-top: 3px;
}

.help-icon {
  width: 52px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.help-card.is-warning {
  border-color: #d89c58;
  background: #fff8ec;
}

.help-card.is-warning .help-icon {
  background: #ffe5bd;
  color: #8a4f00;
}

.card-arrow {
  color: var(--primary-dark);
  font-weight: 800;
}

.footer {
  color: #6c5f52;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 24px;
}

.site-footer {
  background: #efe1cf;
  border: 1.5px solid #c9b494;
  border-radius: 22px;
  padding: 22px;
}

.footer-grid {
  display: grid;
  gap: 10px;
}

.footer-section {
  background: #fffaf2;
  border: 1px solid #d7c1a4;
  border-radius: 16px;
  padding: 12px 14px;
}

.footer-section summary {
  color: #173d28;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
}

.footer-section a,
.footer-section span {
  color: #3f392f;
  display: block;
  line-height: 1.6;
  margin-top: 8px;
  text-decoration: none;
  font-weight: 600;
  text-underline-offset: 3px;
  transition: color .16s ease, text-decoration-color .16s ease;
}

.footer-section a:hover {
  color: #173d28;
  text-decoration: underline;
}

.footer-legal,
.footer-bottom {
  color: #4d4338;
  font-size: 13px;
  line-height: 1.65;
  margin-top: 18px;
  text-align: left;
}

.footer-legal a,
.footer-bottom a {
  color: #173d28;
  font-weight: 800;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-sep {
  color: #8a7356;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-section {
    background: transparent;
    border: 0;
    padding: 0;
  }

  .footer-section summary {
    cursor: default;
    list-style: none;
  }

  .footer-section summary::-webkit-details-marker {
    display: none;
  }
}
