:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #5b655f;
  --line: #dbe3df;
  --paper: #fbfcf8;
  --soft: #eef5ef;
  --green: #2f7656;
  --green-dark: #204d3c;
  --gold: #c49a4f;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(24, 42, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(251, 252, 248, 0.92);
  border-bottom: 1px solid rgba(219, 227, 223, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--green-dark);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 72px));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image,
.hero-overlay,
.hero-content {
  grid-area: 1 / 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(251, 252, 248, 0.96) 0%, rgba(251, 252, 248, 0.84) 39%, rgba(251, 252, 248, 0.2) 74%),
    linear-gradient(0deg, rgba(251, 252, 248, 0.82) 0%, rgba(251, 252, 248, 0) 28%);
}

.hero-content {
  align-self: center;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 82px);
  padding: 78px 0 110px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--green);
  border-radius: 6px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.74);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 104px) 0;
}

.intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 100%;
  max-width: none;
  padding: 0 clamp(18px, 5vw, 64px);
  background: var(--green-dark);
}

.intro-item {
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 28px;
  background: var(--white);
}

.intro-item strong {
  color: var(--green-dark);
  font-size: 20px;
}

.intro-item span {
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 700px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.22;
}

.section-heading p:last-child,
.about-copy p,
.contact p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 250px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(24, 42, 33, 0.06);
}

.service-number {
  display: block;
  margin-bottom: 36px;
  color: var(--gold);
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.35;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.article-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.topic-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 46px;
}

.topic-card {
  display: grid;
  gap: 10px;
  min-height: 178px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(24, 42, 33, 0.05);
}

.topic-card:hover,
.topic-card:focus-visible {
  border-color: rgba(47, 118, 86, 0.44);
  transform: translateY(-1px);
}

.topic-card span,
.topic-heading span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.topic-card h3 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.28;
}

.topic-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.article-topics {
  display: grid;
  gap: 34px;
}

.article-preview {
  display: grid;
  gap: 18px;
}

.article-topic {
  scroll-margin-top: 110px;
}

.topic-description {
  margin: 12px 0 4px;
  color: var(--muted);
}

.topic-heading {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--green-dark);
}

.topic-heading h3 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.35;
}

.article-list {
  display: grid;
  gap: 0;
}

.article-row {
  display: grid;
  grid-template-columns: 112px 1fr 104px;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

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

.article-row:hover h3,
.article-row:hover h4,
.article-row:focus-visible h4,
.article-row:focus-visible h3 {
  color: var(--green);
}

.article-row.empty {
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(238, 245, 239, 0.86), rgba(238, 245, 239, 0));
}

.article-tag {
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.article-row h3,
.article-row h4 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 800;
}

.article-row time {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.article-more {
  justify-self: start;
  margin-top: 8px;
}

.page-hero {
  padding: clamp(68px, 10vw, 118px) clamp(18px, 6vw, 82px);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 760px;
  margin-bottom: 14px;
}

.page-hero p:last-child {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.article-page {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(30px, 6vw, 62px) 0 clamp(42px, 7vw, 78px);
}

.article-page-header {
  padding-bottom: 0;
}

.article-page-header h1 {
  max-width: 720px;
  margin-bottom: 16px;
  color: var(--white);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

.article-page-header time {
  display: block;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--green);
  font-weight: 800;
}

.article-hero-card {
  display: grid;
  gap: 12px;
  padding: clamp(26px, 5vw, 44px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(32, 77, 60, 0.96), rgba(47, 118, 86, 0.88)),
    linear-gradient(45deg, rgba(196, 154, 79, 0.18), rgba(255, 255, 255, 0));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-hero-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.article-body {
  padding: 36px 0 18px;
}

.article-body p {
  color: #2f3934;
  font-size: 19px;
  line-height: 1.95;
}

.article-body h2 {
  margin: 38px 0 12px;
  font-size: clamp(24px, 4vw, 32px);
}

.article-body ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 24px;
  color: #2f3934;
  font-size: 18px;
  line-height: 1.85;
}

.article-highlight {
  margin: 22px 0 28px;
  padding: 20px 22px;
  background: linear-gradient(90deg, rgba(238, 245, 239, 0.95), rgba(255, 255, 255, 0.84));
  border: 1px solid rgba(47, 118, 86, 0.18);
  border-left: 5px solid var(--green);
  border-radius: 8px;
}

.article-highlight span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.article-highlight p {
  margin-bottom: 0;
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.75;
}

.info-panel {
  margin: 22px 0 32px;
  padding: clamp(20px, 4vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(24, 42, 33, 0.06);
}

.info-panel h3 {
  margin-bottom: 18px;
  font-size: clamp(21px, 3vw, 26px);
  line-height: 1.35;
}

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

.stat-item {
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid rgba(47, 118, 86, 0.14);
  border-radius: 8px;
}

.stat-item strong {
  color: var(--green-dark);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
}

.stat-item span {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.stat-item small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.bar-chart {
  display: grid;
  gap: 18px;
}

.bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 76px;
  align-items: center;
  gap: 14px;
}

.bar-row span,
.bar-row strong {
  font-weight: 900;
}

.bar-row strong {
  color: var(--green-dark);
  text-align: right;
}

.bar-track {
  height: 18px;
  overflow: hidden;
  background: var(--soft);
  border-radius: 999px;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: inherit;
}

.chart-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.process-step {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: var(--soft);
  border: 1px solid rgba(47, 118, 86, 0.14);
  border-radius: 8px;
}

.process-step span {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 32px;
  color: var(--white);
  background: var(--green);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.process-step h4 {
  margin: 4px 0 0;
  font-size: 20px;
}

.process-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.pillar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: end;
  margin-top: 14px;
  padding: clamp(20px, 4vw, 38px) clamp(12px, 3vw, 24px) 12px;
}

.pillar-group {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.pillar-group h4 {
  order: 2;
  margin: 0;
  color: #3f4541;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.pillar-arrow {
  display: grid;
  place-items: center;
  align-self: center;
  width: 42px;
  height: 42px;
  color: var(--green-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(24, 42, 33, 0.08);
}

.pillar-arrow span {
  display: block;
  transform: translateY(-1px);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.pillar-stack {
  order: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 430px;
  align-content: end;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.pillar-layer {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 128px;
  padding: 18px 28px;
  color: var(--white);
  text-align: center;
  border-radius: 0;
  box-shadow: none;
}

.pillar-layer.personal {
  background: #ef4d51;
}

.pillar-layer.company {
  background: #f4c22b;
}

.pillar-layer.government {
  background: #4faa48;
}

.pillar-stack.past .pillar-layer.personal {
  width: 52%;
  min-height: 160px;
  padding-top: 62px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.pillar-stack.past .pillar-layer.company {
  width: 74%;
  min-height: 132px;
  clip-path: polygon(11% 0, 89% 0, 100% 100%, 0 100%);
}

.pillar-stack.past .pillar-layer.government {
  width: 100%;
  min-height: 132px;
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
}

.pillar-stack.future .pillar-layer.personal {
  width: 100%;
  min-height: 132px;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
}

.pillar-stack.future .pillar-layer.company {
  width: 74%;
  min-height: 132px;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
}

.pillar-stack.future .pillar-layer.government {
  width: 52%;
  min-height: 160px;
  align-content: start;
  padding-top: 34px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.pillar-layer strong {
  width: 100%;
  max-width: 100%;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.18;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: normal;
}

.pillar-layer span {
  display: none;
}

.pillar-shift > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.pillar-shift {
  overflow: hidden;
}

.pillar-image {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 4px auto 0;
  object-fit: contain;
}

.table-scroll {
  overflow-x: auto;
}

.table-panel table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 16px;
}

.table-panel th,
.table-panel td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.table-panel th {
  color: var(--green-dark);
  background: var(--soft);
  font-weight: 900;
}

.table-panel td:first-child {
  color: var(--green-dark);
  font-weight: 900;
  white-space: nowrap;
}

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

.link-grid a {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid rgba(47, 118, 86, 0.14);
  border-radius: 8px;
}

.link-grid a:hover,
.link-grid a:focus-visible {
  border-color: rgba(47, 118, 86, 0.42);
}

.link-grid strong {
  color: var(--green-dark);
  font-size: 18px;
}

.link-grid span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.article-cta,
.article-not-found {
  margin-top: 28px;
  padding: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-cta h2,
.article-not-found h1 {
  margin-bottom: 12px;
  font-size: clamp(26px, 4vw, 36px);
}

.article-cta p,
.article-not-found p {
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 68px);
  align-items: start;
}

.about-copy p {
  font-size: 17px;
}

.about-panel {
  padding: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.about-panel h3 {
  margin-bottom: 16px;
  font-size: 22px;
}

.about-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(42px, 8vw, 74px) clamp(18px, 6vw, 82px);
  color: var(--white);
  background: var(--green-dark);
}

.contact .eyebrow,
.contact p {
  color: rgba(255, 255, 255, 0.78);
}

.contact h2 {
  max-width: 680px;
  margin-bottom: 12px;
}

.contact p {
  max-width: 640px;
  margin-bottom: 0;
}

.contact .button.secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.58);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 64px);
  color: var(--muted);
  font-size: 14px;
}

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

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    min-height: 680px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(251, 252, 248, 0.96) 0%, rgba(251, 252, 248, 0.9) 56%, rgba(251, 252, 248, 0.28) 100%);
  }

  .hero-content {
    align-self: end;
    margin: 0 auto;
    padding: 250px 0 56px;
  }

  h1 {
    font-size: 38px;
  }

  .intro,
  .service-grid,
  .topic-menu,
  .stat-grid,
  .process-grid,
  .link-grid,
  .about {
    grid-template-columns: 1fr;
  }

  .pillar-layout {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .pillar-arrow {
    justify-self: center;
  }

  .pillar-arrow span {
    transform: rotate(90deg) translateX(-1px);
  }

  .service-card {
    min-height: auto;
  }

  .service-number {
    margin-bottom: 22px;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .topic-heading {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .article-page-header h1 {
    font-size: 30px;
  }

  .article-hero-card {
    padding: 24px;
  }

  .bar-row {
    grid-template-columns: 54px 1fr 66px;
    gap: 10px;
  }

  .pillar-stack {
    min-height: 300px;
    padding-inline: 10px;
  }

  .pillar-stack.past .pillar-layer.personal,
  .pillar-stack.future .pillar-layer.government {
    width: 78%;
  }

  .pillar-stack.past .pillar-layer.company,
  .pillar-stack.future .pillar-layer.company {
    width: 78%;
  }

  .article-row time {
    text-align: left;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .intro {
    padding: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}
