:root {
  --bg: #f4f5f0;
  --surface: #ffffff;
  --surface-soft: #eef2ea;
  --surface-strong: #0f1720;
  --text: #18212a;
  --text-soft: #536171;
  --text-inverse: #f9fbfd;
  --line: rgba(24, 33, 42, 0.12);
  --line-strong: rgba(24, 33, 42, 0.18);
  --primary: #2d6a4f;
  --primary-dark: #1f4b38;
  --accent: #3f8efc;
  --accent-soft: rgba(63, 142, 252, 0.12);
  --warning: #c27a1a;
  --shadow: 0 22px 60px rgba(18, 33, 43, 0.12);
  --shadow-soft: 0 14px 36px rgba(18, 33, 43, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1120px, calc(100vw - 40px));
  --header-height: 88px;
  --transition: 180ms ease;
  --font-ui: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(63, 142, 252, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(45, 106, 79, 0.1), transparent 24%),
    linear-gradient(180deg, #f7f8f3 0%, #eef2ea 100%);
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

textarea {
  resize: vertical;
}

math {
  font-size: 1.05em;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.skip-link {
  display: none;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  z-index: 900;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 999px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  backdrop-filter: blur(18px);
  background: rgba(247, 248, 243, 0.78);
  border-bottom: 1px solid rgba(24, 33, 42, 0.06);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 24px rgba(18, 33, 43, 0.08);
  background: rgba(247, 248, 243, 0.92);
}

.nav-shell {
  width: var(--container);
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-cn {
  color: var(--text-soft);
  font-weight: 600;
}

.desktop-nav,
.nav-actions,
.language-picker {
  display: flex;
  align-items: center;
}

.desktop-nav {
  gap: 30px;
  flex: 1;
  justify-content: center;
}

.desktop-nav a,
.mobile-menu a {
  position: relative;
  color: var(--text-soft);
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--transition);
}

html[lang="en"] .brand-cn {
  display: none;
}

.nav-resources {
  position: relative;
  flex: 0 0 auto;
}

.nav-resources summary {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-soft);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-resources summary::-webkit-details-marker {
  display: none;
}

.nav-resources summary:hover,
.nav-resources[open] summary {
  color: var(--text);
}

.nav-resources summary:focus-visible {
  outline: 3px solid rgba(63, 142, 252, 0.28);
  outline-offset: 5px;
}

.nav-resources summary svg {
  transition: transform var(--transition);
}

.nav-resources[open] summary svg {
  transform: rotate(180deg);
}

.nav-resources-menu {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  display: grid;
  width: 164px;
  padding: 6px;
  border: 1px solid rgba(24, 33, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(18, 33, 43, 0.14);
}

.desktop-nav .nav-resources-menu a {
  padding: 9px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
}

.desktop-nav .nav-resources-menu a::after {
  display: none;
}

.desktop-nav .nav-resources-menu a:hover {
  color: var(--text);
  background: rgba(63, 142, 252, 0.08);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-menu a:hover {
  color: var(--text);
}

.desktop-nav a.is-active::after,
.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  gap: 12px;
}

.icon-text-button,
.button,
.menu-toggle,
.segmented button,
.preset-segment button,
.editor-tool,
.editor-language span,
.symbol-palette button,
.formula-object,
.language-menu button {
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.icon-text-button,
.button,
.menu-toggle,
.segmented button,
.preset-segment button,
.language-menu button {
  border: 1px solid transparent;
  cursor: pointer;
}

.icon-text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(24, 33, 42, 0.08);
}

.icon-text-button:hover,
.button:hover,
.menu-toggle:hover,
.segmented button:hover,
.preset-segment button:hover,
.language-menu button:hover {
  transform: translateY(-1px);
}

.header-purchase {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color var(--transition), background var(--transition);
}

.header-purchase:hover {
  color: var(--accent);
  background: rgba(63, 142, 252, 0.08);
}

.language-picker {
  position: relative;
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(24, 33, 42, 0.08);
  box-shadow: var(--shadow-soft);
}

.language-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
}

.language-menu button[aria-checked="true"] {
  background: var(--surface-soft);
}

.menu-check {
  opacity: 0;
}

.language-menu button[aria-checked="true"] .menu-check {
  opacity: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--text-inverse);
  box-shadow: 0 14px 28px rgba(45, 106, 79, 0.22);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border-color: rgba(24, 33, 42, 0.1);
}

.button-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.button-outline:hover {
  background: var(--accent);
  color: var(--text-inverse);
}

.button-dark {
  background: var(--surface-strong);
  color: var(--text-inverse);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
}

.button-large {
  min-height: 54px;
  padding: 0 24px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(24, 33, 42, 0.08);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

.mobile-menu {
  width: var(--container);
  margin: 0 auto 18px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(24, 33, 42, 0.08);
  box-shadow: var(--shadow-soft);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  display: block;
  padding: 12px 8px;
}

.hero {
  position: relative;
  padding: 46px 0 28px;
  overflow: clip;
}

.hero-layout {
  display: grid;
  grid-template-areas: "copy stage";
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.hero-stage {
  grid-area: stage;
  width: 100%;
  margin: 0;
  padding: 14px 14px 12px;
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 239, 0.94)),
    linear-gradient(180deg, rgba(63, 142, 252, 0.08), transparent);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}

.office-window,
.editor-mock,
.demo-tool,
.vector-stage,
.workflow-step,
.download-layout,
.compatibility-table-wrap {
  border: 1px solid rgba(24, 33, 42, 0.08);
  box-shadow: var(--shadow-soft);
}

.office-window {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #fefefe;
  min-height: 410px;
}

.office-titlebar,
.demo-document-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  color: var(--text-soft);
  background: #fbfbfb;
  border-bottom: 1px solid rgba(24, 33, 42, 0.08);
  font-size: 0.95rem;
}

.office-app-mark,
.demo-host-icon,
.host-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.office-app-mark,
.host-mark.word,
.demo-document-pane[data-host="word"] .demo-host-icon {
  background: #2f6fde;
}

.host-mark.powerpoint,
.demo-document-pane[data-host="powerpoint"] .demo-host-icon {
  background: #d46a20;
}

.host-mark.wps,
.demo-document-pane[data-host="wps"] .demo-host-icon {
  background: #e4513e;
}

.office-tabs,
.demo-ribbon-mini {
  display: flex;
  gap: 24px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(24, 33, 42, 0.08);
  background: #fcfdfb;
  color: var(--text-soft);
}

.is-current,
.demo-ribbon-mini .is-active {
  color: var(--text);
  font-weight: 700;
}

.office-ribbon {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: linear-gradient(180deg, #fcfdfb, #f4f7f2);
  border-bottom: 1px solid rgba(24, 33, 42, 0.08);
}

.ribbon-command {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--text-soft);
}

.ribbon-command.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

.ribbon-divider {
  width: 1px;
  height: 36px;
  background: rgba(24, 33, 42, 0.1);
}

.document-canvas {
  position: relative;
  padding: 38px 48px 56px;
  min-height: 250px;
  background:
    linear-gradient(180deg, rgba(63, 142, 252, 0.03), transparent 40%),
    #ffffff;
}

.document-heading,
.demo-page-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.formula-line {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 24px 0 18px;
  min-height: 92px;
}

.source-formula,
.flyout-source,
.rail-code,
code,
textarea {
  font-family: "Cascadia Code", "Consolas", monospace;
}

.source-formula {
  display: inline-block;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--text-soft);
  background: rgba(24, 33, 42, 0.05);
}

.selection-flash {
  position: absolute;
  inset: 8px auto auto -6px;
  width: calc(100% - 32px);
  height: 42px;
  border-radius: 12px;
  background: rgba(63, 142, 252, 0.1);
  animation: pulse-select 4s ease-in-out infinite;
}

.rendered-formula,
.formula-object {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  min-width: 220px;
  min-height: 68px;
  padding: 16px 22px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(45, 106, 79, 0.2);
  box-shadow: 0 16px 34px rgba(45, 106, 79, 0.12);
}

.rendered-formula {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
}

.editor-flyout {
  position: absolute;
  top: 34px;
  right: 42px;
  width: min(280px, calc(100vw - 80px));
  padding: 14px;
  border-radius: 20px;
  background: rgba(15, 23, 32, 0.95);
  color: var(--text-inverse);
  box-shadow: 0 22px 40px rgba(15, 23, 32, 0.24);
  opacity: 0;
  transform: translateY(18px);
}

.editor-flyout-title,
.symbol-row,
.demo-toolbar,
.pane-label,
.source-controls,
.download-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editor-flyout-title {
  margin-bottom: 14px;
  font-weight: 700;
}

.symbol-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.symbol-row span {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.flyout-equation {
  display: grid;
  place-items: center;
  min-height: 66px;
  margin-bottom: 10px;
}

.flyout-equation math {
  font-size: 1.3rem;
}

.flyout-source {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.05);
  font-family: inherit;
}

.flyout-source math {
  font-size: 1.12rem;
}

.hero-stage[data-state="source"] .source-formula,
.hero-stage[data-state="source"] .selection-flash {
  opacity: 1;
}

.hero-stage[data-state="convert"] .rendered-formula {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-stage[data-state="edit"] .rendered-formula,
.hero-stage[data-state="edit"] .editor-flyout {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stage-caption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-soft);
}

.stage-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 0 0 8px rgba(63, 142, 252, 0.12);
}

.hero-content {
  position: relative;
  grid-area: copy;
}

.hero-copy {
  max-width: 960px;
  padding: 34px 0 54px;
}

@media (min-width: 1081px) {
  .hero-copy {
    max-width: 500px;
    padding: 8px 0 20px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
  }

  .hero-description {
    font-size: 0.98rem;
    margin-bottom: 20px;
  }

  .hero-actions {
    gap: 10px;
    margin-bottom: 18px;
  }

  .hero-actions .button-large {
    min-height: 48px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  .hero-demo-link,
  .hero-purchase-link {
    min-height: 48px;
  }

  .hero-facts {
    gap: 10px;
  }

  .hero-facts span {
    min-width: 112px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .hero-stage .office-window {
    min-height: 0;
    border-radius: 20px;
  }

  .hero-stage .office-titlebar {
    padding: 10px 14px;
    font-size: 0.83rem;
  }

  .hero-stage .office-tabs {
    gap: 14px;
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  .hero-stage .office-ribbon {
    gap: 10px;
    padding: 12px 14px;
  }

  .hero-stage .ribbon-command {
    gap: 6px;
    padding: 7px 8px;
    font-size: 0.8rem;
  }

  .hero-stage .ribbon-command img {
    width: 22px;
    height: 22px;
  }

  .hero-stage .document-canvas {
    min-height: 208px;
    padding: 26px 28px 36px;
  }

  .hero-stage .document-heading {
    margin-bottom: 10px;
    font-size: 1.1rem;
  }

  .hero-stage .document-canvas p {
    font-size: 0.82rem;
  }

  .hero-stage .formula-line {
    gap: 12px;
    min-height: 70px;
    margin: 16px 0 12px;
  }

  .hero-stage .source-formula {
    padding: 8px 10px;
    font-size: 0.77rem;
  }

  .hero-stage .rendered-formula {
    min-width: 180px;
    min-height: 52px;
    padding: 10px 14px;
    border-radius: 14px;
  }

  .hero-stage .editor-flyout {
    top: 22px;
    right: 24px;
    width: 220px;
    padding: 10px;
    border-radius: 14px;
  }

  .hero-stage .editor-flyout-title {
    margin-bottom: 8px;
    font-size: 0.78rem;
  }

  .hero-stage .symbol-row {
    margin-bottom: 8px;
  }

  .hero-stage .flyout-equation {
    min-height: 46px;
    margin-bottom: 6px;
  }

  .hero-stage .flyout-equation math {
    font-size: 1rem;
  }

  .hero-stage .flyout-source {
    min-height: 42px;
    padding: 6px 8px;
  }

  .hero-stage .flyout-source math {
    font-size: 0.9rem;
  }

  .hero-stage .stage-caption {
    margin-top: 10px;
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .hero-scroll-cue {
    display: none;
  }
}

.eyebrow,
.section-kicker,
.feature-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.eyebrow span:first-child,
.section-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.hero h1 {
  max-width: 100%;
  margin: 18px 0 22px;
  line-height: 1.08;
  font-size: clamp(2.75rem, 5.2vw, 4.25rem);
  letter-spacing: 0;
}

.hero h1 strong {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
}

html[lang="en"] .hero h1 strong {
  font-size: clamp(2rem, 3.35vw, 3rem);
  white-space: nowrap;
}

.section-heading h2,
.vector-copy h2,
.download-copy h2 {
  margin: 14px 0;
  line-height: 1.08;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  letter-spacing: 0;
}

.hero-tagline {
  margin: 0 0 14px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
}

.hero-description {
  max-width: 850px;
  margin: 0 0 26px;
  font-size: 1.03rem;
  line-height: 1.8;
}

.hero-actions {
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 54px;
  padding: 0 4px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--transition);
}

.hero-demo-link svg,
.hero-purchase-link svg {
  flex: 0 0 auto;
  transition: transform var(--transition);
}

.hero-demo-link:hover,
.hero-purchase-link:hover {
  color: var(--accent);
}

.hero-demo-link:hover svg,
.hero-purchase-link:hover svg {
  transform: translateX(3px);
}

.hero-purchase-link {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 54px;
  padding-left: 16px;
  border-left: 1px solid rgba(24, 33, 42, 0.14);
}

.hero-purchase-link strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.hero-purchase-link small {
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.4;
  white-space: nowrap;
}

@media (min-width: 1081px) {
  .hero-actions {
    gap: 10px;
    margin-bottom: 18px;
  }

  .hero-actions .button-large,
  .hero-demo-link,
  .hero-purchase-link {
    min-height: 48px;
  }

  .hero-actions .button-large {
    padding: 0 14px;
    font-size: 0.86rem;
  }
}

.hero-facts {
  gap: 16px;
}

.hero-description,
.section-heading > p,
.feature-copy p,
.conversion-copy p,
.vector-copy p,
.download-copy p,
.workflow-step p,
.table-note {
  color: var(--text-soft);
}

.hero-actions,
.hero-facts,
.feature-tags,
.host-list,
.requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts span,
.requirements span {
  min-width: 130px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(24, 33, 42, 0.08);
}

.hero-facts b,
.requirements b {
  display: block;
  font-size: 1.1rem;
}

.hero-facts small,
.requirements small {
  color: var(--text-soft);
}

.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin-left: calc((100vw - var(--container)) / 2);
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(24, 33, 42, 0.12);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(24, 33, 42, 0.07);
  font-size: 0.9rem;
  font-weight: 650;
  transition: color var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.hero-scroll-cue > span:last-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--surface-strong);
  transition: transform var(--transition), background var(--transition);
}

.hero-scroll-cue:hover {
  color: var(--text);
  border-color: rgba(63, 142, 252, 0.35);
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 33, 42, 0.11);
  transform: translateY(-2px);
}

.hero-scroll-cue:hover > span:last-child {
  background: var(--accent);
  transform: translateY(3px);
}

.hero-scroll-cue:focus-visible {
  outline: 3px solid rgba(63, 142, 252, 0.28);
  outline-offset: 3px;
}

.host-strip {
  padding: 8px 0 6px;
}

.host-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(24, 33, 42, 0.08);
}

.host-strip-label {
  font-weight: 700;
}

.host-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
}

.section,
.vector-section {
  padding: 96px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading > div {
  max-width: 630px;
}

.section-heading > p {
  max-width: 420px;
}

.technology-section {
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(24, 33, 42, 0.06);
  border-bottom: 1px solid rgba(24, 33, 42, 0.08);
}

.technology-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: end;
  gap: 72px;
  margin-bottom: 48px;
}

.technology-heading h2 {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: 3.25rem;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.technology-story > p {
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.85;
}

.technology-origin {
  display: grid;
  gap: 4px;
  padding: 3px 0 3px 18px;
  border-left: 3px solid var(--warning);
}

.technology-origin span {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.technology-origin strong {
  font-size: 1.04rem;
}

.technology-origin .letter-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-top: 10px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 750;
  transition: color var(--transition);
}

.technology-origin .letter-link svg {
  transition: transform var(--transition);
}

.technology-origin .letter-link:hover {
  color: var(--accent);
}

.technology-origin .letter-link:hover svg {
  transform: translateX(3px);
}

.technology-origin .letter-link:focus-visible {
  outline: 3px solid rgba(63, 142, 252, 0.28);
  outline-offset: 4px;
}

.technology-foundation {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 34px;
  padding: 34px 38px;
  border-radius: 8px;
  color: var(--text-inverse);
  background: var(--surface-strong);
  box-shadow: 0 18px 44px rgba(15, 23, 32, 0.15);
}

.foundation-mark {
  display: grid;
  place-content: center;
  width: 140px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
}

.foundation-mark strong {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
}

.foundation-mark span {
  margin-top: 8px;
  color: #7cb5ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.foundation-copy .feature-label {
  margin: 0;
  color: #93c5fd;
}

.foundation-copy h3 {
  max-width: 620px;
  margin: 9px 0 10px;
  font-size: 1.9rem;
  line-height: 1.22;
  letter-spacing: 0;
  text-wrap: balance;
}

.foundation-copy > p:last-child {
  max-width: 680px;
  margin: 0;
  color: rgba(249, 251, 253, 0.7);
}

.foundation-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foundation-points li {
  position: relative;
  padding-left: 22px;
  color: rgba(249, 251, 253, 0.86);
  font-size: 0.9rem;
  font-weight: 650;
}

.foundation-points li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid #6ee7b7;
  border-radius: 50%;
  transform: translateY(-50%);
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 50px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.capability-item {
  --capability-color: var(--accent);
  min-height: 224px;
  padding: 28px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.34);
  transition: background var(--transition), transform var(--transition);
}

.capability-item:nth-child(3n + 2) {
  --capability-color: var(--primary);
}

.capability-item:nth-child(3n) {
  --capability-color: var(--warning);
}

.capability-item:hover {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
}

.capability-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--capability-color);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.capability-index::after {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}

.capability-item h3 {
  margin: 30px 0 10px;
  font-size: 1.16rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.capability-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.72;
}

.technology-roadmap {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.technology-roadmap > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
}

.roadmap-icon {
  display: block;
  width: 18px;
  height: 18px;
}

.technology-roadmap p {
  max-width: 880px;
  margin: 0;
  color: var(--text-soft);
  font-weight: 650;
}

.feature-row,
.conversion-layout,
.vector-layout,
.download-layout,
.demo-grid {
  display: grid;
  gap: 28px;
}

.feature-row {
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  margin-bottom: 28px;
}

.feature-number,
.step-index {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(63, 142, 252, 0.12);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.feature-copy h3,
.conversion-copy h3,
.workflow-step h3 {
  margin: 16px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.feature-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(24, 33, 42, 0.08);
  font-weight: 600;
}

.editor-mock {
  overflow: hidden;
  border-radius: 10px;
  background: #f5f7fb;
  border: 1px solid #d5d5d8;
  box-shadow: 0 14px 34px rgba(23, 39, 74, 0.16);
}

.editor-toolbar,
.editor-body,
.tool-brand,
.segmented,
.preset-segment,
.object-status,
.shortcut-line,
.footer-main,
.footer-bottom {
  display: flex;
  align-items: center;
}

.editor-toolbar {
  min-height: 60px;
  gap: 8px;
  padding: 9px 10px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #dfe2e8;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);
}

.editor-app-logo {
  flex: 0 0 40px;
  border: 2px solid #333;
  border-radius: 10px;
}

.editor-tool,
.editor-icon-strip span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  color: #333;
  font-size: 17px;
}

.editor-tool {
  background: #f2f4f8;
}

.editor-tool.is-selected {
  color: #fff;
  background: #315fbd;
}

.editor-toolbar-spacer {
  flex: 1 1 18px;
  min-width: 8px;
  max-width: 40px;
}

.editor-icon-strip {
  display: flex;
  gap: 2px;
}

.editor-icon-strip span {
  position: relative;
  background: #fff;
}

.editor-real-tool img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.editor-standard-latex i {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 1;
  color: #315fbd;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.editor-standard-latex img {
  transform: scale(0.88);
}

.editor-action-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  color: #fff;
  background: #315fbd;
  white-space: nowrap;
}

.editor-action-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.editor-action-button b {
  font-size: 12px;
  font-weight: 600;
}

.editor-language {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  padding: 5px;
  border-radius: 19px;
  color: #00206a;
  background: #e1ebfd;
}

.editor-language span {
  min-width: 42px;
  padding: 7px 9px;
  border-radius: 15px;
  text-align: center;
  font-size: 12px;
}

.editor-language .is-active {
  background: #bcccfc;
}

.editor-body {
  align-items: stretch;
  min-height: 390px;
  background: #f5f7fb;
}

.editor-history {
  flex: 0 0 168px;
  padding: 12px 10px;
  overflow: hidden;
  background: #f5f5f5;
  border-right: 1px solid #dfe2e8;
}

.history-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin-bottom: 12px;
  padding: 0 11px;
  border: 1px solid #d5d5d8;
  border-radius: 6px;
  color: #7a8190;
  background: #fff;
  font-size: 12px;
}

.history-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 58px;
  margin-bottom: 8px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #525967;
  background: #fff;
}

.history-item.is-active {
  border-color: #8eabe8;
  box-shadow: inset 3px 0 #315fbd;
}

.history-item span {
  color: #8a91a0;
  font-size: 10px;
}

.history-item code {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  white-space: nowrap;
}

.editor-workspace {
  flex: 1;
  min-width: 0;
  padding: 12px;
}

.editor-preview-panel {
  overflow: hidden;
  border: 1px solid #dfe2e8;
  border-radius: 8px;
  background: #fff;
}

.editor-symbol-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid #dfe2e8;
  background: #fafbfc;
}

.editor-symbol-tabs span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-right: 1px solid #e6e8ed;
  color: #525967;
  font-family: Georgia, "Times New Roman", serif;
}

.editor-symbol-tabs span:last-child {
  border-right: 0;
}

.editor-symbol-tabs .is-active {
  color: #16499f;
  background: #e1ebfd;
  box-shadow: inset 0 -2px #315fbd;
}

.editor-canvas {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 28px;
  color: #20252f;
  background: #fff;
}

.editor-canvas math {
  font-size: 1.55rem;
}

.editor-source-line {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 84px;
  margin-top: 10px;
  padding: 11px 13px;
  border: 1px dashed #d5d5d8;
  border-radius: 10px;
  color: #333;
  background: #f9fafc;
}

.editor-source-line span {
  color: #315fbd;
  font-size: 12px;
  font-weight: 700;
}

.editor-source-line code {
  overflow-wrap: anywhere;
  color: #3d4553;
  font-size: 12px;
  line-height: 1.5;
}

.current-editor {
  color: #27354a;
  background: #edf4fb;
  border-color: #a9b8c8;
  border-radius: 8px;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.current-titlebar,
.current-menubar,
.current-command-row,
.current-statusbar,
.current-language-switch {
  display: flex;
  align-items: center;
}

.current-titlebar {
  min-height: 32px;
  gap: 8px;
  padding: 0 10px;
  color: #18212a;
  background: #eaf4fb;
  font-size: 12px;
}

.current-app-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #6d879d;
  border-radius: 50%;
  color: #245edb;
  background: #fff;
  font-weight: 700;
}

.current-window-actions {
  margin-left: auto;
  color: #26323d;
}

.current-menubar {
  min-height: 28px;
  gap: 24px;
  padding: 0 12px;
  background: #f7f7f7;
  color: #24303b;
  font-size: 12px;
}

.current-editor-shell {
  padding: 10px;
}

.current-editor-heading,
.current-editor-panel,
.current-statusbar {
  border: 1px solid #cfdceb;
  border-radius: 7px;
  background: #fff;
}

.current-editor-heading {
  margin-bottom: 10px;
  padding: 9px 12px;
  font-size: 17px;
}

.current-editor-panel {
  padding: 10px;
}

.current-commandbar {
  min-height: 76px;
  color: #506078;
  font-size: 11px;
}

.current-command-row {
  flex-wrap: wrap;
  gap: 10px;
  min-height: 34px;
}

.current-command-row > span,
.current-command-row > b,
.current-command-row > em {
  white-space: nowrap;
}

.command-divider {
  width: 1px;
  height: 22px;
  background: #dbe2ea;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.color-dot.black { background: #000; }
.color-dot.blue { background: #2b6ee5; }
.color-dot.red { background: #e32932; }
.color-dot.green { background: #16894e; }

.current-command-secondary {
  gap: 14px;
}

.editor-size-label {
  margin-left: auto;
}

.current-command-secondary button {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid #cbd8e7;
  border-radius: 5px;
  color: #4b5b72;
  background: #fff;
}

.size-track {
  position: relative;
  width: 94px;
  height: 6px;
  border-radius: 6px;
  background: #d9dfe6;
}

.size-track::before {
  content: "";
  position: absolute;
  inset: 0 30% 0 0;
  border-radius: inherit;
  background: #2d6de8;
}

.size-track i {
  position: absolute;
  top: 50%;
  left: 66%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2d6de8;
  transform: translate(-50%, -50%);
}

.current-formula-canvas {
  position: relative;
  min-height: 285px;
  padding: 22px 30px;
  overflow: hidden;
  border: 2px solid #28313a;
  border-radius: 6px;
  background: #fff;
}

.current-formula-canvas math {
  width: fit-content;
  font-size: 1.5rem;
}

.canvas-scroll {
  position: absolute;
  top: 30px;
  right: 22px;
  width: 8px;
  height: 82px;
  border-radius: 8px;
  background: #929292;
}

.canvas-scroll::before,
.canvas-scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 4px solid transparent;
  transform: translateX(-50%);
}

.canvas-scroll::before {
  top: -13px;
  border-bottom-color: #929292;
}

.canvas-scroll::after {
  bottom: -13px;
  border-top-color: #929292;
}

.canvas-keyboard {
  position: absolute;
  top: 22px;
  right: 4px;
  color: #4f83db;
  font-size: 15px;
}

.current-statusbar {
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  overflow: hidden;
}

.current-language-switch {
  min-width: 104px;
  padding: 3px;
  border-radius: 18px;
  background: #63758d;
  color: #fff;
}

.current-language-switch span {
  flex: 1;
  padding: 4px 9px;
  border-radius: 15px;
  text-align: center;
  font-size: 11px;
}

.current-language-switch .is-active {
  background: #2d6de8;
}

html[lang="en"] .current-language-switch span:first-child {
  background: transparent;
}

html[lang="en"] .current-language-switch span:last-child {
  background: #2d6de8;
}

.theme-button {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 30px;
  border-radius: 16px;
  color: #ffd11d;
  background: #3671e6;
  font-size: 20px;
}

.status-button {
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 5px;
  color: #fff;
  background: #2d67df;
  white-space: nowrap;
  font-size: 11px;
}

.status-button b {
  font-weight: 600;
}

@media (max-width: 720px) {
  .current-commandbar {
    font-size: 10px;
  }

  .current-command-row {
    gap: 8px;
  }

  .editor-size-label {
    margin-left: 0;
  }

  .current-formula-canvas {
    min-height: 220px;
    padding: 18px;
  }

  .current-formula-canvas math {
    font-size: 1.1rem;
  }

  .current-statusbar {
    flex-wrap: wrap;
  }

  .font-status {
    flex: 1 1 100%;
  }
}

.conversion-band {
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(63, 142, 252, 0.1), rgba(45, 106, 79, 0.08));
}

.conversion-layout,
.vector-layout,
.download-layout {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 30px;
}

.roundtrip-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  min-height: 180px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 33, 42, 0.08);
}

.roundtrip-rail > div {
  min-width: 156px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  text-align: center;
}

.roundtrip-rail small {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
}

.rail-formula math {
  min-height: 34px;
  margin: 0 auto;
  font-size: 1.35rem;
}

.rail-arrow {
  font-size: 1.7rem;
  color: var(--primary);
}

.demo-tool {
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.8);
}

.demo-toolbar {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(24, 33, 42, 0.08);
}

.tool-brand {
  gap: 10px;
}

.segmented,
.preset-segment {
  gap: 8px;
  flex-wrap: wrap;
}

.segmented button,
.preset-segment button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(24, 33, 42, 0.04);
  border-color: transparent;
}

.segmented button[aria-selected="true"],
.segmented button[aria-pressed="true"],
.preset-segment button[aria-pressed="true"],
.segmented button.is-active,
.preset-segment button.is-active {
  background: var(--surface-strong);
  color: var(--text-inverse);
}

.demo-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  padding: 24px;
}

.demo-source-pane,
.demo-document-pane {
  border-radius: 26px;
  background: #f9fbf8;
  border: 1px solid rgba(24, 33, 42, 0.08);
}

.demo-source-pane {
  padding: 24px;
}

.pane-label {
  margin-bottom: 14px;
  font-weight: 700;
}

.source-state {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.preset-segment {
  margin-bottom: 14px;
}

textarea {
  width: 100%;
  min-height: 180px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(24, 33, 42, 0.12);
  background: #ffffff;
  color: var(--text);
  line-height: 1.7;
}

.source-controls {
  margin-top: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.demo-document-pane {
  overflow: hidden;
}

.demo-page {
  padding: 28px 32px 24px;
  min-height: 378px;
  background:
    linear-gradient(180deg, rgba(63, 142, 252, 0.04), transparent 36%),
    #ffffff;
}

.demo-paragraph,
.display-anchor {
  position: relative;
}

.demo-paragraph {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-soft);
}

.formula-object {
  min-width: 250px;
  background: rgba(255, 255, 255, 0.96);
}

.formula-object:hover {
  transform: translateY(-2px);
}

.formula-object.is-display {
  display: flex;
  width: 100%;
  margin: 22px 0 10px;
}

.formula-object.is-display + .inline-tail {
  display: none;
}

.object-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: var(--accent);
  opacity: 0.45;
}

.top-left {
  top: 8px;
  left: 8px;
}

.top-right {
  top: 8px;
  right: 8px;
}

.bottom-left {
  bottom: 8px;
  left: 8px;
}

.bottom-right {
  right: 8px;
  bottom: 8px;
}

.display-anchor {
  min-height: 6px;
}

.object-status {
  gap: 10px;
  padding: 14px 22px 18px;
  color: var(--text-soft);
}

.status-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 8px rgba(45, 106, 79, 0.12);
}

.vector-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(63, 142, 252, 0.05));
}

.scale-control {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.scale-control span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.scale-control .scale-ticks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin-top: -7px;
  color: var(--text-muted);
}

.scale-ticks i {
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 500;
  text-align: center;
}

.scale-ticks i:first-child { text-align: left; }
.scale-ticks i:last-child { text-align: right; }

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.vector-stage {
  --grid-size: 32px;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 32px;
  border-radius: 24px;
  background: #f9fbfd;
  isolation: isolate;
}

.vector-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38, 78, 117, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 78, 117, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(38, 78, 117, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 78, 117, 0.04) 1px, transparent 1px);
  background-position: center;
  background-size:
    calc(var(--grid-size) * 4) calc(var(--grid-size) * 4),
    calc(var(--grid-size) * 4) calc(var(--grid-size) * 4),
    var(--grid-size) var(--grid-size),
    var(--grid-size) var(--grid-size);
  transition: background-size 160ms ease;
}

.vector-grid-lines::before,
.vector-grid-lines::after {
  content: "";
  position: absolute;
  z-index: 1;
  background: rgba(45, 103, 223, 0.28);
}

.vector-grid-lines::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.vector-grid-lines::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.vector-formula {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 32px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(45, 103, 223, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.vector-formula math {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  transform-origin: center;
  transition: transform 180ms cubic-bezier(0.2, 0.75, 0.2, 1);
  will-change: transform;
}

.vector-stage.is-extreme .vector-formula {
  border-color: rgba(45, 103, 223, 0.34);
  background: rgba(255, 255, 255, 0.94);
}

.vector-badge {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid rgba(15, 23, 32, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(15, 23, 32, 0.08);
}

.vector-badge span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #87f2bd;
}

.workflow-section {
  background: linear-gradient(180deg, rgba(15, 23, 32, 0.96), rgba(15, 23, 32, 0.9));
  color: var(--text-inverse);
}

.workflow-section .section-heading > p,
.workflow-section .section-kicker,
.workflow-step p,
.shortcut-line,
.workflow-step .step-index {
  color: rgba(249, 251, 253, 0.78);
}

.workflow-steps {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.workflow-step {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.step-visual {
  display: grid;
  place-items: center;
  min-height: 120px;
  margin: 18px 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.35rem;
}

.convert-visual {
  grid-template-columns: auto auto minmax(0, auto);
  align-content: center;
  justify-content: center;
  gap: 14px;
}

.convert-visual math {
  min-width: 112px;
  color: var(--text-inverse);
  font-size: 1.05rem;
}

.convert-visual i {
  color: rgba(249, 251, 253, 0.64);
  font-style: normal;
}

.edit-visual {
  grid-template-columns: auto auto;
  align-content: center;
  justify-content: center;
  gap: 24px;
}

.edit-visual math {
  color: var(--text-inverse);
  font-size: 1.55rem;
}

.edit-visual i {
  color: rgba(249, 251, 253, 0.72);
  font-style: normal;
}

.shortcut-line {
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
}

kbd {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.compatibility-table-wrap {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.8);
}

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

.compatibility-table th,
.compatibility-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(24, 33, 42, 0.08);
}

.compatibility-table thead th {
  background: rgba(24, 33, 42, 0.03);
}

.compatibility-table tbody tr:last-child th,
.compatibility-table tbody tr:last-child td {
  border-bottom: 0;
}

.compatibility-table th[scope="row"] {
  display: flex;
  align-items: center;
  gap: 12px;
}

.support {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.support.yes {
  color: var(--primary-dark);
}

.support.no,
.support.limited {
  color: var(--warning);
}

.table-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 22px;
  border-top: 1px solid rgba(24, 33, 42, 0.08);
}

.table-note span:first-child {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(63, 142, 252, 0.1);
  color: var(--accent);
  font-weight: 700;
}

.download-section {
  padding: 88px 0 110px;
}

.download-layout {
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.5fr);
  gap: clamp(44px, 7vw, 96px);
  min-height: 520px;
  padding: clamp(52px, 7vw, 88px);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(63, 142, 252, 0.1), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 243, 235, 0.9));
}

.download-mark {
  display: grid;
  place-items: center;
  align-self: stretch;
  border-right: 1px solid rgba(24, 33, 42, 0.08);
}

.download-mark img {
  width: clamp(132px, 15vw, 184px);
  height: auto;
  padding: 14px;
  border: 1px solid rgba(24, 33, 42, 0.06);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.download-copy {
  max-width: 760px;
}

.download-copy h2 {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 24px;
  line-height: 1;
}

.download-brand-en {
  font-size: clamp(2.75rem, 4.6vw, 4rem);
  font-weight: 760;
  white-space: nowrap;
}

.download-brand-cn {
  padding-left: 3px;
  color: var(--text-soft);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 680;
  line-height: 1.15;
  white-space: nowrap;
}

html[lang="en"] .download-brand-cn {
  display: none;
}

.download-copy > p:not(.section-kicker) {
  max-width: 620px;
  margin: 0 0 32px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.download-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-bottom: 34px;
}

.download-meta {
  padding-left: 2px;
  color: var(--text-soft);
  font-weight: 600;
}

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

.download-copy .requirements span {
  min-width: 0;
  min-height: 112px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.download-copy .requirements b {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.9rem;
}

.download-copy .requirements small {
  display: block;
  line-height: 1.55;
}

.site-footer {
  padding: 0 0 36px;
}

.footer-main,
.footer-bottom {
  justify-content: space-between;
  gap: 18px;
}

.footer-main {
  align-items: flex-start;
  padding: 26px 0 18px;
  border-top: 1px solid rgba(24, 33, 42, 0.08);
}

.footer-identity {
  display: grid;
  gap: 14px;
}

.footer-company {
  display: grid;
  justify-items: start;
  gap: 6px;
  text-align: left;
}

.footer-company p {
  margin: 0;
}

.footer-icp {
  width: fit-content;
  color: var(--text-muted);
  font-size: 0.78rem;
  transition: color var(--transition);
}

.footer-icp:hover {
  color: var(--accent);
}

html[lang="en"] .footer-company {
  display: none;
}

.footer-main nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom {
  padding-top: 16px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.footer-support {
  display: grid;
  gap: 6px;
}

.footer-support a {
  width: fit-content;
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: color var(--transition);
}

.footer-support a::before {
  content: "技术支持：";
}

html[lang="en"] .footer-support a::before {
  content: "Support: ";
}

.footer-support a:hover {
  color: var(--accent);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  transform: translate(-50%, 140%);
  min-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(15, 23, 32, 0.94);
  color: var(--text-inverse);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, opacity 220ms ease;
  opacity: 0;
}

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

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.word-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.latex-fallback {
  display: inline-block;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(24, 33, 42, 0.04);
  color: var(--text);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.95rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@keyframes pulse-select {
  0%,
  100% {
    opacity: 0.2;
    transform: scaleX(0.98);
  }
  50% {
    opacity: 0.85;
    transform: scaleX(1);
  }
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-download {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .hero-stage,
  .container,
  .mobile-menu,
  .workflow-steps {
    width: min(100vw - 28px, 980px);
  }

  .hero-layout {
    width: min(100vw - 28px, 980px);
    grid-template-areas:
      "copy"
      "stage";
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-stage {
    width: 100%;
  }

  .feature-row,
  .conversion-layout,
  .vector-layout,
  .download-layout,
  .demo-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading > p {
    max-width: none;
  }

  .technology-intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }

  .technology-story {
    max-width: 760px;
  }

  .technology-foundation {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .foundation-mark {
    width: 120px;
  }

  .foundation-points {
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .hero-scroll-cue {
    margin-left: 14px;
  }

  .hero-scroll-cue:hover {
    transform: none;
  }

  .download-layout {
    gap: 42px;
    min-height: 0;
    padding: clamp(42px, 7vw, 68px);
  }

  .download-mark {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid rgba(24, 33, 42, 0.08);
  }

  .download-copy {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .editor-toolbar {
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
  }

  .editor-toolbar-spacer {
    display: none;
  }

  .editor-icon-strip {
    order: 4;
    display: grid;
    grid-template-columns: repeat(6, minmax(36px, 1fr));
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid #e6e8ed;
  }

  .editor-icon-strip span {
    width: auto;
  }

  .editor-action-button {
    margin-left: auto;
  }

  .editor-action-button + .editor-action-button {
    margin-left: 0;
  }

  .editor-language span {
    min-width: 34px;
    padding-inline: 6px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 78px;
  }

  .hero {
    padding-top: 24px;
  }

  .nav-shell {
    gap: 14px;
  }

  .brand-cn {
    display: none;
  }

  .hero-stage,
  .hero-copy,
  .section,
  .vector-section,
  .download-section {
    padding-top: 20px;
  }

  .technology-section {
    padding-bottom: 62px;
  }

  .technology-intro {
    margin-bottom: 32px;
  }

  .technology-heading h2 {
    font-size: 2.25rem;
  }

  .technology-story > p {
    font-size: 1rem;
  }

  .technology-foundation {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 22px;
  }

  .foundation-mark {
    width: 104px;
  }

  .foundation-copy h3 {
    font-size: 1.55rem;
  }

  .foundation-points {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .capability-list {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .capability-item {
    min-height: 0;
    padding: 24px 22px;
  }

  .capability-item h3 {
    margin-top: 18px;
  }

  .technology-roadmap {
    align-items: start;
  }

  .download-layout {
    gap: 30px;
    padding: 30px 22px;
  }

  .download-mark {
    min-height: 150px;
  }

  .download-copy h2 {
    gap: 6px;
  }

  .download-brand-en {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
  }

  .download-brand-cn {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
  }

  .download-actions {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 28px;
  }

  .download-actions .button {
    justify-content: center;
    width: 100%;
  }

  .download-copy .requirements {
    grid-template-columns: 1fr;
  }

  .download-copy .requirements span {
    min-height: 0;
  }

  .office-ribbon,
  .office-tabs,
  .host-strip-inner,
  .demo-toolbar,
  .source-controls,
  .shortcut-line,
  .footer-main,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-company {
    align-self: start;
    width: auto;
  }

  .document-canvas,
  .demo-page,
  .demo-source-pane {
    padding: 22px 20px;
  }

  .hero-actions,
  .download-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-actions .button:first-child {
    grid-column: 1 / -1;
  }

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

  .hero-facts span {
    min-width: 0;
    padding: 10px;
    border-radius: 14px;
  }

  .hero-facts b {
    font-size: 0.98rem;
  }

  .hero-facts small {
    font-size: 0.76rem;
  }

  .hero-actions .button,
  .download-actions .button,
  .source-controls .button,
  .segmented,
  .preset-segment {
    width: 100%;
  }

  .hero-actions .button {
    gap: 6px;
    padding-inline: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .hero-demo-link,
  .hero-purchase-link {
    width: 100%;
  }

  .hero-demo-link {
    justify-content: center;
  }

  .segmented button,
  .preset-segment button {
    flex: 1;
  }

  .editor-body {
    min-height: 0;
  }

  .editor-history {
    display: none;
  }

  .editor-workspace {
    padding: 9px;
  }

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

  .editor-symbol-tabs span {
    min-height: 40px;
  }

  .editor-canvas {
    min-height: 170px;
    padding: 20px 12px;
  }

  .editor-canvas math {
    font-size: 1.15rem;
  }

  .compatibility-table-wrap {
    overflow-x: auto;
  }

  .compatibility-table {
    min-width: 720px;
  }
}

@media (max-width: 420px) {
  :root {
    --container: calc(100vw - 20px);
  }

  .nav-shell {
    padding-inline: 10px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .language-button {
    width: 42px;
    padding-inline: 0;
    justify-content: center;
  }

  .language-button span,
  .language-button .chevron {
    display: none;
  }

  .hero-stage,
  .container,
  .mobile-menu,
  .workflow-steps {
    width: calc(100vw - 20px);
  }

  .hero-stage {
    padding: 10px;
    border-radius: 14px;
  }

  .office-window,
  .demo-tool,
  .download-layout {
    border-radius: 10px;
  }

  .editor-toolbar {
    min-height: 52px;
    padding: 6px;
  }

  .editor-app-logo,
  .editor-tool,
  .editor-action-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
    flex-basis: 36px;
  }

  .editor-toolbar-spacer {
    display: none;
  }

  .editor-action-button,
  .editor-action-button + .editor-action-button {
    order: 5;
    display: inline-flex;
    flex: 1 1 calc(50% - 3px);
    width: auto;
    margin-left: 0;
    padding: 0 8px;
    justify-content: center;
  }

  .editor-action-button b {
    display: inline;
  }

  .editor-language {
    margin-left: auto;
    padding: 3px;
  }

  .editor-language span {
    min-width: 38px;
    padding: 6px 4px;
  }

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

  .editor-source-line code {
    font-size: 10px;
  }

  .formula-object {
    min-width: 0;
    max-width: 100%;
  }

  .vector-stage {
    min-height: 330px;
    padding: 12px;
  }

  .vector-formula {
    min-height: 280px;
    padding: 18px;
    margin-top: 0;
  }

  .vector-badge {
    padding: 7px 10px;
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions .button:first-child {
    grid-column: auto;
  }

  .hero-purchase-link {
    padding: 12px 0 0;
    border-top: 1px solid rgba(24, 33, 42, 0.14);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
