:root {
  --canopy: #245941;
  --canopy-dark: #16392c;
  --leaf: #4d8a61;
  --moss: #dce9dc;
  --sky: #e7f1f4;
  --sun: #f1b853;
  --ink: #17231d;
  --muted: #52655b;
  --soft: #f7f8f4;
  --paper: #ffffff;
  --line: #d7e1d8;
  --warning: #7a461f;
  --warning-bg: #f8e3d3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 5vw, 60px);
  background: rgba(247, 248, 244, 0.94);
  border-bottom: 1px solid rgba(215, 225, 216, 0.85);
  backdrop-filter: blur(14px);
}

.brand,
.nav a,
.button,
.source-link {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--canopy-dark);
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--canopy);
  font-size: 17px;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav a:hover {
  color: var(--canopy-dark);
  border-color: var(--line);
  background: #fff;
}

.hero {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 60px) clamp(42px, 6vw, 80px);
  background: linear-gradient(135deg, var(--canopy-dark), var(--canopy) 58%, #486f52);
  color: #fff;
}

.hero-inner,
.section-inner,
.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: #ffe2a5;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-weight: 900;
}

.button.primary {
  color: var(--canopy-dark);
  background: #fff;
  border-color: #fff;
}

section {
  padding: clamp(42px, 7vw, 74px) clamp(18px, 5vw, 60px);
}

.section-title {
  margin: 0 0 10px;
  color: var(--canopy-dark);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-copy {
  max-width: 780px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1rem;
}

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

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

.panel h3 {
  margin: 0 0 8px;
  color: var(--canopy-dark);
  font-size: 1.1rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--canopy-dark);
  background: var(--moss);
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.badge.warn {
  color: var(--warning);
  background: var(--warning-bg);
}

.source-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.source-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.source-table th,
.source-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.94rem;
}

.source-table th {
  color: var(--canopy-dark);
  background: var(--sky);
  font-weight: 900;
  white-space: nowrap;
}

.source-table tr:last-child td {
  border-bottom: 0;
}

.source-link {
  color: var(--canopy);
  font-weight: 900;
}

.next-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.next-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--leaf);
  background: #fff;
}

.site-footer {
  padding: 22px clamp(18px, 5vw, 60px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .source-table,
  .source-table tbody,
  .source-table tr,
  .source-table td {
    display: block;
    width: 100%;
  }

  .source-table thead {
    display: none;
  }

  .source-table tr {
    border-bottom: 1px solid var(--line);
  }

  .source-table td {
    border-bottom: 0;
    padding: 8px 12px;
  }

  .source-table td:first-child {
    padding-top: 14px;
    color: var(--canopy-dark);
    font-weight: 900;
  }

  .source-table td:last-child {
    padding-bottom: 14px;
  }
}
