:root {
  color-scheme: light;
  --ink: #17191d;
  --ink-soft: #30343b;
  --muted: #6c726b;
  --line: #e3e5df;
  --line-strong: #cfd3ca;
  --page: #f4f5f1;
  --surface: #ffffff;
  --surface-soft: #fafbf7;
  --lime: #def68e;
  --lime-deep: #cdeb6d;
  --sky: #c8e6fb;
  --coral: #f4a18c;
  --yellow: #ffe19b;
  --mint: #b9e8d8;
  --shadow: 0 18px 48px rgba(23, 25, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--surface);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family:
    "Aptos Display",
    "Segoe UI Variable",
    "Aptos",
    "Microsoft YaHei UI",
    "PingFang SC",
    sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(68, 136, 255, 0.35);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.content-page {
  overflow-x: hidden;
}

.content-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.content-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto auto;
  min-height: 72px;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.content-brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 760;
  text-decoration: none;
}

.content-brand img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.content-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.content-nav-label {
  margin-right: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.language-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.language-link:hover,
.language-link.is-active {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink);
}

.content-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.content-cta:hover {
  border-color: #34383f;
  background: #34383f;
  transform: translateY(-1px);
}

.content-cta-compact {
  min-height: 38px;
  padding: 0 14px;
  background: var(--lime);
  border-color: #afcf6b;
  color: #24330d;
}

.content-cta-compact:hover {
  background: var(--lime-deep);
  border-color: #96bb52;
  color: #17240a;
}

.content-cta-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.content-cta-secondary:hover {
  border-color: var(--ink);
  background: var(--surface-soft);
  color: var(--ink);
}

.content-hero {
  padding: 44px 0 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #f7f8f3 0, #ffffff 82%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 620;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: end;
}

.content-hero-copy {
  min-width: 0;
}

.section-kicker {
  display: inline-block;
  color: #66715b;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.content-hero h1 {
  max-width: 840px;
  margin: 16px 0 18px;
  font-size: clamp(44px, 6.4vw, 76px);
  letter-spacing: 0;
  line-height: 1.02;
  font-weight: 760;
  text-wrap: balance;
}

.content-lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.72;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 620;
}

.content-meta span + span {
  position: relative;
}

.content-meta span + span::before {
  position: absolute;
  top: 50%;
  left: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
  content: "";
}

.quick-answer {
  position: relative;
  padding: 21px 22px 21px 24px;
  border: 1px solid #d9e2c8;
  border-radius: 8px;
  background: #f7faee;
  box-shadow: var(--shadow);
}

.quick-answer::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #9fc24c;
  content: "";
}

.quick-answer > span {
  color: #5e7730;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-answer p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.content-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.fact {
  display: flex;
  min-height: 104px;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 20px 26px;
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact strong {
  font-size: 21px;
  line-height: 1.1;
  font-weight: 760;
}

.fact span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 620;
}

.content-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  gap: clamp(44px, 8vw, 108px);
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 96px;
}

.content-toc {
  align-self: start;
  position: sticky;
  top: 104px;
  padding-top: 7px;
}

.content-toc > span {
  display: block;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.content-toc nav {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

.content-toc a {
  display: block;
  padding: 7px 0 7px 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.content-toc a:hover {
  color: var(--ink);
  transform: translateX(2px);
}

.content-article {
  min-width: 0;
}

.case-study-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.case-study-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 750;
}

.media-compare {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  margin-bottom: 68px;
}

.media-compare.has-case-prompt {
  margin-bottom: 12px;
}

.media-source,
.media-result {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.media-source-image {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  background: #f2f4ed;
}

.media-source-image img {
  width: 100%;
  height: 100%;
  padding: 11px;
  object-fit: contain;
}

.media-source-image span {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 5px;
  background: rgba(23, 25, 29, 0.78);
  color: #ffffff;
  font-size: 9px;
  font-weight: 720;
  backdrop-filter: blur(5px);
}

figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.media-result {
  display: flex;
  flex-direction: column;
}

.media-frame-grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  background: #f7f8f3;
}

.media-frame {
  display: grid;
  min-height: 0;
  margin: 0;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 7px;
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, #eef0e9 25%, transparent 25%),
    linear-gradient(-45deg, #eef0e9 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef0e9 75%),
    linear-gradient(-45deg, transparent 75%, #eef0e9 75%);
  background-position:
    0 0,
    0 7px,
    7px -7px,
    -7px 0;
  background-size: 14px 14px;
}

.media-frame img {
  width: 100%;
  height: 100%;
  padding: 5%;
  object-fit: contain;
}

.motion-stage {
  position: relative;
  min-height: 420px;
  flex: 1;
  overflow: hidden;
  background: #f2f5eb;
}

.gif-stage {
  position: relative;
  display: grid;
  min-height: 0;
  flex: 1;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f2f5eb;
}

.generated-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.motion-stage::before,
.motion-stage::after {
  position: absolute;
  border: 1px solid #d8dfcb;
  border-radius: 50%;
  content: "";
}

.motion-stage::before {
  top: 13%;
  left: 10%;
  width: 58px;
  height: 58px;
}

.motion-stage::after {
  right: 12%;
  bottom: 12%;
  width: 24px;
  height: 24px;
  background: var(--yellow);
  border-color: #e1c375;
}

.motion-frame {
  position: absolute;
  inset: 7%;
  width: 86%;
  height: 86%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.96) rotate(-1deg);
  animation: motion-cycle 7.2s ease-in-out infinite;
}

.motion-frame-2 {
  animation-delay: 2.4s;
}

.motion-frame-3 {
  animation-delay: 4.8s;
}

.motion-gif-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--lime);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.case-prompt {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 0 0 68px;
  padding: 18px 20px;
  border: 1px solid #dce4ce;
  border-left: 4px solid #92b54b;
  border-radius: 0 7px 7px 0;
  background: #f8faef;
}

.case-prompt > span {
  padding-top: 2px;
  color: #687b3f;
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-prompt p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

@keyframes motion-cycle {
  0%,
  26% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  31%,
  100% {
    opacity: 0;
    transform: scale(0.97) rotate(1deg);
  }
}

.guide-section {
  padding: 0 0 58px;
  scroll-margin-top: 104px;
}

.guide-section + .guide-section {
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.guide-section h2 {
  max-width: 680px;
  margin: 0 0 22px;
  font-size: clamp(27px, 3.6vw, 39px);
  line-height: 1.15;
  font-weight: 750;
  text-wrap: balance;
}

.guide-section p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.guide-section p:last-child {
  margin-bottom: 0;
}

.guide-list {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.guide-list li {
  position: relative;
  padding: 14px 16px 14px 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.guide-list li::before {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 11px;
  height: 5px;
  border-bottom: 2px solid #6d8b2e;
  border-left: 2px solid #6d8b2e;
  content: "";
  transform: rotate(-45deg);
}

.workflow-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: none;
}

.workflow-step {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.step-number {
  color: #718148;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.workflow-step h3 {
  margin: -3px 0 6px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 730;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.related-section {
  padding-top: 46px !important;
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.related-link {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.related-link:nth-child(2n) {
  background: #fbfcf7;
}

.related-link:hover {
  border-color: var(--line-strong);
  background: #f5f8eb;
  transform: translateY(-2px);
}

.related-link strong {
  color: #73844e;
  font-size: 16px;
  font-weight: 500;
}

.faq-section {
  padding-top: 46px !important;
  border-top: 1px solid var(--line);
}

.content-faq-list {
  border-top: 1px solid var(--line);
}

.content-faq {
  border-bottom: 1px solid var(--line);
}

.content-faq summary {
  position: relative;
  padding: 18px 38px 18px 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 690;
  line-height: 1.55;
  list-style: none;
  cursor: pointer;
}

.content-faq summary::-webkit-details-marker {
  display: none;
}

.content-faq summary::after {
  position: absolute;
  top: 14px;
  right: 4px;
  color: var(--muted);
  content: "+";
  font-size: 23px;
  font-weight: 350;
}

.content-faq[open] summary::after {
  content: "−";
}

.content-faq p {
  margin: 0;
  padding: 0 44px 20px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.content-footer-cta {
  padding: 54px 0;
  background: #111317;
  color: #ffffff;
}

.content-footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.content-footer-cta .section-kicker {
  color: #aabd78;
}

.content-footer-cta h2 {
  max-width: 760px;
  margin: 9px 0 0;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 720;
}

.content-footer-cta .content-cta {
  flex: 0 0 auto;
  border-color: var(--lime);
  background: var(--lime);
  color: #1d2a08;
}

.content-footer-cta .content-cta:hover {
  border-color: var(--lime-deep);
  background: var(--lime-deep);
}

.content-footer {
  padding: 25px 0;
  border-top: 1px solid #282b31;
  background: #111317;
  color: #898f87;
}

.content-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.content-footer p {
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
}

.not-found-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--page);
}

.not-found-shell {
  width: min(620px, calc(100% - 40px));
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.not-found-shell h1 {
  margin: 14px 0 12px;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.03;
}

.not-found-shell > p {
  color: var(--muted);
  font-size: 15px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

@media (max-width: 960px) {
  .content-topbar {
    grid-template-columns: 1fr auto;
  }

  .content-nav {
    order: 3;
    grid-column: 1 / -1;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .content-nav-label {
    display: none;
  }

  .content-hero-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .quick-answer {
    max-width: 720px;
  }

  .content-layout {
    grid-template-columns: minmax(0, 760px);
  }

  .content-toc {
    position: static;
    display: none;
  }
}

@media (max-width: 700px) {
  .content-shell {
    width: min(100% - 32px, 760px);
  }

  .content-topbar {
    gap: 12px;
    padding: 0 16px;
  }

  .content-cta-compact {
    width: 38px;
    min-height: 38px;
    padding: 0;
    font-size: 0;
  }

  .content-cta-compact span {
    font-size: 16px;
  }

  .content-hero {
    padding-top: 28px;
  }

  .breadcrumb {
    margin-bottom: 22px;
  }

  .content-hero h1 {
    margin-top: 12px;
    font-size: clamp(38px, 11.5vw, 58px);
  }

  .content-lead {
    font-size: 16px;
  }

  .content-facts {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .fact {
    min-height: 78px;
    padding: 16px 4px;
  }

  .fact + .fact {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .content-layout {
    padding-top: 44px;
    padding-bottom: 62px;
  }

  .media-compare {
    grid-template-columns: 1fr;
    margin-bottom: 48px;
  }

  .media-compare.has-case-prompt {
    margin-bottom: 12px;
  }

  .media-source {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    align-items: center;
  }

  .media-source-image {
    aspect-ratio: 1 / 1;
  }

  .motion-stage {
    min-height: 340px;
  }

  .case-prompt {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 48px;
    padding: 16px 17px;
  }

  .guide-section {
    padding-bottom: 44px;
  }

  .guide-section + .guide-section {
    padding-top: 36px;
  }

  .workflow-step {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .content-footer-cta-inner,
  .content-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-footer-cta .content-cta {
    width: 100%;
  }

  .not-found-shell {
    padding: 30px 24px;
  }
}

@media (max-width: 430px) {
  .content-brand span {
    display: none;
  }

  .content-hero h1 {
    font-size: 36px;
  }

  .quick-answer {
    padding: 18px 18px 18px 20px;
  }

  .content-meta {
    flex-direction: column;
    gap: 4px;
  }

  .content-meta span + span::before {
    display: none;
  }

  .media-source {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .motion-stage {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .content-cta,
  .related-link,
  .content-toc a {
    transition: none;
  }

  .motion-frame {
    animation: none;
  }

  .motion-frame-1 {
    opacity: 1;
  }
}
