:root {
  color-scheme: light;
  --ink: #10202a;
  --muted: #5c6a73;
  --line: #dce5e9;
  --paper: #f6f8f7;
  --white: #ffffff;
  --teal: #0b7a75;
  --teal-dark: #075552;
  --gold: #d99a21;
  --red: #b5534d;
  --graphite: #16262f;
  --shadow: 0 18px 45px rgba(16, 32, 42, 0.12);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 229, 233, 0.88);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--graphite);
  color: var(--white);
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--gold);
  color: var(--ink);
}

.nav-cta,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  padding: 10px 16px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(11, 122, 117, 0.2);
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero {
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: center;
  position: relative;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 19, 25, 0.96) 0%, rgba(8, 19, 25, 0.78) 34%, rgba(8, 19, 25, 0.38) 68%, rgba(8, 19, 25, 0.2) 100%),
    url("assets/seo-hero.png") center / cover no-repeat;
}

.hero-inner,
.section-inner,
.page-hero-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  width: min(650px, 100%);
  padding: 54px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #a7d7d4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
  max-width: 11em;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
}

h3 {
  font-size: 21px;
}

.hero p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  max-width: 630px;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(680px, 100%);
  margin-top: 48px;
}

.metric {
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 14px;
}

.metric strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.section {
  padding: 76px 0;
}

.section.white {
  background: var(--white);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.section-head p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
}

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

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

.card {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(16, 32, 42, 0.05);
}

.card p {
  color: var(--muted);
}

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

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f9fbfb;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.planner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: stretch;
}

.tool-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}

.field-group {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.tool-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.keyword-output {
  display: grid;
  gap: 12px;
}

.keyword-row {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.7fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px 14px;
}

.keyword-row strong {
  font-size: 15px;
}

.keyword-row span {
  color: var(--muted);
  font-size: 13px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(16, 32, 42, 0.06);
}

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

.comparison-table th {
  background: var(--graphite);
  color: var(--white);
  font-size: 14px;
}

.comparison-table td {
  color: var(--muted);
}

.comparison-table strong {
  color: var(--ink);
}

.page-hero {
  background: var(--graphite);
  color: var(--white);
  padding: 74px 0 58px;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

.article-layout {
  display: grid;
  grid-template-columns: 0.72fr 0.28fr;
  gap: 28px;
  align-items: start;
}

.article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 34px;
}

.article h2 {
  margin-top: 36px;
  font-size: 30px;
}

.article h2:first-child {
  margin-top: 0;
}

.article p,
.article li {
  color: var(--muted);
}

.sidebar {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 20px;
}

.sidebar a {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
  font-size: 14px;
}

.sidebar a:last-child {
  border-bottom: 0;
}

.cta-band {
  background: var(--teal-dark);
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 30px 0;
  color: var(--muted);
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .nav {
    height: auto;
    padding: 12px 0;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 760px;
    background-position: 58% center;
  }

  .hero-copy {
    padding-top: 44px;
  }

  .hero-metrics,
  .grid,
  .grid.two,
  .planner,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .keyword-row {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .article {
    padding: 24px;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 690px;
  }

  .hero-actions,
  .tool-actions {
    display: grid;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .section {
    padding: 54px 0;
  }
}
