:root {
  color-scheme: light;
  --forest: #1f4d3a;
  --forest-2: #2f6a50;
  --ivory: #fff8ea;
  --paper: #fffdf7;
  --gray: #edf0eb;
  --ink: #17231d;
  --muted: #5f6d63;
  --gold: #d7aa55;
  --line: rgba(31, 77, 58, 0.18);
  --shadow: 0 24px 60px rgba(31, 77, 58, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Noto Sans TC", "Inter", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  font-size: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 248, 234, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-link,
.menu-toggle {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  color: var(--forest);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--forest);
  color: var(--ivory);
  font-family: "Inter", sans-serif;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  gap: 10px;
}

.nav-link:hover {
  background: rgba(31, 77, 58, 0.08);
  color: var(--forest);
}

.has-menu {
  gap: 12px;
}

.caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid currentColor;
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--forest);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--forest);
  content: "";
}

.menu-lines::before {
  transform: translateY(-6px);
}

.menu-lines::after {
  transform: translateY(4px);
}

.section-pad {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 77px);
  padding-top: 48px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--forest-2);
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.08;
  color: var(--forest);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.18;
  color: var(--forest);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.3;
  color: var(--forest);
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 18px;
}

.lead {
  max-width: 680px;
  font-size: clamp(20px, 2vw, 24px);
  color: #35463b;
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 22px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.button.primary {
  background: var(--forest);
  color: var(--ivory);
  box-shadow: 0 12px 28px rgba(31, 77, 58, 0.22);
}

.button.secondary {
  background: var(--paper);
  color: var(--forest);
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.hero-art {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 780px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plain-card,
.quiz-panel,
.result-panel,
.report-card,
.lead-box,
.support-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.78);
  box-shadow: 0 18px 36px rgba(31, 77, 58, 0.08);
}

.plain-card {
  padding: 26px;
}

.card-number {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--gold);
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.process {
  background: var(--paper);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.process-layout img {
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: var(--shadow);
}

.path-steps {
  display: grid;
  gap: 16px;
}

.path-steps div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.path-steps strong {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--ivory);
  font-family: "Inter", sans-serif;
  font-size: 26px;
}

.path-steps span {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.lab {
  background: linear-gradient(180deg, var(--ivory), #f2f1e6);
}

.explorer {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 24px;
  align-items: start;
}

.quiz-panel,
.result-panel {
  padding: 26px;
}

.quiz-panel {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--forest);
  font-size: 18px;
  font-weight: 800;
}

select,
input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 14px;
}

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

.recommendation {
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.recommendation header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.score {
  color: var(--forest);
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  border-radius: 999px;
  background: rgba(215, 170, 85, 0.16);
  color: #6b4a14;
  padding: 6px 12px;
  font-size: 18px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 18px;
  vertical-align: top;
}

th {
  background: rgba(31, 77, 58, 0.08);
  color: var(--forest);
  font-weight: 800;
}

td:first-child {
  color: var(--forest);
  font-weight: 800;
}

.report {
  background: var(--forest);
}

.report-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 24px;
  padding: clamp(28px, 5vw, 52px);
  background: var(--ivory);
}

.price-box {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 24px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.price-box span {
  color: var(--muted);
  font-size: 18px;
}

.price-box strong {
  color: var(--forest);
  font-family: "Inter", sans-serif;
  font-size: 32px;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
}

.support-list {
  display: grid;
  gap: 18px;
}

.support-list article {
  padding: 26px;
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.principles span {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 8px 16px;
  color: var(--forest);
  font-size: 18px;
  font-weight: 800;
}

.lead-capture {
  padding-top: 40px;
}

.lead-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
}

.email-form {
  display: grid;
  gap: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-footer strong,
.site-footer a {
  color: var(--forest);
  font-size: 18px;
  font-weight: 800;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    justify-content: space-between;
    border-radius: 8px;
  }

  .hero,
  .process-layout,
  .explorer,
  .report-card,
  .split,
  .lead-box {
    grid-template-columns: 1fr;
  }

  .card-grid.three,
  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .problem .card-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand span:last-child {
    max-width: 210px;
    white-space: normal;
    line-height: 1.25;
  }

  .section-pad {
    padding: 56px 18px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .card-grid.three,
  .card-grid.four {
    grid-template-columns: 1fr;
  }

  .path-steps div {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
  }

  .path-steps strong {
    width: 48px;
    height: 48px;
  }

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

.cms-custom-section {
  background: var(--paper);
}

.cms-custom-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  max-width: 1180px;
  margin: 0 auto;
}

.cms-custom-body {
  max-width: 700px;
  margin: 20px 0 28px;
  font-size: 20px;
  line-height: 1.8;
}

.cms-custom-inner > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 760px) {
  .cms-custom-inner {
    grid-template-columns: 1fr;
  }
}
