:root {
  --ink: #172033;
  --muted: #5e6b80;
  --line: #d8e0ea;
  --panel: #ffffff;
  --blue: #2563eb;
  --teal: #0f9f94;
  --green: #16815f;
  --red: #d94747;
  --amber: #b87516;
  --bg: #f5f7fb;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", system-ui, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(23, 32, 51, .1);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  max-width: 1160px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #172033;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lang-switch a {
  min-width: 40px;
  padding: 8px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lang-switch a + a {
  border-left: 1px solid var(--line);
}

.lang-switch a.active,
.lang-switch a:hover {
  background: var(--blue);
  color: #fff;
}

.nav-links a,
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 9px 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  background: #edf2f7;
  color: var(--ink);
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #0f1725;
  color: #fff;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 18, 31, .94) 0%, rgba(12, 18, 31, .78) 34%, rgba(12, 18, 31, .2) 72%),
    linear-gradient(180deg, rgba(12, 18, 31, .12) 0%, rgba(12, 18, 31, .72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 130px 24px 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #a8f4e8;
  font-size: 14px;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: #3ee0c8;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 56px;
  line-height: 1.08;
}

.hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: #dce8f7;
  font-size: 19px;
  line-height: 1.75;
}

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

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 76px 24px;
}

.section-title {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-title h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
}

.section-title p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

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

.item {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
}

.item.visual {
  overflow: hidden;
  padding: 0;
}

.item.visual img,
.feature-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  background: #dce4ef;
}

.item.visual img {
  object-fit: cover;
}

.feature-media {
  background-position: center;
  background-size: cover;
}

.item.visual .item-body {
  padding: 22px;
}

.feature-showcase {
  gap: 22px;
}

.feature-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .28);
  box-shadow: 0 14px 34px rgba(23, 32, 51, .1);
}

.feature-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  margin-bottom: 12px;
  padding: 5px 10px;
  background: #edf6ff;
  color: #1f5fbf;
  font-size: 12px;
  font-weight: 800;
}

.item h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.item p,
.item li {
  color: var(--muted);
  line-height: 1.72;
}

.item ul,
.docs-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metric {
  background: #fff;
  padding: 22px;
}

.metric strong {
  display: block;
  color: var(--blue);
  font-size: 28px;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

.band {
  background: #111b2b;
  color: #fff;
}

.band .section-title p,
.band .item p,
.band .item li {
  color: #c8d4e4;
}

.band .item {
  border-color: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .055);
}

.visual-strip {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: stretch;
}

.visual-strip img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 8px;
}

.visual-strip .item {
  min-height: 320px;
}

.flow {
  counter-reset: step;
}

.flow .item {
  position: relative;
  padding-left: 70px;
}

.flow .item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 22px;
  left: 24px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.docs-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.docs-hero .section {
  padding-top: 58px;
  padding-bottom: 44px;
}

.docs-hero h1 {
  margin: 0;
  font-size: 42px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.fact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.fact span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

pre {
  overflow-x: auto;
  border-radius: 8px;
  background: #111827;
  color: #e5edf7;
  padding: 18px;
  line-height: 1.65;
}

code {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 14px;
}

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

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

th {
  background: #eef3f8;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer .section {
  padding-top: 28px;
  padding-bottom: 28px;
  color: var(--muted);
}

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

  .hero h1 {
    font-size: 40px;
  }

  .grid.three,
  .grid.two,
  .visual-strip,
  .metric-strip,
  .facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-content {
    padding: 98px 18px 72px;
  }

  .hero h1,
  .docs-hero h1 {
    font-size: 32px;
  }

  .section {
    padding: 54px 18px;
  }
}
