:root {
  --ink: #15231d;
  --muted: #5e6d65;
  --paper: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #eaf1ed;
  --line: #d7e0da;
  --scan: #087f68;
  --scan-dark: #075e50;
  --scan-soft: #dff3ec;
  --pointer: #e75d36;
  --pointer-soft: #fff0e9;
  --blue-soft: #dcecf8;
  --shadow: 0 20px 60px rgba(21, 35, 29, 0.11);
  --shadow-small: 0 8px 24px rgba(21, 35, 29, 0.08);
  --radius: 22px;
  --radius-small: 13px;
  --max: 1160px;
  --font-body: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Arial Narrow", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-data: "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 35, 29, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 35, 29, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 85% 5%, rgba(8, 127, 104, 0.1), transparent 28rem);
  content: "";
  pointer-events: none;
}

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

a {
  color: var(--scan-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--scan);
}

button,
input {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(231, 93, 54, 0.42);
  outline-offset: 3px;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(215, 224, 218, 0.9);
  background: rgba(245, 247, 244, 0.91);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: var(--ink);
  border-radius: 12px 4px 12px 4px;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand-mark img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--paper);
}

.brand-mark.is-missing img {
  display: none;
}

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

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 9px 11px;
  color: #34463e;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--scan-dark);
  background: var(--scan-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.header-download {
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px 5px 12px 5px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: var(--scan);
  box-shadow: 0 10px 25px rgba(8, 127, 104, 0.22);
}

.btn-primary:hover {
  color: #ffffff;
  background: var(--scan-dark);
}

.btn-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.btn-secondary:hover {
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow-small);
}

.btn-lg {
  min-height: 54px;
  padding-inline: 24px;
  font-size: 17px;
}

.btn-icon {
  font-family: var(--font-data);
  font-size: 18px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--scan-dark);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  width: 24px;
  height: 2px;
  background: var(--pointer);
  content: "";
}

.hero {
  padding: clamp(54px, 7vw, 96px) 0 70px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.82fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.5vw, 78px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
  color: var(--scan);
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: #43544b;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.8;
}

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

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.hero-note li::before {
  margin-right: 7px;
  color: var(--scan);
  content: "✓";
  font-weight: 900;
}

.memory-window {
  position: relative;
  padding: 10px;
  background: #cad5cf;
  border: 1px solid #aebdb5;
  border-radius: 18px 7px 18px 7px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.memory-window::before {
  position: absolute;
  top: 42%;
  right: -55px;
  width: 140px;
  height: 2px;
  background: var(--pointer);
  content: "";
  transform: rotate(-12deg);
}

.memory-window::after {
  position: absolute;
  right: -56px;
  bottom: 45%;
  width: 9px;
  height: 9px;
  background: var(--pointer);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(231, 93, 54, 0.14);
  content: "";
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 5px 10px;
  color: #24352d;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
}

.window-actions {
  display: flex;
  gap: 5px;
}

.window-actions i {
  width: 9px;
  height: 9px;
  background: #8fa198;
  border-radius: 50%;
}

.window-actions i:last-child {
  background: var(--pointer);
}

.memory-body {
  padding: 16px;
  background: #f9fbf9;
  border: 1px solid #b8c7bf;
  border-radius: 10px 3px 10px 3px;
}

.process-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  padding: 8px 10px;
  color: #607169;
  background: #edf2ef;
  border: 1px solid #d4ddd8;
  font-family: var(--font-data);
  font-size: 11px;
}

.process-dot {
  width: 8px;
  height: 8px;
  background: var(--scan);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--scan-soft);
}

.scanner-grid {
  display: grid;
  grid-template-columns: 1fr 114px;
  gap: 10px;
}

.scanner-label {
  display: block;
  margin-bottom: 4px;
  color: #63746b;
  font-family: var(--font-data);
  font-size: 10px;
  text-transform: uppercase;
}

.fake-input {
  height: 40px;
  padding: 9px 11px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #bccbc3;
  font-family: var(--font-data);
  font-weight: 700;
}

.scan-buttons {
  display: grid;
  gap: 6px;
}

.scan-button {
  display: grid;
  min-height: 38px;
  place-items: center;
  color: #ffffff;
  background: var(--scan);
  border-radius: 6px 2px 6px 2px;
  font-size: 11px;
  font-weight: 800;
}

.scan-button.alt {
  color: var(--ink);
  background: var(--blue-soft);
}

.result-table {
  margin-top: 14px;
  border: 1px solid #c7d3cc;
  font-family: var(--font-data);
  font-size: 10px;
}

.result-head,
.result-line {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 0.7fr;
  gap: 8px;
  padding: 7px 9px;
}

.result-head {
  color: #607169;
  background: #e8eeea;
  font-weight: 800;
  text-transform: uppercase;
}

.result-line {
  border-top: 1px solid #e4eae7;
}

.result-line.active {
  color: #ffffff;
  background: var(--scan);
}

.memory-status {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #64766d;
  font-family: var(--font-data);
  font-size: 10px;
}

.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section-soft {
  background: rgba(234, 241, 237, 0.72);
  border-block: 1px solid var(--line);
}

.section-dark {
  color: #eaf1ed;
  background: var(--ink);
}

.section-dark .section-kicker,
.section-dark a {
  color: #91dfce;
}

.section-dark .section-head p,
.section-dark .card p {
  color: #aebdb5;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-head > div {
  max-width: 720px;
}

.section-head h2,
.content-block h2,
.download-panel h2,
.legal-block h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-head p {
  max-width: 670px;
  margin: 12px 0 0;
  color: var(--muted);
}

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

.card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius) 8px var(--radius) 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.card-mark {
  display: inline-grid;
  min-width: 42px;
  height: 32px;
  padding-inline: 8px;
  place-items: center;
  color: var(--scan-dark);
  background: var(--scan-soft);
  border-radius: 8px 3px 8px 3px;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 900;
}

.card h3 {
  margin: 20px 0 8px;
  font-size: 20px;
  line-height: 1.4;
}

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

.card-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 800;
}

.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: clamp(30px, 5vw, 52px);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 30px 10px 30px 10px;
  box-shadow: var(--shadow);
}

.download-panel::after {
  position: absolute;
  top: -70px;
  right: 15%;
  width: 180px;
  height: 180px;
  background: repeating-linear-gradient(90deg, transparent 0 11px, rgba(8, 127, 104, 0.08) 11px 12px);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.download-panel p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  padding: 6px 10px;
  color: #46574e;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.download-action {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 210px;
  gap: 10px;
  text-align: center;
}

.download-action small {
  color: var(--muted);
  font-size: 11px;
}

.notice {
  margin: 22px 0 0;
  padding: 16px 18px;
  color: #66402f;
  background: var(--pointer-soft);
  border: 1px solid #f5c9b8;
  border-left: 4px solid var(--pointer);
  border-radius: 8px;
  font-size: 14px;
}

.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.step::before {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--scan-dark);
  background: var(--scan-soft);
  border-radius: 13px 4px 13px 4px;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 900;
}

.step h3 {
  margin: 1px 0 6px;
  font-size: 19px;
}

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

.screenshot-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.82fr 0.82fr;
  gap: 16px;
}

.screenshot-card {
  margin: 0;
  padding: 9px;
  background: #cbd6d0;
  border: 1px solid #b5c2bb;
  border-radius: 15px 5px 15px 5px;
}

.screenshot-media {
  position: relative;
  display: grid;
  min-height: 265px;
  place-items: center;
  overflow: hidden;
  background: #1d2923;
  border-radius: 9px 2px 9px 2px;
}

.screenshot-card:first-child .screenshot-media {
  min-height: 380px;
}

.screenshot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-media.is-missing img {
  display: none;
}

.image-fallback {
  display: none;
  max-width: 240px;
  padding: 28px;
  color: #adc0b6;
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.image-fallback strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 15px;
}

.screenshot-media.is-missing .image-fallback {
  display: block;
}

.screenshot-card figcaption {
  padding: 12px 7px 5px;
  color: #43544b;
  font-size: 13px;
}

.tutorial-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.tutorial-figure {
  display: flex;
  min-width: 0;
  margin: 0;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #d7d7d4;
  box-shadow: 5px 5px 0 #e3e3e0;
}

.tutorial-figure.wide {
  grid-column: 1 / -1;
}

.tutorial-image {
  display: grid;
  min-height: 230px;
  padding: 12px;
  place-items: center;
  overflow: hidden;
  background: #eeeeec;
  border-bottom: 1px solid #d7d7d4;
}

.tutorial-figure.wide .tutorial-image {
  min-height: 300px;
}

.tutorial-image img {
  width: auto;
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
}

.tutorial-figure figcaption {
  padding: 14px 16px 16px;
  color: #62625f;
  font-size: 13px;
  line-height: 1.65;
}

.tutorial-figure figcaption strong {
  display: block;
  margin-bottom: 3px;
  color: #222222;
  font-size: 14px;
}

.source-note {
  margin-top: 20px;
  color: #73736f;
  font-size: 12px;
}

/* 汉化步骤按图文一一对应排列 */
.language-steps {
  display: grid;
  gap: 20px;
  margin: 28px 0 30px;
}

.language-step {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: stretch;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d7d7d4;
  box-shadow: 6px 6px 0 #e1e1de;
}

.language-step-copy {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-content: start;
  gap: 18px;
  padding: 28px 24px;
}

.language-step-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #ffffff;
  background: #222222;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 800;
}

.language-step-copy h3 {
  margin: 3px 0 9px;
  color: #222222;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.35;
}

.language-step-copy p {
  margin: 0;
  color: #62625f;
  font-size: 14px;
}

.language-step-copy .code-line {
  margin-bottom: 0;
  font-size: 12px;
}

.language-step-image {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 16px;
  flex-direction: column;
  justify-content: center;
  background: #eeeeec;
  border-left: 1px solid #d7d7d4;
}

.language-step-image img {
  width: auto;
  max-width: 100%;
  max-height: 360px;
  margin: auto;
  object-fit: contain;
}

.language-step-image figcaption {
  margin-top: 12px;
  color: #6d6d69;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 14px 5px 14px 5px;
}

.faq-list summary {
  position: relative;
  padding: 20px 52px 20px 22px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--scan);
  content: "+";
  font-family: var(--font-data);
  font-size: 22px;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

.page-hero {
  padding: clamp(52px, 7vw, 88px) 0 50px;
}

.page-hero h1 {
  max-width: 940px;
  font-size: clamp(38px, 6vw, 66px);
}

.page-hero > p,
.page-hero .container > p {
  max-width: 780px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.breadcrumb {
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

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

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 46px;
}

.content-main {
  min-width: 0;
}

.content-block {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.content-block:first-child {
  padding-top: 0;
}

.content-block h2 {
  margin-bottom: 18px;
  font-size: clamp(27px, 3.5vw, 38px);
}

.content-block h3 {
  margin: 26px 0 8px;
  font-size: 20px;
}

.content-block p,
.content-block li {
  color: #4b5c53;
}

.content-block ul,
.content-block ol {
  padding-left: 1.35em;
}

.content-block li + li {
  margin-top: 9px;
}

.sidebar {
  position: sticky;
  top: 94px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 18px 6px 18px 6px;
}

.sidebar strong {
  display: block;
  margin-bottom: 12px;
}

.sidebar a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
}

.sidebar .btn {
  margin-top: 15px;
  color: #ffffff;
}

.code-line {
  display: block;
  margin: 15px 0;
  padding: 14px 16px;
  overflow-x: auto;
  color: #c9f3e9;
  background: var(--ink);
  border-radius: 9px;
  font-family: var(--font-data);
  font-size: 13px;
  white-space: nowrap;
}

.compare-table {
  width: 100%;
  margin: 18px 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  font-size: 14px;
}

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

.compare-table th {
  background: var(--surface-soft);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

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

.legal-alert {
  margin-bottom: 28px;
  padding: 24px;
  background: var(--pointer-soft);
  border: 1px solid #efc6b7;
  border-radius: 16px 5px 16px 5px;
}

.legal-alert h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.legal-alert p {
  margin: 0;
}

.legal-block {
  position: relative;
  padding: 32px 0 32px 60px;
  border-top: 1px solid var(--line);
}

.legal-block > span {
  position: absolute;
  top: 39px;
  left: 0;
  color: var(--scan);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 900;
}

.legal-block h2 {
  font-size: 30px;
}

.legal-block p {
  color: var(--muted);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a {
  padding: 9px 13px;
  color: #3c4e45;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
}

.related-links a:hover {
  color: var(--scan-dark);
  border-color: #a7c8bc;
}

.site-footer {
  color: #c1cec7;
  background: #101b16;
}

.footer-alert {
  padding: 22px 0;
  color: #ffffff;
  background: #7c321f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.footer-alert strong {
  display: block;
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: 0.01em;
}

.footer-alert span {
  display: block;
  margin-top: 3px;
  color: #ffd9cd;
  font-size: 13px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr;
  gap: 48px;
  padding: 48px 0 38px;
}

.footer-main h2,
.footer-main h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-main h2 {
  font-size: 21px;
}

.footer-main h3 {
  font-size: 14px;
}

.footer-main p {
  max-width: 600px;
  margin: 0;
  color: #9eafa6;
  font-size: 13px;
}

.footer-main ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-main li + li {
  margin-top: 8px;
}

.footer-main a {
  color: #c1cec7;
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 26px;
  color: #7f9188;
  border-top: 1px solid #2a3932;
  font-family: var(--font-data);
  font-size: 11px;
}

.floating-download {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 150;
  padding: 10px 0;
  background: rgba(16, 27, 22, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -10px 30px rgba(11, 20, 16, 0.18);
  backdrop-filter: blur(14px);
  transform: translateY(115%);
  transition: transform 220ms ease;
}

.floating-download.show {
  transform: translateY(0);
}

.floating-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.floating-copy {
  display: grid;
  color: #ffffff;
  line-height: 1.35;
}

.floating-copy strong {
  font-size: 14px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 108px;
  z-index: 300;
  max-width: min(360px, calc(100% - 40px));
  padding: 14px 17px;
  color: #ffffff;
  background: var(--ink);
  border: 1px solid #3d5047;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .header-download {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .nav-open .site-nav {
    display: grid;
  }

  .nav-open .nav-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

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

  .memory-window {
    width: min(100%, 620px);
    margin-inline: auto;
    transform: none;
  }

  .card-grid,
  .screenshot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .screenshot-card:first-child {
    grid-column: 1 / -1;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 24px, var(--max));
  }

  .header-inner {
    min-height: 62px;
  }

  .site-nav {
    top: 62px;
    right: 12px;
    left: 12px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(37px, 12vw, 54px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .memory-window::before,
  .memory-window::after {
    display: none;
  }

  .memory-body {
    padding: 11px;
  }

  .scanner-grid {
    grid-template-columns: 1fr 95px;
  }

  .result-head,
  .result-line {
    grid-template-columns: 1.1fr 0.65fr 0.65fr;
    padding-inline: 7px;
  }

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

  .section-head {
    display: block;
  }

  .card {
    padding: 23px;
  }

  .download-panel {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }

  .download-action {
    width: 100%;
    min-width: 0;
  }

  .screenshot-card:first-child {
    grid-column: auto;
  }

  .screenshot-card:first-child .screenshot-media,
  .screenshot-media {
    min-height: 240px;
  }

  .page-hero > p,
  .page-hero .container > p {
    font-size: 16px;
  }

  .step {
    grid-template-columns: 44px 1fr;
    gap: 12px;
  }

  .step::before {
    width: 40px;
    height: 40px;
  }

  .legal-block {
    padding-left: 0;
  }

  .legal-block > span {
    position: static;
    display: block;
    margin-bottom: 8px;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .footer-main {
    gap: 28px;
  }

  .footer-bottom {
    display: block;
  }

  .floating-copy {
    display: none;
  }

  .floating-inner .btn {
    width: 100%;
    min-height: 50px;
  }

  .toast {
    right: 12px;
    bottom: 86px;
    max-width: calc(100% - 24px);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* 灰黑版视觉系统：参考经典开源软件官网的清晰信息结构。 */
:root {
  --ink: #1d1d1f;
  --muted: #707070;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f4f4f2;
  --line: #dfdfdc;
  --scan: #242424;
  --scan-dark: #0e0e0e;
  --scan-soft: #ececea;
  --pointer: #4f4f4f;
  --pointer-soft: #f1f1ef;
  --blue-soft: #e8e8e5;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.13);
  --shadow-small: 0 9px 22px rgba(0, 0, 0, 0.09);
  --radius: 8px;
  --radius-small: 5px;
  --max: 1180px;
  --font-body: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: Georgia, "Times New Roman", "Songti SC", SimSun, serif;
  --font-data: "Cascadia Mono", Consolas, monospace;
}

body {
  color: var(--ink);
  background: var(--paper);
  background-image: none;
}

body::before {
  display: none;
}

a {
  color: #303030;
}

a:hover {
  color: #000000;
}

.container {
  width: min(100% - 40px, var(--max));
}

.site-header {
  min-height: 78px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e6e6e3;
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 78px;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  overflow: visible;
  color: transparent;
  background: transparent;
  border-radius: 0;
}

.brand-mark > span {
  display: none;
}

.brand-mark img {
  background: transparent;
  object-fit: contain;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: -0.025em;
}

.brand-copy small {
  color: #8a8a87;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.site-nav {
  gap: 18px;
}

.site-nav a {
  position: relative;
  padding: 28px 3px 24px;
  color: #3c3c3c;
  background: transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  background: #1b1b1b;
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #000000;
  background: transparent;
}

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

.nav-toggle {
  background: #ffffff;
  border-color: #d8d8d5;
  border-radius: 4px;
}

.btn {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 3px;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 150ms ease, box-shadow 150ms ease, color 150ms ease, background 150ms ease;
}

.btn::after {
  margin-left: 2px;
  content: "↗";
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
}

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

.btn-primary {
  color: #ffffff;
  background: #1c1c1c;
  border-color: #1c1c1c;
  box-shadow: 5px 5px 0 #bdbdb8;
}

.btn-primary:hover {
  color: #ffffff;
  background: #000000;
  box-shadow: 3px 3px 0 #8f8f8b;
}

.btn-secondary {
  color: #1c1c1c;
  background: #ffffff;
  border-color: #1c1c1c;
}

.btn-secondary:hover {
  color: #ffffff;
  background: #1c1c1c;
  box-shadow: none;
}

.btn-lg {
  min-height: 56px;
  padding-inline: 25px;
  font-size: 15px;
}

.eyebrow,
.section-kicker {
  color: #5c5c5a;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.eyebrow::before,
.section-kicker::before {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero {
  position: relative;
  padding: clamp(66px, 7vw, 105px) 0 clamp(72px, 8vw, 112px);
  color: #ffffff;
  background: #292929;
  border-bottom: 8px solid #101010;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 100%;
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.88fr);
  gap: clamp(48px, 7vw, 94px);
}

.hero .eyebrow {
  color: #c7c7c3;
}

.hero h1 {
  max-width: 680px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(50px, 6.8vw, 84px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
  color: #ffffff;
}

.hero-lead {
  max-width: 640px;
  color: #cdcdca;
  font-size: 17px;
  line-height: 1.85;
}

.hero .btn-primary {
  color: #1b1b1b;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 5px 5px 0 #898985;
}

.hero .btn-primary:hover {
  color: #ffffff;
  background: #0c0c0c;
  border-color: #ffffff;
}

.hero .btn-secondary {
  color: #ffffff;
  background: transparent;
  border-color: #777774;
}

.hero .btn-secondary:hover {
  color: #1b1b1b;
  background: #ffffff;
}

.hero-note {
  color: #aeadab;
}

.hero-note li::before {
  color: #ffffff;
  content: "—";
}

.hero-product {
  position: relative;
  min-height: 0;
}

/* 首页首屏直接展示本地中文界面截图 */
.hero-preview-stage {
  width: min(100%, 520px);
  margin: 0 0 0 auto;
  overflow: hidden;
  background: #f2f2ef;
  border: 1px solid #ffffff;
  box-shadow: 18px 18px 0 #121212;
}

.hero-preview-bar {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  color: #777773;
  background: #e8e8e5;
  border-bottom: 1px solid #cfcfcb;
  font-family: var(--font-data);
  font-size: 9px;
}

.hero-preview-bar span {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: #8d8d88;
  border-radius: 50%;
}

.hero-preview-bar strong {
  margin-left: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-preview-stage > img {
  width: 100%;
  aspect-ratio: 614 / 388;
  object-fit: cover;
  object-position: top left;
}

.hero-preview-stage figcaption {
  padding: 10px 13px;
  color: #686864;
  background: #ffffff;
  border-top: 1px solid #d3d3cf;
  font-size: 11px;
}

.section {
  padding: clamp(68px, 8vw, 106px) 0;
}

.section-soft {
  background: #f5f5f3;
  border-color: #dededb;
}

.section-dark {
  background: #202020;
}

.section-dark .section-kicker,
.section-dark a {
  color: #e3e3df;
}

.section-head h2,
.content-block h2,
.download-panel h2,
.legal-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.card {
  position: relative;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #dcdcd9;
  border-radius: 0;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 58px;
  height: 4px;
  background: #1c1c1c;
  content: "";
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 #dededb;
}

.card-mark {
  min-width: auto;
  height: auto;
  padding: 0;
  color: #777774;
  background: transparent;
  border-radius: 0;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 23px;
}

.section-dark .card {
  background: #292929;
  border-color: #474745;
}

.section-dark .card::before {
  background: #f0f0ed;
}

.section-dark .card h3 {
  color: #ffffff;
}

.section-dark .card:hover {
  box-shadow: 8px 8px 0 #0d0d0d;
}

.download-panel {
  color: #ffffff;
  background: #242424;
  border: 0;
  border-radius: 0;
  box-shadow: 12px 12px 0 #d4d4d0;
}

.download-panel::after {
  top: 0;
  right: 0;
  width: 32%;
  height: 100%;
  background: repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.065) 31px 32px);
  border-radius: 0;
}

.download-panel h2 {
  color: #ffffff;
}

.download-panel p,
.download-action small {
  color: #bdbdb9;
}

.download-panel .section-kicker {
  color: #cfcfcb;
}

.download-panel .btn-primary {
  color: #161616;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 5px 5px 0 #777774;
}

.tag {
  color: #d4d4d0;
  background: transparent;
  border-color: #60605d;
}

.notice {
  color: #343434;
  background: #f2f2ef;
  border-color: #d7d7d3;
  border-left-color: #222222;
  border-radius: 0;
}

.step::before {
  color: #ffffff;
  background: #242424;
  border-radius: 0;
}

.screenshot-card {
  background: #ededeb;
  border-color: #d4d4d1;
  border-radius: 0;
}

.screenshot-media {
  background: #252525;
  border-radius: 0;
}

.faq-list details {
  background: #ffffff;
  border-color: #dcdcd9;
  border-radius: 0;
}

.faq-list summary::after {
  color: #222222;
}

.page-hero {
  position: relative;
  padding: clamp(60px, 7vw, 92px) 0 58px;
  border-bottom: 1px solid #ddddda;
}

.page-hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 28%;
  height: 5px;
  background: #242424;
  content: "";
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 68px);
}

.breadcrumb {
  padding-top: 28px;
  font-family: var(--font-data);
  font-size: 11px;
}

.sidebar {
  background: #ffffff;
  border-color: #dcdcd9;
  border-radius: 0;
  box-shadow: 6px 6px 0 #e3e3e0;
}

.sidebar .btn {
  color: #ffffff;
}

.sidebar a.btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.code-line {
  color: #f2f2ef;
  background: #202020;
  border-radius: 0;
}

.compare-table {
  border-color: #d8d8d5;
  border-radius: 0;
}

.compare-table th {
  background: #ededeb;
}

.legal-alert {
  background: #ededeb;
  border-color: #d3d3cf;
  border-left: 5px solid #202020;
  border-radius: 0;
}

.related-links a {
  color: #343434;
  background: #ffffff;
  border-color: #d5d5d2;
  border-radius: 2px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  color: #d1d1ce;
  background: #191919;
}

/* 非官方声明置于页脚最后，作为低干扰的辅助信息 */
.footer-alert {
  order: 3;
  padding: 11px 0 13px;
  color: #858582;
  background: #141414;
  border-top: 1px solid #2c2c2b;
  border-bottom: 0;
  text-align: left;
}

.footer-main {
  order: 1;
}

.footer-bottom {
  order: 2;
}

.footer-alert .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer-alert strong {
  display: inline;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.footer-alert span {
  display: inline;
  margin-top: 0;
  color: #686865;
  font-size: 11px;
  text-align: right;
}

.floating-download {
  background: rgba(27, 27, 27, 0.97);
  border-top-color: #555552;
}

.floating-inner .btn-primary {
  color: #171717;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: none;
}

.floating-inner .btn-primary:hover {
  color: #ffffff;
  background: #3b3b3b;
}

.toast {
  background: #202020;
  border-color: #555552;
  border-radius: 2px;
}

@media (max-width: 980px) {
  .site-nav {
    top: 78px;
    gap: 0;
    border-radius: 0;
  }

  .site-nav a {
    padding: 13px 14px;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a.active {
    background: #ededeb;
  }

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

  .hero-product {
    width: min(100%, 630px);
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .footer-alert .container {
    display: block;
  }

  .footer-alert span {
    display: block;
    margin-top: 3px;
    text-align: left;
  }

  .site-header,
  .header-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .site-nav {
    top: 66px;
    right: 14px;
    left: 14px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: clamp(45px, 13vw, 58px);
  }

  .hero-preview-stage {
    width: calc(100% - 12px);
    margin: 0;
    box-shadow: 10px 10px 0 #111111;
  }

  .card,
  .download-panel {
    padding: 25px 22px;
  }

  .download-panel {
    box-shadow: 7px 7px 0 #d4d4d0;
  }

  .floating-inner .btn {
    box-shadow: none;
  }

  .tutorial-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tutorial-figure.wide {
    grid-column: auto;
  }

  .tutorial-image,
  .tutorial-figure.wide .tutorial-image {
    min-height: 0;
    padding: 8px;
  }

  .tutorial-image img {
    max-height: 360px;
  }

  .language-step {
    grid-template-columns: 1fr;
  }

  .language-step-copy {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 18px;
  }

  .language-step-number {
    width: 40px;
    height: 40px;
  }

  .language-step-copy h3 {
    font-size: 20px;
  }

  .language-step-image {
    padding: 10px;
    border-top: 1px solid #d7d7d4;
    border-left: 0;
  }

  .language-step-image img {
    max-height: 390px;
  }
}
