/* 页面基础与第二部分；首屏独立由 demo-hero.css 管理。 */
.demo-page {
  --demo-accent: #ff625c;
  --demo-ink: #211b27;
  --demo-muted: #6f6974;
  --demo-line: #e5e1e8;
  --demo-surface: #f7f8fa;
  --demo-soft: #fff3f1;
  --demo-action: #c9433e;
  color: var(--demo-ink);
}

.demo-shell {
  width: calc(100% - 64px);
  max-width: 1360px;
  margin-inline: auto;
}

.demo-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.demo-eyebrow {
  margin: 0;
  color: var(--demo-action);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .08em;
}

.demo-workspace {
  padding: 76px 0 96px;
  background: var(--demo-surface);
}

.demo-workspace__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 40px;
}

.demo-workspace h2 {
  margin: 16px 0 0;
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.025em;
}

.demo-workspace h2 span {
  display: block;
}

.demo-workspace__heading>p {
  max-width: 460px;
  margin: 0 0 4px;
  color: var(--demo-muted);
  font-size: 16px;
  line-height: 1.9;
}

.demo-stage {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--demo-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 48px #30233908, 0 2px 6px #30233903;
}

.demo-guide {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 32px 28px;
}

.demo-guide__heading {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--demo-line);
}

.demo-guide__heading>p {
  margin: 0 0 10px;
  color: var(--demo-action);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
}

.demo-guide h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.5;
}

.demo-guide ol {
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
}

.demo-guide li {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  align-items: start;
}

.demo-guide li:not(:last-child)::after {
  position: absolute;
  top: 58px;
  bottom: -18px;
  left: 17px;
  width: 1px;
  background: var(--demo-line);
  content: '';
}

.demo-guide li>span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #f0d5d2;
  border-radius: 10px;
  color: var(--demo-action);
  background: var(--demo-soft);
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.demo-guide h4 {
  margin: 0;
  padding-top: 1px;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.5;
}

.demo-guide li p {
  margin: 6px 0 0;
  color: var(--demo-muted);
  font-size: 14px;
  line-height: 1.8;
}

.demo-guide__result {
  margin-top: auto;
  padding: 18px 20px;
  border: 1px solid #f4dfdc;
  border-radius: 8px;
  background: var(--demo-soft);
}

.demo-guide__result>p {
  margin: 0 0 8px;
  color: var(--demo-action);
  font-size: 12px;
  font-weight: 700;
}

.demo-guide__result strong {
  display: block;
  color: #65515a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
}

.demo-browser {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-left: 1px solid var(--demo-line);
  color: var(--demo-ink);
  background: #f0f1f5;
  text-decoration: none;
}

.demo-browser__toolbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--demo-line);
  background: #fbfbfc;
}

.demo-browser__identity {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
}

.demo-browser__dots {
  display: inline-flex;
  gap: 5px;
}

.demo-browser__dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d6d0db;
}

.demo-browser__dots i:first-child {
  background: #eda29b;
}

.demo-browser__label {
  color: var(--demo-muted);
  font-size: 12px;
}

.demo-browser__screen {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
}

.demo-browser img,
.demo-browser video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e1e3e9;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 30px #3023390b;
}

.demo-browser__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-top: 1px solid var(--demo-line);
  background: #fff;
}

.demo-browser__hint {
  display: grid;
  gap: 6px;
}

.demo-browser__hint strong {
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
}

.demo-browser__hint>span {
  color: var(--demo-muted);
  font-size: 13px;
  line-height: 1.7;
}


@media (max-width: 1199px) {
  .demo-workspace__heading {
    gap: 40px;
  }

  .demo-stage {
    grid-template-columns: 290px minmax(0, 1fr);
  }

  .demo-guide {
    padding: 28px 24px;
  }


}

@media (max-width: 1023px) {
  .demo-workspace {
    padding-block: 60px 72px;
  }

  .demo-workspace__heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .demo-workspace__heading>p {
    max-width: 640px;
  }

  .demo-stage {
    grid-template-columns: 1fr;
  }

  .demo-guide ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
  }

  .demo-guide li:not(:last-child)::after {
    display: none;
  }

  .demo-guide__result {
    padding: 16px 20px;
  }

  .demo-browser {
    border-top: 1px solid var(--demo-line);
    border-left: 0;
  }
}

@media (max-width: 639px) {
  .demo-shell {
    width: calc(100% - 40px);
  }

  .demo-workspace {
    padding: 44px 0 56px;
  }

  .demo-workspace__heading {
    margin-bottom: 28px;
    gap: 16px;
  }

  .demo-workspace h2 {
    font-size: clamp(25px, 6.7vw, 32px);
  }

  .demo-guide {
    padding: 24px 20px;
  }

  .demo-guide h3 {
    font-size: 21px;
  }

  .demo-guide ol {
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }

  .demo-guide li:not(:last-child)::after {
    display: block;
  }

  .demo-guide li p {
    font-size: 15px;
  }

  .demo-browser__toolbar {
    min-height: 56px;
    padding: 14px 16px;
    gap: 10px;
  }

  .demo-browser__identity {
    gap: 10px;
    font-size: 12px;
  }

  .demo-browser__dots {
    gap: 4px;
  }

  .demo-browser__dots i {
    width: 5px;
    height: 5px;
  }

  .demo-browser__label {
    font-size: 11px;
  }



  .demo-browser__caption {
    align-items: stretch;
    flex-direction: column;
    padding: 20px 16px;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .demo-page *,
  .demo-page *::before,
  .demo-page *::after {
    transition: none;
  }
}