:root {
  --navy: #102a43;
  --navy-deep: #0b2035;
  --blue: #1d4ed8;
  --blue-dark: #183f9e;
  --blue-soft: #eaf1ff;
  --ink: #162536;
  --text: #26384a;
  --muted: #5c6b7b;
  --line: #d8e0e8;
  --line-strong: #bcc8d4;
  --surface: #f5f7fa;
  --surface-blue: #f3f7fc;
  --white: #ffffff;
  --success: #0c6b4f;
  --shell: min(1180px, calc(100vw - 48px));
  --header-height: 76px;
  --radius: 10px;
  --shadow: 0 18px 45px rgba(16, 42, 67, 0.09);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.35);
  outline-offset: 3px;
}

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

img,
svg {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.content-shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 18px;
  top: 10px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.08);
}

.header-inner {
  width: min(1240px, calc(100vw - 40px));
  height: var(--header-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
}

.header-logo {
  width: 176px;
  height: auto;
  display: block;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-type {
  display: grid;
  line-height: 1.15;
}

.brand-type strong {
  font-size: 16px;
  letter-spacing: 0.01em;
}

.brand-type small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  color: #43566a;
  font-size: 15px;
  font-weight: 550;
}

.desktop-nav a,
.site-footer a {
  transition: color 160ms ease;
}

.desktop-nav a {
  position: relative;
  padding-block: 8px;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a[aria-current="location"] {
  color: var(--navy);
  font-weight: 750;
}

.desktop-nav a[aria-current="location"]::after {
  transform: scaleX(1);
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.header-cta {
  min-height: 42px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.theme-toggle {
  width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.theme-toggle:hover {
  color: var(--navy);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.theme-toggle [data-theme-icon] {
  position: relative;
  width: 20px;
  height: 20px;
  display: block;
  transition: transform 180ms ease;
}

.theme-toggle:not(.is-dark) [data-theme-icon] {
  overflow: hidden;
  color: currentColor;
  background: currentColor;
  border-radius: 50%;
  font-size: 0;
  transform: rotate(-16deg);
}

.theme-toggle:not(.is-dark) [data-theme-icon]::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -3px;
  width: 15px;
  height: 15px;
  background: var(--white);
  border-radius: 50%;
}

.theme-toggle.is-dark [data-theme-icon] {
  width: auto;
  height: auto;
  font-size: 20px;
  transform: rotate(180deg);
}

.language-toggle {
  min-width: 82px;
  min-height: 44px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font: 750 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.language-toggle i {
  color: var(--line-strong);
  font-style: normal;
  font-weight: 500;
}

.language-toggle [data-language-option] {
  padding: 4px 5px;
  border-radius: 4px;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.language-toggle:not(.is-en) [data-language-option="zh"],
.language-toggle.is-en [data-language-option="en"] {
  color: var(--navy);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.16);
}

.language-toggle:hover {
  color: var(--navy);
  border-color: var(--blue);
}

.header-cta:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}

.reading-progress > span {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.hero {
  position: relative;
  padding: 86px 0 112px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 100%;
  background: var(--navy);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 54px;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: end;
  gap: clamp(52px, 7vw, 92px);
}

.hero-intro,
.hero-summary {
  min-width: 0;
}

.eyebrow,
.section-index {
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(56px, 6.1vw, 84px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 720;
}

.hero-lede {
  max-width: 560px;
  margin: 0;
  color: #42566a;
  font-size: 18px;
  line-height: 1.72;
}

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

.button {
  min-height: 50px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.button-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.button-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  border-color: var(--navy);
}

.install-box {
  max-width: none;
  min-height: 76px;
  margin-top: 24px;
  padding: 13px 14px 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--navy-deep);
  border-radius: var(--radius);
}

.install-box > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.install-box span {
  color: #aebfd1;
  font-size: 13px;
}

.install-box code {
  color: var(--white);
  font: 14px/1.5 "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
}

.install-box button,
.terminal-head button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 13px;
  color: var(--navy);
  background: var(--white);
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.support-list {
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
}

.support-list li {
  padding: 6px 11px;
  color: #465c72;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.4;
}

.memory-flow {
  margin: 0;
  padding: 30px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.memory-flow figcaption {
  margin-bottom: 24px;
  padding-bottom: 18px;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 750;
}

.flow-input,
.flow-output {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow-label,
.flow-memory-head > span {
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 750;
}

.flow-input-list {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.flow-input-list span {
  min-height: 48px;
  padding: 8px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  text-align: center;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.flow-arrow {
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 24px;
  line-height: 1;
}

.flow-memory {
  overflow: hidden;
  border: 2px solid var(--navy);
  border-radius: 8px;
}

.flow-memory-head {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
  background: var(--navy);
}

.flow-memory-head > span {
  color: #bfd1e3;
}

.flow-memory-head strong {
  font-size: 15px;
}

.flow-memory-row {
  min-height: 68px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.flow-memory-row b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 5px;
  font-size: 14px;
}

.flow-memory-row > span {
  display: grid;
  line-height: 1.3;
}

.flow-memory-row strong {
  color: var(--navy);
  font-size: 16px;
}

.flow-memory-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.flow-output strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 18px;
}

.flow-output p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.product-workbench {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  box-shadow: 0 28px 70px rgba(16, 42, 67, 0.14);
}

.workbench-bar {
  min-height: 48px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font: 12px/1.4 "SFMono-Regular", Consolas, monospace;
}

.workbench-bar > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-controls {
  display: flex;
  gap: 7px;
}

.window-controls i {
  width: 10px;
  height: 10px;
  display: block;
  background: #c9d0d7;
  border: 1px solid #aeb8c2;
  border-radius: 50%;
}

.workbench-live,
.memory-result-head small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
}

.workbench-live i,
.memory-result-head small i {
  width: 7px;
  height: 7px;
  display: block;
  background: currentColor;
  border-radius: 50%;
}

.workbench-task {
  min-height: 112px;
  padding: 20px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.workbench-task > div {
  min-width: 0;
}

.workbench-task > div > span,
.workbench-rail > span,
.memory-result-head,
.task-terminal-head {
  color: var(--blue-dark);
  font: 700 12px/1.45 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workbench-task strong {
  margin-top: 8px;
  display: block;
  color: var(--navy-deep);
  font-size: 22px;
  line-height: 1.32;
}

.workbench-task p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.workbench-body {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
}

.workbench-rail {
  padding: 24px 22px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.workbench-rail ol {
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
  list-style: none;
}

.workbench-rail li {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
}

.workbench-rail li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  bottom: -20px;
  left: 11px;
  width: 1px;
  background: var(--line-strong);
}

.workbench-rail li > i {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font: normal 700 10px/1 "SFMono-Regular", Consolas, monospace;
}

.workbench-rail li.is-complete > i {
  color: var(--white);
  background: var(--success);
  border-color: var(--success);
}

.workbench-rail li.is-current > i {
  color: var(--blue-dark);
  border-color: var(--blue);
}

.workbench-rail li > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.workbench-rail li strong {
  color: var(--navy-deep);
  font-size: 13px;
  line-height: 1.4;
}

.workbench-rail li small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.workbench-main {
  min-width: 0;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 16px;
}

.memory-result {
  min-height: 220px;
  padding: 17px 18px;
  display: flex;
  flex-direction: column;
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
}

.memory-result-head,
.task-terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.memory-result-head small {
  flex: 0 0 auto;
  font: 700 11px/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0;
  text-transform: none;
}

.memory-result blockquote {
  margin: 13px 0 0;
  color: var(--navy-deep);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.memory-result-list {
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.memory-result-list li {
  position: relative;
  padding-left: 19px;
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.memory-result-list li::before {
  content: "";
  position: absolute;
  top: 0.52em;
  left: 1px;
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
}

.memory-result code {
  padding: 2px 5px;
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  font: 700 0.9em/1.4 "SFMono-Regular", Consolas, monospace;
}

.memory-result p {
  margin: auto 0 0;
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.task-terminal {
  min-height: 220px;
  overflow: hidden;
  color: #d7dee8;
  background: #0c1117;
  border: 1px solid #26303a;
  border-radius: 6px;
}

.task-terminal-head {
  min-height: 38px;
  padding: 0 14px;
  color: #9da9b7;
  background: #151c24;
  border-bottom: 1px solid #26303a;
}

.task-terminal-head small {
  color: #69d3ad;
  font: 700 11px/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0;
  text-transform: none;
}

.task-terminal pre {
  margin: 0;
  padding: 15px 16px 10px;
  overflow-x: auto;
}

.task-terminal code {
  display: grid;
  gap: 5px;
  font: 12px/1.55 "SFMono-Regular", Consolas, monospace;
}

.task-terminal code span {
  white-space: nowrap;
}

.task-terminal b {
  color: #69d3ad;
  font-weight: 700;
}

.task-terminal .terminal-result {
  margin-top: 5px;
  padding-top: 9px;
  color: #f3f6f9;
  border-top: 1px solid #26303a;
}

.task-terminal-meta {
  padding: 9px 14px 11px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #7f8c9b;
  border-top: 1px solid #1f2831;
  font: 11px/1.4 "SFMono-Regular", Consolas, monospace;
}

.workbench-replay {
  grid-column: 1 / -1;
  min-height: 42px;
  padding: 8px 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--blue-dark);
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 750;
}

.workbench-replay:hover {
  color: var(--blue);
}

.section {
  padding: 104px 0;
}

.section-heading {
  width: 100%;
  margin-bottom: 52px;
  display: grid;
  grid-template-columns: 168px minmax(0, 880px);
  column-gap: clamp(40px, 6vw, 78px);
  align-items: start;
}

.section-heading .section-index {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.section-heading h2 {
  grid-column: 2;
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(36px, 4.3vw, 56px);
  line-height: 1.22;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.section-heading > p:last-child {
  grid-column: 2;
  max-width: 790px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.problem-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.problem-item {
  min-height: 194px;
  padding: 30px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.problem-item > span,
.steps-list > li > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 5px;
  font-size: 15px;
  font-weight: 800;
}

.problem-item h3 {
  margin: 2px 0 10px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.35;
}

.problem-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.research-note {
  margin-top: 24px;
  padding: 28px 34px;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 32px;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
}

.research-note > strong {
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.research-note p {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
}

.research-note p span {
  display: block;
  margin-top: 4px;
  color: #c3d1df;
  font-size: 14px;
}

.section-memories {
  background: var(--surface-blue);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.memory-card {
  min-height: 500px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--navy);
  border-radius: 8px;
}

.memory-card-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  text-align: center;
}

.memory-card-head span {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-dark);
  font-size: 16px;
  font-weight: 800;
}

.memory-card-head p {
  width: 100%;
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.memory-card h3 {
  margin: 58px 0 20px;
  color: var(--navy-deep);
  font-size: 27px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.memory-card > p {
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 16px;
}

.memory-card ul {
  margin: auto 0 0;
  padding: 22px 0 0;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.memory-card li {
  position: relative;
  padding-left: 20px;
  color: #42566a;
  font-size: 15px;
}

.memory-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
}

.memory-principle {
  margin-top: 22px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
}

.memory-principle strong {
  color: var(--navy);
  font-size: 17px;
}

.memory-principle p {
  margin: 0;
  color: var(--muted);
}

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

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

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

.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: 0;
}

.comparison-table tr:last-child > * {
  border-bottom: 0;
}

.comparison-table thead th {
  color: var(--white);
  background: var(--navy);
  font-size: 18px;
  font-weight: 750;
}

.comparison-table thead th:first-child {
  width: 18%;
}

.comparison-table thead th:nth-child(2),
.comparison-table thead th:nth-child(3) {
  width: 41%;
}

.comparison-table tbody th {
  color: var(--navy);
  background: var(--surface);
  font-size: 18px;
}

.comparison-table tbody th span {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-dark);
  font-size: 15px;
}

.comparison-table td {
  background: var(--white);
}

.comparison-table td:nth-child(3) {
  background: var(--surface-blue);
}

.comparison-table td strong {
  color: var(--navy);
  font-size: 19px;
  line-height: 1.45;
}

.comparison-table td p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.comparison-summary {
  margin-top: 20px;
  padding: 22px 26px;
  background: var(--blue-soft);
  border-left: 5px solid var(--blue);
}

.comparison-summary p {
  margin: 0;
  color: #304a65;
}

.comparison-summary strong {
  color: var(--navy);
}

.section-how {
  background: var(--navy-deep);
}

.section-how .section-index,
.section-how .section-heading h2 {
  color: var(--white);
}

.section-how .section-heading > p:last-child {
  color: #c0cede;
}

.steps-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #42586f;
  border-left: 1px solid #42586f;
  list-style: none;
}

.steps-list li {
  min-height: 330px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #42586f;
  border-bottom: 1px solid #42586f;
  box-shadow: inset 0 4px 0 transparent;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.steps-list li.is-current {
  background: #102d48;
  box-shadow: inset 0 4px 0 var(--blue);
}

.steps-list > li > span {
  color: var(--white);
  background: var(--blue);
  transition: color 180ms ease, background 180ms ease;
}

.steps-list li.is-current > span {
  color: var(--navy-deep);
  background: var(--white);
}

.steps-list li > div {
  margin-top: auto;
}

.steps-list h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 23px;
  line-height: 1.4;
}

.steps-list p {
  margin: 0;
  color: #bccbda;
  font-size: 16px;
}


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

.case-shell {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
}

.case-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
}

.case-tab {
  min-height: 98px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  column-gap: 12px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line-strong);
  cursor: pointer;
  text-align: left;
  transition: color 160ms ease, background 160ms ease;
}

.case-tab:last-child {
  border-right: 0;
}

.case-tab > span {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  align-self: center;
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
}

.case-tab strong {
  color: var(--navy);
  font-size: 17px;
}

.case-tab small {
  color: var(--muted);
  font-size: 13px;
}

.case-tab.is-active {
  color: var(--white);
  background: var(--navy);
}

.case-tab.is-active > span {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.case-tab.is-active strong,
.case-tab.is-active small {
  color: var(--white);
}

.case-status {
  margin: 0;
  padding: 11px 38px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 750;
}

.case-panel {
  padding: 38px;
}

.case-panel.is-entering {
  animation: case-panel-enter 180ms ease-out both;
}

@keyframes case-panel-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-intro {
  max-width: 820px;
}

.case-intro > p {
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 750;
}

.case-intro h3 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 32px;
  line-height: 1.35;
}

.case-intro > span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

.case-story {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
}

.case-prompt {
  margin: 14px 0 0;
  padding: 14px 16px;
  color: var(--navy-deep);
  background: var(--white);
  border-left: 3px solid var(--navy);
  font-size: 15px;
  line-height: 1.65;
}

.case-context-tags {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-context-tags span,
.case-trace-evidence span {
  padding: 5px 9px;
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.case-video {
  margin: 18px 0 0;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  color: var(--white);
  background: var(--navy-deep);
  border: 1px solid #273f5b;
  border-radius: 8px;
}

.case-video figcaption {
  padding: 8px;
}

.case-video .case-card-label {
  color: #a9c2ff;
}

.case-video h4 {
  margin: 12px 0 0;
  color: var(--white);
  font-size: 22px;
  line-height: 1.4;
}

.case-video figcaption > p {
  margin: 12px 0 0;
  color: #c9d5e1;
  font-size: 14px;
}

.case-video-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-video-meta span {
  padding: 5px 8px;
  color: #dbe6f2;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.case-video-player {
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050909;
  border: 1px solid #3a5068;
  border-radius: 6px;
  box-shadow: 0 14px 32px rgba(2, 12, 23, 0.28);
}

.case-video-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #050909;
}

.case-video-player video:focus-visible {
  outline: 3px solid #a9c2ff;
  outline-offset: -3px;
}

.case-task,
.case-memory {
  min-height: 210px;
  padding: 25px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.case-memory {
  position: relative;
  background: var(--blue-soft);
  border-color: #b8c9e9;
  box-shadow: inset 4px 0 0 var(--blue);
}

.case-card-label,
.case-outcome > span,
.case-advantage > span {
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 750;
}

.case-task h4,
.case-memory h4 {
  margin: 14px 0 0;
  color: var(--navy-deep);
  font-size: 20px;
  line-height: 1.45;
}

.case-task p,
.case-memory p {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 15px;
}

.case-judgement-list {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.case-judgement-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 15px;
}

.case-judgement-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
}

.case-judgement-list code {
  padding: 1px 4px;
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 3px;
  font-size: 0.92em;
}

.case-judgement-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.case-trace {
  margin-top: 18px;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.case-trace h4 {
  margin: 8px 0 0;
  color: var(--navy-deep);
  font-size: 20px;
  line-height: 1.45;
}

.case-trace-flow {
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
}

.case-trace-flow li {
  position: relative;
  min-height: 112px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-top: 3px solid #8797a8;
  border-radius: 5px;
}

.case-trace-flow li.is-memory {
  border-top-color: var(--blue);
}

.case-trace-flow li.is-code {
  border-top-color: #23806d;
}

.case-trace-flow li.is-answer {
  border-top-color: var(--navy);
}

.case-trace-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -22px;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 800;
  transform: translateY(-50%);
}

.case-trace-flow li > span {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.case-trace-flow li > strong {
  color: var(--navy-deep);
  font-size: 15px;
  line-height: 1.5;
}

.case-trace-evidence {
  margin-top: 18px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.case-comparison {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.case-outcome {
  min-height: 154px;
  padding: 24px 26px;
  display: grid;
  align-content: center;
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.case-outcome-without {
  border-radius: 6px 0 0 6px;
}

.case-outcome-with {
  background: #edf3ff;
  border-color: #9fb7e4;
  border-radius: 0 6px 6px 0;
  box-shadow: inset 0 -4px 0 var(--blue);
}

.case-outcome strong {
  margin-top: 6px;
  color: var(--navy-deep);
  font-size: 26px;
  line-height: 1.3;
}

.case-outcome p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.case-result-list {
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.case-result-list li {
  position: relative;
  padding-left: 17px;
}

.case-result-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.case-outcome-note {
  width: fit-content;
  margin-top: 8px;
  padding: 4px 9px;
  color: #7a4a00;
  background: #fff2d5;
  border: 1px solid #e4bd73;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.case-comparison-arrow {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  font-size: 22px;
  font-weight: 800;
}

.case-advantage {
  margin-top: 16px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 6px;
}

.case-advantage > span {
  color: #a9c2ff;
}

.case-advantage strong {
  display: block;
  color: var(--white);
  font-size: 20px;
  line-height: 1.45;
}

.case-advantage p {
  margin: 4px 0 0;
  color: #c9d5e1;
  font-size: 14px;
}

.case-caveat {
  margin: 0;
  padding: 18px 38px;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.section-faq {
  background: var(--surface-blue);
  border-top: 1px solid var(--line);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 80px;
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  margin: 0;
}

.faq-heading h2 {
  font-size: clamp(34px, 4vw, 48px);
}

.faq-list {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.faq-list details {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.faq-list details:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.1);
  transform: translateY(-1px);
}

.faq-list details[open] {
  border-color: #8aa9dc;
  box-shadow: 0 16px 38px rgba(29, 78, 216, 0.11);
}

.faq-list summary {
  position: relative;
  min-height: 84px;
  padding: 23px 68px 23px 26px;
  display: flex;
  align-items: center;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 500;
  transform: translateY(-50%);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.faq-list details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 68px 26px 26px;
  color: var(--muted);
  font-size: 16px;
}

.section-start {
  color: var(--white);
  background: var(--navy-deep);
}

.start-layout > div:first-child {
  max-width: 980px;
}

.section-start .section-index,
.section-start h2 {
  color: var(--white);
}

.section-start h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.section-start > .content-shell > div:first-child > p:last-child {
  max-width: 720px;
  margin-top: 20px;
  color: #c0cede;
  font-size: 18px;
}

.terminal-card {
  margin-top: 42px;
  border: 1px solid #435a72;
  border-radius: 8px;
  overflow: hidden;
}

.terminal-head {
  min-height: 58px;
  padding: 9px 12px 9px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #d7e0e9;
  background: #142f49;
  border-bottom: 1px solid #435a72;
  font-size: 15px;
}

.terminal-card pre {
  margin: 0;
  padding: 28px 26px;
  overflow-x: auto;
  color: var(--white);
  background: #071a2c;
  font: 16px/1.65 "SFMono-Regular", Consolas, monospace;
}

.terminal-card > p {
  margin: 0;
  padding: 14px 20px;
  color: #b8c7d6;
  background: #102940;
  border-top: 1px solid #435a72;
  font-size: 14px;
}

.action-links {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #435a72;
  border-left: 1px solid #435a72;
}

.action-links a {
  min-height: 130px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #435a72;
  border-bottom: 1px solid #435a72;
}

.action-links span {
  color: #aebfd0;
  font-size: 14px;
}

.action-links strong {
  color: var(--white);
  font-size: 19px;
}

.action-links a:hover {
  background: #142f49;
}

.site-footer {
  color: #c0cede;
  background: #071828;
  border-top: 1px solid #31475d;
}

.footer-main {
  padding: 56px 0 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 50px;
}

.footer-logo {
  width: 176px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.footer-main > div > p {
  margin: 20px 0 0;
  color: #a9bbcc;
}

.footer-main nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 14px 34px;
  font-size: 15px;
}

.footer-bottom {
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #31475d;
  color: #94a9bd;
  font-size: 14px;
}

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 24px;
  min-width: 180px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--navy);
  border-radius: 6px;
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 16px;
    font-size: 14px;
  }

  .header-cta {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .memory-card:last-child {
    grid-column: 1 / -1;
    min-height: 420px;
  }

  .steps-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 36px, 720px);
    --header-height: 68px;
  }

  .header-inner {
    width: calc(100vw - 30px);
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    cursor: pointer;
  }

  .header-actions {
    gap: 8px;
  }

  .language-toggle {
    min-width: 78px;
  }

  .menu-toggle span {
    position: absolute;
    width: 19px;
    height: 2px;
    background: currentColor;
    transition: transform 160ms ease;
  }

  .menu-toggle span:first-child {
    transform: translateY(-4px);
  }

  .menu-toggle span:last-child {
    transform: translateY(4px);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
  }

  .mobile-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    height: calc(100dvh - var(--header-height));
    padding: 20px 24px 40px;
    align-content: start;
    overflow-y: auto;
    color: var(--navy);
    background: var(--white);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
  }

  .mobile-nav.is-open {
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav a {
    min-height: 54px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    font-weight: 650;
  }

  .mobile-nav a[aria-current="location"] {
    padding-left: 12px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    border-left: 3px solid var(--blue);
  }

  .hero {
    padding: 72px 0 82px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
  }

  .hero-summary {
    max-width: 680px;
  }

  .memory-flow {
    width: min(100%, 650px);
  }

  .product-workbench {
    width: min(100%, 720px);
  }

  .workbench-main {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .section-heading .section-index,
  .section-heading h2,
  .section-heading > p:last-child {
    grid-column: 1;
  }

  .section-heading .section-index {
    grid-row: auto;
  }

  .section {
    padding: 88px 0;
  }

  .memory-grid {
    grid-template-columns: 1fr;
  }

  .memory-card,
  .memory-card:last-child {
    grid-column: auto;
    min-height: auto;
  }

  .memory-card h3 {
    margin-top: 36px;
  }

  .memory-card ul {
    margin-top: 20px;
  }


  .case-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-tab:nth-child(2n) {
    border-right: 0;
  }

  .case-tab:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-strong);
  }


  .case-story,
  .case-comparison {
    grid-template-columns: 1fr;
  }

  .case-trace-flow {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .case-trace-flow li {
    min-height: auto;
  }

  .case-trace-flow li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -24px;
    left: 50%;
    content: "↓";
    transform: translateX(-50%);
  }

  .case-video {
    grid-template-columns: 1fr;
  }

  .case-task,
  .case-memory {
    min-height: auto;
  }

  .case-comparison-arrow {
    min-height: 38px;
    font-size: 0;
  }

  .case-comparison-arrow::before {
    content: "↓";
    font-size: 22px;
  }

  .case-outcome-without,
  .case-outcome-with {
    border-radius: 6px;
  }

  .case-advantage {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .faq-heading {
    position: static;
    margin-bottom: 22px;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100vw - 28px);
  }

  body {
    font-size: 16px;
  }

  .header-logo {
    width: 120px;
  }

  .brand-type small {
    display: none;
  }

  .hero::before {
    width: 5px;
  }

  .hero h1 {
    font-size: clamp(40px, 11.5vw, 54px);
  }

  .hero-copy {
    gap: 24px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .install-box {
    padding: 16px;
    align-items: stretch;
    flex-direction: column;
  }

  .install-box button {
    width: 100%;
  }

  .support-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .support-list li {
    padding: 8px;
    text-align: center;
  }

  .memory-flow {
    padding: 20px;
  }

  .workbench-bar {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    padding-inline: 12px;
  }

  .window-controls {
    gap: 5px;
  }

  .window-controls i {
    width: 8px;
    height: 8px;
  }

  .workbench-task {
    min-height: auto;
    padding: 19px 18px;
  }

  .workbench-task strong {
    font-size: 20px;
  }

  .workbench-body {
    grid-template-columns: 1fr;
  }

  .workbench-rail {
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workbench-rail ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .workbench-rail li {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
  }

  .workbench-rail li:not(:last-child)::after {
    display: none;
  }

  .workbench-rail li > i {
    width: 22px;
    height: 22px;
  }

  .workbench-main {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .memory-result {
    padding: 15px;
  }

  .task-terminal-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .task-terminal code span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .memory-flow figcaption {
    font-size: 17px;
  }

  .flow-input-list {
    grid-template-columns: 1fr;
  }

  .flow-input-list span {
    min-height: 42px;
  }

  .flow-memory-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2 {
    font-size: clamp(34px, 9.5vw, 44px);
  }

  .section-heading > p:last-child {
    font-size: 17px;
  }

  .problem-list {
    grid-template-columns: 1fr;
  }

  .problem-item {
    min-height: auto;
    padding: 24px;
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .problem-item h3 {
    font-size: 20px;
  }

  .research-note {
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .research-note > strong {
    font-size: 48px;
  }

  .memory-card {
    padding: 24px;
  }

  .memory-card h3 {
    font-size: 25px;
  }

  .memory-principle {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .comparison-table-wrap {
    overflow: visible;
    border-radius: 0;
  }

  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody tr {
    padding: 22px;
    border-bottom: 1px solid var(--line-strong);
  }

  .comparison-table tbody tr:last-child {
    border-bottom: 0;
  }

  .comparison-table tbody th,
  .comparison-table tbody td {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .comparison-table tbody th {
    margin-bottom: 18px;
    font-size: 19px;
  }

  .comparison-table tbody td {
    padding: 15px;
    border: 1px solid var(--line);
  }

  .comparison-table tbody td + td {
    margin-top: 12px;
  }

  .comparison-table tbody td::before {
    display: block;
    margin-bottom: 6px;
    color: var(--blue-dark);
    font-size: 15px;
    font-weight: 800;
  }

  .comparison-table tbody td:nth-child(2)::before {
    content: "无 Memory";
  }

  .comparison-table tbody td:nth-child(3) {
    background: var(--surface-blue);
    border-left: 4px solid var(--blue);
  }

  .comparison-table tbody td:nth-child(3)::before {
    content: "使用 MemoraX Code";
  }

  html[lang="en"] .comparison-table tbody td:nth-child(2)::before {
    content: "Without Memory";
  }

  html[lang="en"] .comparison-table tbody td:nth-child(3)::before {
    content: "With MemoraX Code";
  }

  .steps-list {
    grid-template-columns: 1fr;
  }

  .steps-list li {
    min-height: 250px;
  }


  .case-tabs {
    grid-template-columns: 1fr;
  }

  .case-tab {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .case-tab:last-child {
    border-bottom: 0;
  }

  .case-tab:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-strong);
  }

  .case-panel {
    padding: 25px 20px;
  }

  .case-video {
    padding: 14px;
    gap: 14px;
  }

  .case-video figcaption {
    padding: 4px;
  }

  .case-video h4 {
    font-size: 20px;
  }

  .case-status {
    padding-right: 20px;
    padding-left: 20px;
  }

  .case-intro h3 {
    font-size: 27px;
  }

  .case-task,
  .case-memory {
    padding: 20px;
  }

  .case-trace {
    padding: 20px;
  }

  .case-judgement-grid {
    grid-template-columns: 1fr;
  }

  .case-outcome {
    min-height: auto;
    padding: 22px 20px;
  }

  .case-outcome strong {
    font-size: 25px;
  }

  .case-advantage {
    padding: 20px;
  }

  .case-caveat {
    padding: 17px 20px;
  }

  .faq-list summary {
    padding-right: 48px;
    font-size: 17px;
  }

  .faq-list details p {
    padding-right: 0;
  }

  .section-start h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .terminal-card pre {
    padding: 24px 18px;
    font-size: 14px;
  }

  .action-links {
    grid-template-columns: 1fr;
  }

  .action-links a {
    min-height: 115px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-main nav {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .brand-type {
    display: none;
  }

  .header-inner {
    width: calc(100vw - 24px);
  }

  .header-actions {
    gap: 6px;
  }

  .language-toggle {
    min-width: 72px;
    padding-inline: 7px;
  }

  .workbench-live {
    font-size: 0;
  }

  .workbench-live i {
    width: 8px;
    height: 8px;
  }

  .workbench-task {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .workbench-rail ol {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workbench-rail li small {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}
