:root {
  --cream: #fffaf3;
  --paper: #ffffff;
  --ink: #28231f;
  --muted: #716a63;
  --orange: #a94322;
  --orange-soft: #fff0df;
  --blue: #45649d;
  --blue-soft: #edf3ff;
  --green: #28745a;
  --green-soft: #e4f3ec;
  --line: #e9dfd3;
  --content: 1080px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, 'Noto Sans TC', 'PingFang TC', system-ui, sans-serif;
  line-height: 1.7;
}
a {
  color: var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
code,
pre {
  font-family: 'SFMono-Regular', Consolas, monospace;
}
.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.94);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}
.brand,
.nav-link,
.locale-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--paper);
  background: var(--orange);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}
.nav-link,
.locale-link {
  padding-inline: 10px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  transition:
    color 160ms ease,
    background 160ms ease;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
  background: var(--orange-soft);
}
.nav-link[aria-current='page'] {
  color: var(--ink);
  font-weight: 750;
}
.locale-link {
  color: var(--blue);
  font-weight: 700;
}
.locale-link:hover,
.locale-link:focus-visible {
  color: var(--paper);
  background: var(--blue);
}
.hero,
.story-hero {
  padding: 90px 0 68px;
}
.hero:not(.story-hero) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 16%, rgba(69, 100, 157, 0.14), transparent 21rem),
    radial-gradient(circle at 79% 88%, rgba(169, 67, 34, 0.12), transparent 18rem),
    linear-gradient(125deg, var(--cream), #fff5e9);
}
.hero:not(.story-hero)::before,
.hero:not(.story-hero)::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}
.hero:not(.story-hero)::before {
  width: 18rem;
  height: 18rem;
  top: -11rem;
  right: max(4vw, calc((100vw - var(--content)) / 2));
  border: 1px solid rgba(169, 67, 34, 0.18);
  box-shadow: 0 0 0 2.3rem rgba(169, 67, 34, 0.04);
}
.hero:not(.story-hero)::after {
  width: 7rem;
  height: 7rem;
  right: 8%;
  bottom: -3rem;
  border: 16px solid rgba(69, 100, 157, 0.12);
}
.hero:not(.story-hero) .container {
  position: relative;
}
.hero:not(.story-hero) .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 11px;
  border: 1px solid #f0c9af;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.75);
}
.story-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 8%, rgba(169, 67, 34, 0.16), transparent 28rem),
    linear-gradient(120deg, var(--cream), #fff4e4);
}
.story-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}
.story-hero-copy .lead {
  max-width: 630px;
}
.story-hero-art {
  position: relative;
  margin: 0;
}
.story-hero-art::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 7% -7% -7% 12%;
  border: 1px solid rgba(69, 100, 157, 0.18);
  border-radius: 28px;
  transform: rotate(3deg);
}
.story-hero-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10.4;
  border: 1px solid rgba(40, 35, 31, 0.1);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 22px 54px rgba(80, 52, 29, 0.2);
}
.story-hero-art figcaption {
  position: relative;
  z-index: 2;
  width: min(88%, 410px);
  margin: -25px 0 0 auto;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  line-height: 1.55;
  box-shadow: 0 10px 22px rgba(80, 52, 29, 0.1);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  line-height: 1.17;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.55rem, 6vw, 4.8rem);
}
.lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.85;
  text-wrap: pretty;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  color: var(--paper);
  background: var(--orange);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(117, 47, 26, 0.2);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}
.button:hover,
.button:focus-visible {
  color: var(--paper);
  background: #8d351b;
  box-shadow: 0 8px 0 rgba(117, 47, 26, 0.14);
  transform: translateY(-2px);
}
.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
  box-shadow: 0 5px 0 rgba(40, 35, 31, 0.07);
}
.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--ink);
  background: var(--orange-soft);
}
.section {
  padding: 74px 0;
}
.section-paper {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
}
.section-heading p:last-child {
  color: var(--muted);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.guide-card,
.step,
.boundary,
.next-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.guide-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}
.guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), #e49a57);
  opacity: 0;
  transition: opacity 180ms ease;
}
.guide-card:hover,
.guide-card:focus-within {
  border-color: #dcc6b2;
  box-shadow: 0 14px 32px rgba(66, 44, 28, 0.1);
  transform: translateY(-4px);
}
.guide-card:hover::before,
.guide-card:focus-within::before {
  opacity: 1;
}
.guide-card h2,
.step h3,
.boundary h2,
.next-card h2 {
  margin-top: 0;
}
.guide-card p,
.step p,
.boundary p,
.next-card p {
  color: var(--muted);
}
.tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--orange);
  background: var(--orange-soft);
  font-size: 0.78rem;
  font-weight: 800;
}
.guide-card a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 4px;
  padding: 7px 13px;
  border: 1px solid #cbd8f0;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    color 160ms ease,
    background 160ms ease;
}
.guide-card a:hover,
.guide-card a:focus-visible {
  color: var(--paper);
  background: var(--blue);
  transform: translateY(-2px);
}
.choice-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 12px;
}
.choice-card {
  position: relative;
  min-height: 238px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.choice-card--dbcli {
  border: 2px solid var(--orange);
  background: var(--orange-soft);
}
.choice-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 13px;
  color: var(--paper);
  background: var(--blue);
  font-size: 1.15rem;
  font-weight: 850;
}
.choice-card--mcp .choice-symbol {
  background: var(--green);
}
.choice-card--dbcli .choice-symbol {
  background: var(--orange);
}
.choice-card h3 {
  margin: 0 0 9px;
}
.choice-card p {
  margin: 0;
  color: var(--muted);
}
.choice-card strong {
  color: var(--ink);
}
.choice-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.upgrade-path {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 28px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--blue-soft);
}
.upgrade-path p {
  margin: 0;
}
.upgrade-path .eyebrow {
  margin-bottom: 5px;
}
.upgrade-arrow {
  color: var(--blue);
  font-size: 1.8rem;
  font-weight: 850;
}
.contrast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.contrast-panel {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.contrast-panel--direct {
  background: #fbfbfa;
}
.contrast-panel--dbcli {
  border: 2px solid var(--orange);
  background: linear-gradient(145deg, var(--orange-soft), #fff9f0);
}
.contrast-panel h3 {
  margin: 0 0 14px;
  font-size: 1.36rem;
}
.contrast-panel p:not(.eyebrow) {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 0.96rem;
}
.contrast-panel p:last-child {
  margin-bottom: 0;
}
.article {
  max-width: 790px;
}
.article h2 {
  margin: clamp(3.7rem, 8vw, 5.5rem) 0 0.9rem;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  scroll-margin-top: 28px;
}
.article p,
.article li {
  font-size: 1.03rem;
}
.article > p {
  max-inline-size: 66ch;
  margin-block: 1.35rem;
  line-height: 1.9;
  text-wrap: pretty;
}
.article > h2 + p {
  margin-top: 0;
}
.article > p + p {
  margin-top: 1.7rem;
}
.article > .problem + p {
  margin-top: 2rem;
}
.article > figure,
.article > .workflow,
.article > .contrast-grid {
  margin-top: 1.8rem;
}
.choice-caption {
  max-inline-size: 66ch;
  line-height: 1.75;
}
.article a:not(.button) {
  padding: 0 0.12em 0.06em;
  border-bottom: 2px solid rgba(69, 100, 157, 0.55);
  color: #2d528e;
  background: linear-gradient(to top, rgba(173, 202, 248, 0.52) 0 38%, transparent 38%);
  font-weight: 800;
  text-decoration: none;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}
.article a:not(.button):hover,
.article a:not(.button):focus-visible {
  border-color: var(--blue);
  color: #173b73;
  background: var(--blue-soft);
}
.problem {
  padding: 24px 28px;
  border-left: 5px solid var(--orange);
  border-radius: 0 16px 16px 0;
  background: var(--orange-soft);
  box-shadow: inset 0 0 0 1px rgba(169, 67, 34, 0.08);
}
.story-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 10px;
}
.story-moment {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--paper), #fffaf5);
}
.story-moment:nth-child(2) {
  border-color: #ead8c3;
  background: #fff7eb;
}
.story-moment:nth-child(3) {
  border-color: #d9e4f6;
  background: #f5f8ff;
}
.story-time {
  margin: 0 0 11px;
  color: var(--orange);
  font-size: 0.76rem !important;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.story-moment h3 {
  margin: 0 0 8px;
  font-size: 1.13rem;
}
.story-moment p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}
.workflow {
  display: grid;
  gap: 14px;
  counter-reset: workflow;
}
.step {
  position: relative;
  padding-left: 74px;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}
.step:hover,
.step:focus-within {
  border-color: #d5c1ad;
  box-shadow: 0 12px 26px rgba(66, 44, 28, 0.08);
  transform: translateY(-2px);
}
.step::before {
  content: counter(workflow, decimal-leading-zero);
  position: absolute;
  display: grid;
  width: 32px;
  height: 32px;
  top: 25px;
  left: 25px;
  place-items: center;
  border-radius: 10px;
  color: var(--paper);
  background: var(--orange);
  box-shadow: 0 4px 0 rgba(169, 67, 34, 0.16);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  counter-increment: workflow;
}
.step h3 {
  margin-bottom: 8px;
}
.step p {
  max-inline-size: 65ch;
  margin: 0;
  line-height: 1.8;
}
.command {
  margin: 16px 0 0;
  padding: 17px;
  border-radius: 12px;
  overflow-x: auto;
  color: #fffaf3;
  background: #2d2926;
  font-size: 0.84rem;
  line-height: 1.75;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.boundary {
  position: relative;
  overflow: hidden;
  margin-top: 36px;
  padding: 25px 28px 26px 34px;
  border-color: #d8e7df;
  background: #fffefc;
  box-shadow: none;
}
.boundary::before,
.next-card::before {
  content: '';
  position: absolute;
  top: 21px;
  bottom: 21px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
}
.boundary::before {
  background: var(--green);
}
.next-card {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  padding: 25px 28px 26px 34px;
  border-color: #dae2f0;
  background: #fffefc;
  box-shadow: none;
}
.next-card::before {
  background: var(--blue);
}
.article .boundary h2,
.article .next-card h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.3rem, 2.4vw, 1.62rem);
  letter-spacing: -0.02em;
}
.article .boundary p,
.article .next-card p {
  margin: 0;
  max-inline-size: 66ch;
  font-size: 0.98rem;
  line-height: 1.75;
  text-wrap: pretty;
}
.article .boundary p + p,
.article .next-card p + p {
  margin-top: 0.85rem;
}
.next-card a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 1px 7px;
  border: 1px solid #c9d8f1;
  border-radius: 7px;
  color: #274c87 !important;
  background: #f4f7fc !important;
  font-weight: 800;
  line-height: 1.35;
}
.next-card a:hover,
.next-card a:focus-visible {
  border-color: var(--blue);
  color: var(--paper) !important;
  background: var(--blue) !important;
}
.footer {
  padding: 38px 0;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  transition:
    color 160ms ease,
    background 160ms ease;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
  background: var(--orange-soft);
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .locale-link {
    margin-left: auto;
  }
  .hero,
  .story-hero {
    padding: 64px 0 50px;
  }
  .story-hero-grid,
  .contrast-grid,
  .story-timeline {
    grid-template-columns: 1fr;
  }
  .story-hero-art {
    max-width: 560px;
    margin-inline: auto;
  }
  .hero:not(.story-hero)::before {
    width: 12rem;
    height: 12rem;
    top: -8rem;
    right: -2rem;
  }
  .hero:not(.story-hero)::after {
    right: 3%;
  }
  .guide-card,
  .step,
  .next-card,
  .contrast-panel {
    padding: 22px;
  }
  .boundary,
  .next-card {
    padding: 22px 22px 22px 30px;
  }
  .problem {
    padding: 20px 22px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .choice-map {
    grid-template-columns: 1fr;
  }
  .choice-card {
    min-height: 0;
  }
  .upgrade-path {
    grid-template-columns: 1fr;
  }
  .upgrade-arrow {
    transform: rotate(90deg);
  }
  .step {
    padding-left: 66px;
  }
  .step::before {
    top: 20px;
    left: 20px;
  }
  .command {
    margin-left: -44px;
    padding: 14px;
    font-size: 0.78rem;
  }
  .container {
    width: min(calc(100% - 28px), var(--content));
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
