/*!
 * 小番茄混淆解图 · site.css
 * 设计语言参考 Engokai：主色 #277463、胶囊按钮、24px 圆角卡片、
 * 粉绿渐变、扁平层次与充足留白。中文排版按长文阅读调整行高。
 */

:root {
  --green: #277463;
  --green-dark: #205d50;
  --green-soft: #e8f8ec;
  --green-soft-2: #f3fbf6;
  --pink-soft: #ffeae9;
  --pink-soft-2: #fff6f4;
  --ink: #2e3d36;
  --muted: #535353;
  --line: #e5e5e5;
  --line-soft: #eef2ef;
  --paper: #ffffff;
  --canvas: #fbfdfb;
  --purple: #965fa1;
  --blue: #3e6a9c;
  --red: #a84363;
  --orange: #be753a;
  --tomato: #d9573f;
  --tomato-dark: #b94430;

  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-full: 48px;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --container: 1120px;
  --header-height: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: rgba(39, 116, 99, 0.18);
  color: var(--ink);
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

img {
  height: auto;
}

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

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(39, 116, 99, 0.32);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-150%);
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  transition: transform 0.2s var(--ease);
}

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

/* ============================================================
   通用按钮
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn--secondary {
  background: #fff;
  border-color: var(--green);
  color: var(--green);
}

.btn--secondary:hover {
  background: var(--green);
  color: #fff;
}

.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--green);
}

.btn--light:hover {
  background: var(--green-soft);
  border-color: var(--green-soft);
  color: var(--green-dark);
}

.btn--ghost {
  min-height: 44px;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 14px;
}

.btn--ghost:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn--sm {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  background: #f0f2f1;
  border-color: #e2e6e3;
  color: #9aa39d;
  transform: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 500;
}

.link-arrow::after {
  content: "→";
  font-size: 1.05em;
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   顶部导航
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(229, 229, 229, 0.85);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -26px rgba(46, 61, 54, 0.55);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: var(--pink-soft);
  color: var(--green);
  flex: 0 0 auto;
}

.brand__mark svg {
  width: 26px;
  height: 26px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.brand__text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 16px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover {
  color: var(--green-dark);
}

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

.nav__link.is-active {
  color: var(--green);
  font-weight: 700;
}

.header__actions {
  display: none;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 55;
  top: var(--header-height);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 24px 24px;
  box-shadow: 0 24px 50px -30px rgba(46, 61, 54, 0.45);
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  font-weight: 500;
}

.mobile-menu__link::after {
  content: "→";
  color: #a6b0aa;
  font-weight: 400;
}

.mobile-menu__link.is-active {
  color: var(--green);
  font-weight: 700;
}

.mobile-menu__note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12.5px;
}

.menu-backdrop {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 54;
  background: rgba(46, 61, 54, 0.3);
  backdrop-filter: blur(2px);
}

/* ============================================================
   首页 Hero 与工具
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px 0 64px;
  background: linear-gradient(160deg, #ffeae9 0%, #fff9f6 44%, #e8f8ec 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  top: -260px;
  right: -180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75), transparent 66%);
}

.hero::after {
  width: 460px;
  height: 460px;
  bottom: -260px;
  left: -200px;
  background: radial-gradient(circle, rgba(39, 116, 99, 0.09), transparent 68%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero__copy {
  max-width: 760px;
  text-align: center;
}

.hero__title {
  color: var(--ink);
  font-size: clamp(2rem, 1.35rem + 2.3vw, 2.85rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 660px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.8;
  text-wrap: pretty;
}

/* 工具外壳 */
.tool {
  width: 100%;
  max-width: 1000px;
  background: #fff;
  border: 1px solid rgba(229, 229, 229, 0.95);
  border-radius: var(--radius-md);
  padding: 18px;
}

.tool__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 14px;
}

.tool__bar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
}

.tool__bar-label strong {
  font-weight: 600;
}

.tool__bar-note {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34a87a;
  box-shadow: 0 0 0 4px rgba(52, 168, 122, 0.13);
  flex: 0 0 auto;
}

.tool__clear {
  border: 0;
  background: none;
  padding: 6px 4px;
  color: var(--red);
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tool__clear:hover {
  color: var(--green);
}

.tool__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 18px;
  align-items: stretch;
}

.tool__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  overflow: hidden;
  border: 1px dashed #cfdcd4;
  border-radius: var(--radius-sm);
  background-color: #fbfdfb;
  background-image: linear-gradient(45deg, #f2f6f3 25%, transparent 25%),
    linear-gradient(-45deg, #f2f6f3 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f2f6f3 75%),
    linear-gradient(-45deg, transparent 75%, #f2f6f3 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.tool__stage.is-dragover {
  border-color: var(--green);
  border-style: solid;
  background-color: var(--green-soft-2);
}

.tool__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 40px 24px;
  text-align: center;
}

.empty-art {
  width: 92px;
  height: 76px;
  margin-bottom: 8px;
  color: var(--green);
}

.empty-art svg {
  width: 100%;
  height: 100%;
}

.tool__empty-title {
  font-size: 17px;
  font-weight: 600;
}

.tool__empty-text {
  color: var(--muted);
  font-size: 13px;
}

.tool__empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.tool__empty-hint {
  margin-top: 6px;
  color: #5f6b64;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid #dbe3de;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.86em;
  line-height: 1.5;
}

.tool__preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.6);
}

.tool__preview img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  object-fit: contain;
}

.tool__progress {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(250, 253, 251, 0.82);
  backdrop-filter: blur(5px);
}

.tool__progress-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(260px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  text-align: center;
}

.tool__progress-card p {
  color: var(--muted);
  font-size: 13px;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 2.5px solid #dcebe3;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #edf3ef;
  appearance: none;
  -webkit-appearance: none;
}

.progress::-webkit-progress-bar {
  border-radius: 4px;
  background: #edf3ef;
}

.progress::-webkit-progress-value {
  border-radius: 4px;
  background: var(--green);
  transition: width 0.15s linear;
}

.progress::-moz-progress-bar {
  border-radius: 4px;
  background: var(--green);
}

.tool__dropmask {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(232, 248, 236, 0.9);
  color: var(--green-dark);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.tool__dropmask span {
  padding: 12px 22px;
  border: 1.5px dashed var(--green);
  border-radius: var(--radius-full);
  background: #fff;
  font-size: 14px;
}

.tool__stage.is-dragover .tool__dropmask {
  opacity: 1;
}

.tool__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 2px;
}

.run-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.run-actions .btn {
  min-height: 48px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
  padding: 4px 0 2px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.facts__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  min-width: 0;
}

.facts__row dt {
  color: #5f6b64;
  font-size: 11.5px;
  white-space: nowrap;
}

.facts__row dd {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.field__select {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23535353' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  font-size: 13px;
  appearance: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field__select:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(39, 116, 99, 0.16);
}

.field__hint {
  color: #5f6b64;
  font-size: 11.5px;
  line-height: 1.5;
}

.tool__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool__actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tool__actions-row .btn {
  width: 100%;
}

.tool__status {
  padding: 9px 12px;
  border-radius: 16px;
  background: #f6f9f7;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.tool__status.is-ok {
  background: var(--green-soft);
  color: var(--green-dark);
}

.tool__status.is-error {
  background: #fceff0;
  color: #8b2f3f;
}

/* ============================================================
   区块与通用卡片
   ============================================================ */

.section {
  padding: 72px 0;
}

.section--soft {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
}

.section--pink {
  background: linear-gradient(180deg, #fff7f5 0%, #ffffff 100%);
}

.section--tight {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head__title {
  margin-top: 12px;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.section-head__lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--green-soft);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.eyebrow--pink {
  background: var(--pink-soft);
  color: var(--red);
}

.eyebrow--plain {
  background: #f2f5f3;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.card:hover {
  border-color: #b8d5c8;
}

.card h3 {
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.45;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.card--soft-green {
  background: var(--green-soft-2);
  border-color: #d9eee2;
}

.card--soft-pink {
  background: var(--pink-soft-2);
  border-color: #f5dcd8;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
}

.card__icon svg {
  width: 23px;
  height: 23px;
}

.card__icon--pink {
  background: #fdeceb;
  color: var(--red);
}

.card__icon--purple {
  background: #f4ecf6;
  color: var(--purple);
}

.card__icon--blue {
  background: #edf3fa;
  color: var(--blue);
}

.card__icon--orange {
  background: #fbf0e7;
  color: var(--orange);
}

.card .card__kicker {
  color: #5f6b64;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.check-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

.check-list strong {
  color: var(--ink);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 0 20px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat strong {
  display: block;
  color: var(--green);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

/* 步骤 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 16px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.step__num {
  flex: 0 0 auto;
  color: #bcd9ca;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.step h3 {
  margin: 2px 0 8px;
  font-size: 16.5px;
  font-weight: 600;
}

.step p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

/* 对比滑动 */
.compare {
  max-width: 900px;
  margin: 0 auto;
}

.compare__frame {
  --pos: 50%;
  position: relative;
  aspect-ratio: 720 / 460;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  touch-action: pan-y;
}

.compare__layer {
  position: absolute;
  inset: 0;
}

.compare__layer--top {
  clip-path: inset(0 0 0 var(--pos));
}

.compare__layer canvas {
  width: 100%;
  height: 100%;
}

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 4;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.95);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(46, 61, 54, 0.08);
}

.compare__handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 18px rgba(46, 61, 54, 0.28);
}

.compare__tag {
  position: absolute;
  z-index: 3;
  top: 14px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.compare__tag--left {
  left: 14px;
}

.compare__tag--right {
  right: 14px;
  background: rgba(39, 116, 99, 0.9);
  color: #fff;
}

.compare__range {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare__range:focus-visible {
  opacity: 0;
}

.compare__frame:has(.compare__range:focus-visible) {
  outline: 3px solid rgba(39, 116, 99, 0.35);
  outline-offset: 3px;
}

.compare__caption {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
  text-align: center;
}

.compare__caption strong {
  color: var(--ink);
}

/* ============================================================
   页面 Hero / 面包屑 / 内页
   ============================================================ */

.breadcrumbs {
  padding-top: 20px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  color: #6b7770;
  font-size: 12.5px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: #c3ccc7;
}

.breadcrumbs a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs [aria-current="page"] {
  color: var(--muted);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 44px;
  background: linear-gradient(150deg, #fff3f0 0%, #fffaf7 52%, #edfaf1 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent 68%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 1.35rem + 1.7vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.page-hero__lead {
  max-width: 820px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.85;
  text-wrap: pretty;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid rgba(39, 116, 99, 0.18);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 500;
}

.chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.chip--pink {
  border-color: rgba(168, 67, 99, 0.18);
  color: var(--red);
}

.tool-section {
  padding: 0 0 64px;
  margin-top: -6px;
}

.tool-section .tool {
  max-width: 1120px;
  margin: 0 auto;
}

.tool-section--overlap {
  margin-top: -20px;
}

/* ============================================================
   正文长文
   ============================================================ */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 56px;
  align-items: start;
  padding: 56px 0 24px;
}

.article {
  min-width: 0;
  max-width: 780px;
}

.article--wide {
  max-width: none;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 24px;
  color: #6b7770;
  font-size: 12.5px;
}

.article__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article > h2 {
  margin: 54px 0 16px;
  padding-top: 4px;
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.article > h2:first-of-type {
  margin-top: 0;
}

.article > h3 {
  margin: 34px 0 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.article p {
  margin-bottom: 18px;
  color: #3d4b44;
  font-size: 15.5px;
  line-height: 1.9;
}

.article strong {
  color: var(--ink);
  font-weight: 600;
}

.article a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(39, 116, 99, 0.35);
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease);
}

.article a:hover {
  color: var(--green-dark);
  text-decoration-color: currentColor;
}

.article ul,
.article ol {
  margin: 0 0 20px;
  padding-left: 1.35em;
}

.article li {
  margin-bottom: 9px;
  color: #3d4b44;
  font-size: 15.5px;
  line-height: 1.85;
}

.article li::marker {
  color: var(--green);
}

.article blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--green-soft-2);
  color: #3d4b44;
}

.article blockquote p {
  margin: 0;
  font-size: 15px;
}

.article code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f0f5f2;
  color: #234a3d;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.article pre {
  margin: 22px 0;
  padding: 22px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: #22332c;
  color: #e9f4ee;
  line-height: 1.75;
  tab-size: 2;
}

.article pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: 13px;
}

.article hr {
  height: 1px;
  margin: 40px 0;
  border: 0;
  background: var(--line);
}

.article-figure {
  margin: 26px 0;
}

.article-figure figcaption {
  margin-top: 10px;
  color: #5f6b64;
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}

.article-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.toc {
  padding: 20px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.toc__title {
  margin-bottom: 10px;
  color: #5f6b64;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ul {
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.toc a:hover,
.toc a.is-active {
  border-left-color: var(--green);
  color: var(--green);
}

.aside-card {
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
}

.aside-card h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.aside-card p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.aside-card .btn {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 13px;
}

/* 提示框 */
.note {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid #d9eee2;
  border-radius: var(--radius-sm);
  background: var(--green-soft-2);
  color: #3d4b44;
  font-size: 14px;
  line-height: 1.75;
}

.note svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  color: var(--green);
}

.note p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.note strong {
  color: var(--ink);
}

.note--warn {
  border-color: #f3d9d3;
  background: #fff5f2;
}

.note--warn svg {
  color: var(--tomato);
}

.note--info {
  border-color: #dbe6f2;
  background: #f5f9fd;
}

.note--info svg {
  color: var(--blue);
}

/* 表格 */
.table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}

th,
td {
  padding: 13px 16px;
  border-top: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

thead th {
  border-top: 0;
  background: var(--green-soft-2);
  color: var(--green-dark);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

tbody th {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

td {
  color: #4b5952;
}

table code {
  white-space: nowrap;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 4px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}

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

.faq__item summary:hover {
  color: var(--green);
}

.faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--green);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.2;
  transition: transform 0.25s var(--ease);
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__body {
  padding: 0 4px 20px;
}

.faq__body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.faq__body p:last-child {
  margin-bottom: 0;
}

.faq__body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-group {
  margin-bottom: 40px;
}

.faq-group > h2 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

/* CTA 区块 */
.cta-band {
  padding: 24px 0 80px;
}

.cta-band__inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 46px 48px;
  border-radius: var(--radius-lg);
  background: var(--green);
  color: #fff;
}

.cta-band__inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -140px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.cta-band__inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -180px;
  right: 180px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 234, 233, 0.1);
}

.cta-band h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
}

.cta-band p {
  max-width: 560px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14.5px;
  line-height: 1.75;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.cta-band .btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.cta-band .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* 页面底部下一步链接 */
.next-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 10px;
}

.next-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.3s var(--ease);
}

.next-link:hover {
  border-color: var(--green);
}

.next-link strong {
  font-size: 15px;
  font-weight: 600;
}

.next-link span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.next-link::after {
  content: "→";
  margin-top: 4px;
  color: var(--green);
  font-size: 15px;
}

/* ============================================================
   曲线可视化
   ============================================================ */

.curve-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.curve-card svg {
  width: 100%;
  height: auto;
}

.curve-grid-dot {
  fill: #dbe8e1;
}

.curve-grid-dot.is-start {
  fill: var(--green);
}

.curve-grid-dot.is-end {
  fill: var(--tomato);
}

.curve-path {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.curve-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.curve-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.curve-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.curve-legend i.dot-end {
  background: var(--tomato);
}

.curve-legend i.dot-grid {
  background: #dbe8e1;
}

.playground {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.playground__controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.playground__control {
  display: grid;
  gap: 6px;
}

.playground__control label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
}

.playground__control output {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
}

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

.playground__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.playground__presets button {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--muted);
  font-size: 11.5px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.playground__presets button:hover {
  border-color: var(--green);
  color: var(--green);
}

.playground__stage {
  min-width: 0;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--green-soft-2);
}

.playground__stage svg {
  width: 100%;
  height: auto;
}

.playground__readout {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* ============================================================
   站点地图 / 404 / 页脚
   ============================================================ */

.sitemap-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
}

.sitemap-group h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
}

.sitemap-list {
  list-style: none;
}

.sitemap-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.sitemap-list a {
  display: inline-block;
  color: var(--green);
  font-size: 14.5px;
  font-weight: 500;
}

.sitemap-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sitemap-list p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 96px 0 72px;
  text-align: center;
}

.not-found .not-found__code {
  color: #d5ebe0;
  font-family: var(--font-mono);
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.not-found h1 {
  margin-top: 12px;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  font-weight: 700;
}

.not-found p {
  max-width: 520px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.not-found__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 13px;
}

.not-found__links a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  margin-top: 0;
  padding: 56px 0 22px;
  border-top: 1px solid var(--line);
  background: #f7fbf8;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.15fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
}

.brand--footer {
  align-items: flex-start;
}

.brand--footer .brand__mark {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid #dcebe3;
}

.footer__brand p {
  max-width: 340px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px !important;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--green-soft);
  color: var(--green-dark) !important;
  font-size: 11.5px !important;
  font-weight: 500;
}

.footer__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34a87a;
}

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

.footer__col h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: 8px;
}

.footer__col a {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e1eae5;
  color: #5f6b64;
  font-size: 12px;
}

.footer__bottom p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.footer__bottom a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d8e6de;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green);
  font-size: 18px;
  box-shadow: 0 10px 24px -18px rgba(46, 61, 54, 0.6);
  backdrop-filter: blur(6px);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.to-top:hover {
  background: var(--green-soft);
  transform: translateY(-2px);
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header__actions {
    display: flex;
    margin-left: auto;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 36px;
  }

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

@media (max-width: 1024px) {
  .sitemap-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tool__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tool__stage {
    min-height: 280px;
  }

  .tool__panel {
    padding-top: 4px;
  }

  .grid--3,
  .steps,
  .next-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 40px;
  }

  .article {
    max-width: none;
  }

  .article-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 0;
  }

  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

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

  .section {
    padding: 52px 0;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero__inner {
    gap: 24px;
  }

  .hero__lead {
    font-size: 14px;
  }

  .tool {
    padding: 12px;
    border-radius: var(--radius-sm);
  }

  .tool__stage {
    min-height: 220px;
  }

  .tool__empty {
    padding: 20px 14px;
    gap: 6px;
  }

  .empty-art {
    display: none;
  }

  .tool__empty-title {
    font-size: 16px;
  }

  .tool__empty-text {
    font-size: 12.5px;
  }

  .tool__empty-actions {
    margin-top: 4px;
    gap: 8px;
  }

  .tool__empty-actions .btn {
    padding-inline: 14px;
    font-size: 13px;
  }

  .tool__empty-hint {
    margin-top: 2px;
    font-size: 11px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .steps,
  .next-links,
  .sitemap-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 22px;
  }

  .page-hero {
    padding: 26px 0 34px;
  }

  .page-hero__lead {
    font-size: 15px;
  }

  .article > h2 {
    margin-top: 42px;
  }

  .article p,
  .article li {
    font-size: 15px;
    line-height: 1.85;
  }

  .article-aside {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding-bottom: 56px;
  }

  .cta-band__inner {
    padding: 32px 26px;
    border-radius: var(--radius-md);
  }

  .footer__nav {
    gap: 18px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .compare__frame {
    aspect-ratio: 4 / 3;
  }

  .compare__caption {
    font-size: 12.5px;
    text-align: left;
  }

  .table-wrap {
    margin-inline: -4px;
  }

  .breadcrumbs {
    padding-top: 14px;
  }
}

@media (max-width: 560px) {
  .tool__stage {
    min-height: 240px;
  }

  .tool__empty {
    padding: 16px 12px;
  }

  .brand__text strong {
    font-size: 15px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .header__inner {
    gap: 12px;
  }

  .header__actions {
    gap: 8px;
  }

  .hero__title {
    font-size: 1.2rem;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .facts__row {
    padding: 7px 0;
  }

  .tool__actions-row {
    grid-template-columns: 1fr;
  }

  .tool__bar-note {
    display: none;
  }

  .cta-band__actions {
    width: 100%;
  }

  .cta-band__actions .btn {
    flex: 1 1 100%;
  }

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

  .stat {
    padding: 0 14px;
  }

  .stat strong {
    font-size: 18px;
  }

  .not-found {
    padding: 64px 0 48px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 首页正文段落与左右分栏 */
.section-copy {
  max-width: 790px;
}

.section-copy p {
  margin-bottom: 16px;
  color: #3d4b44;
  font-size: 15.5px;
  line-height: 1.9;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

.section-copy--center {
  margin-inline: auto;
  text-align: center;
}

.section-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 36px;
  align-items: center;
}

.split--top {
  align-items: start;
}

.curve-path.is-animated {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: curve-draw 2.6s var(--ease-out) 0.15s forwards;
}

@keyframes curve-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.compare.is-ready .compare__layer {
  animation: compare-in 0.5s var(--ease-out) both;
}

@keyframes compare-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
}

.article--center {
  margin-inline: auto;
}

.article--center > h2:first-of-type {
  margin-top: 0;
}

.x-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.x-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.x-list li::before {
  content: "×";
  position: absolute;
  left: 2px;
  top: -1px;
  color: var(--tomato);
  font-size: 18px;
  font-weight: 500;
}

.x-list strong {
  color: var(--ink);
}

.next-links--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.curve-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.section-copy--spaced {
  margin-top: 28px;
}

@media (max-width: 1024px) {
  .steps--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 文章内嵌组件需要压过 .article p / .article li 的通用排版 */
.article .card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.article .steps {
  padding-left: 0;
}

.article .step {
  margin-bottom: 0;
}

.article .step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .next-links--two,
  .steps--four {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tool__nojs {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid #f3d9d3;
  border-radius: 12px;
  background: #fff5f2;
  color: #8b2f3f;
  font-size: 13px;
  line-height: 1.7;
}

.playground__value {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
}

.not-found .not-found__code {
  max-width: none;
  margin-inline: auto;
}

.kbd-group {
  white-space: nowrap;
}
