.site-public {
  background: var(--public-bg);
  background-image: none;
}

.site-public main { overflow: hidden; }

.site-public .eyebrow {
  margin: 0;
  color: var(--public-accent);
  font-family: "IBM Plex Mono", "Noto Sans SC", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 13px;
}

.launch-hero { min-height: 900px; padding: 74px 0 86px; background: var(--public-bg); }
.launch-hero-inner { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.launch-heading-row { display: flex; align-items: flex-start; gap: 32px; }
.launch-heading-row > div { flex: 1; }
.launch-heading-row h1 { margin: 12px 0 8px; color: var(--public-ink); font-family: "Space Grotesk", "Noto Sans SC", sans-serif; font-size: clamp(42px, 5vw, 64px); letter-spacing: -.055em; line-height: 1.02; }
.launch-heading-row p:last-child { margin: 0; color: var(--public-muted); font-size: 16px; }
.workbench-shortcuts { display: flex; gap: 10px; }
.workbench-shortcuts a { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--public-line); border-radius: 10px; color: var(--public-ink); background: #fff; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.public-launch-form { margin-top: 34px; }
.public-mode-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border: 0; }
.public-mode-card { min-height: 142px; padding: 18px; display: grid; align-content: start; gap: 8px; border: 1px solid var(--public-line); border-radius: 14px; background: #fff; cursor: pointer; }
.public-mode-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.public-mode-card small { color: #9790a7; font-family: "IBM Plex Mono", monospace; font-size: 10px; }
.public-mode-card strong { margin-top: 8px; font-size: 20px; }
.public-mode-card span { color: var(--public-muted); font-size: 13px; }
.public-mode-card.is-selected { border: 2px solid var(--public-accent); background: #f0edff; }
.public-mode-card.is-selected small, .public-mode-card.is-selected::after { color: var(--public-accent); }
.public-mode-card.is-selected::after { content: "已选择"; position: absolute; justify-self: end; font-size: 11px; font-weight: 600; }
.public-composer { margin-top: 16px; padding: 20px; border: 1px solid var(--public-line); border-radius: 16px; background: #fff; }
.public-composer header, .public-composer footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.public-composer header span { color: #9790a7; font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.single-type-row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.single-type-row label { padding: 7px 10px; border: 1px solid var(--public-line); border-radius: 99px; color: var(--public-muted); font-size: 12px; cursor: pointer; }
.single-type-row label:has(input:checked) { border-color: var(--public-accent); color: var(--public-accent); background: #f0edff; }
.single-type-row input { accent-color: var(--public-accent); }
.public-composer textarea { width: 100%; min-height: 132px; margin: 14px 0 10px; padding: 14px; border: 1px solid var(--public-line); border-radius: 11px; color: var(--public-ink); background: #f7f6fa; font: 15px/1.6 "IBM Plex Sans", "Noto Sans SC", sans-serif; resize: vertical; }
.reference-button, .launch-submit { min-height: 42px; padding: 0 14px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.reference-button { border: 1px solid var(--public-line); color: var(--public-muted); background: #f7f6fa; }
.launch-submit { border: 1px solid var(--public-accent); color: #fff; background: var(--public-accent); white-space: nowrap; }
.public-reference-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.public-reference-chips > span { padding: 6px 8px; border-radius: 8px; color: var(--public-accent); background: #f0edff; font-size: 11px; }
.public-reference-chips button { margin-left: 6px; border: 0; color: inherit; background: transparent; cursor: pointer; }
.preflight-note { width: fit-content; max-width: 100%; margin: 18px 0 0; padding: 12px 15px; border-radius: 11px; color: var(--public-muted); background: #f0eef6; font-size: 13px; }
.preflight-note span { margin-right: 8px; color: #1bc9b7; }
.public-reference-dialog { position: fixed; inset: 0; z-index: 2000; padding: 24px; display: grid; place-items: center; background: rgba(15,13,21,.7); }
.public-reference-dialog > section { width: min(620px, 100%); max-height: 80vh; overflow: auto; padding: 20px; border-radius: 16px; background: #fff; }
.public-reference-dialog header, .public-reference-dialog footer { display: flex; justify-content: space-between; align-items: center; }
.public-reference-dialog header button { border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.reference-dialog-list { margin: 16px 0; display: grid; gap: 8px; }
.reference-dialog-list label { padding: 11px; display: flex; gap: 10px; border: 1px solid var(--public-line); border-radius: 10px; }
.reference-dialog-list span { display: grid; gap: 2px; }
.reference-dialog-list small { color: var(--public-muted); }
.public-reference-dialog footer button { margin-left: auto; min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; color: #fff; background: var(--public-accent); }

.forge-hero {
  min-height: 928px;
  background: var(--public-bg);
}

.forge-hero-inner {
  width: min(1280px, calc(100% - 64px));
  height: 760px;
  margin: 0 auto;
  padding-top: 78px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.forge-hero h1 {
  width: 760px;
  margin: 0;
  color: var(--public-ink);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 70px;
}

.forge-hero h1 span { display: block; }
.forge-hero .compact-title { display: none; }

.forge-hero .hero-copy {
  width: min(680px, 100%);
  margin: 0;
  color: var(--public-muted);
  font-size: 16px;
  line-height: 28px;
}

.hero-cta {
  width: 156px;
  height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  color: #fff;
  background: var(--public-accent);
  box-shadow: 0 10px 24px rgba(91, 61, 245, 0.2);
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.hero-cta > span { flex: 0 0 auto; white-space: nowrap; }

.hero-cta:hover {
  background: var(--public-accent-hover);
  box-shadow: 0 14px 28px rgba(91, 61, 245, 0.28);
  transform: translateY(-2px);
}

.hero-cta:active { background: var(--public-accent-pressed); transform: scale(0.98); }

.product-preview {
  position: relative;
  width: 560px;
  height: 320px;
  flex: 0 0 320px;
  overflow: hidden;
  border: 1px solid var(--public-accent);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--public-nav-bg);
  background-size: 24px 24px;
  box-shadow: 0 28px 70px rgba(15, 13, 21, 0.2);
}

.preview-orb {
  position: absolute;
  top: 40px;
  left: 340px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--public-accent);
  filter: blur(1px);
  opacity: .35;
}

.preview-rail {
  position: absolute;
  top: 48px;
  left: 24px;
  display: flex;
  gap: 8px;
}

.preview-rail span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
}

.preview-rail .is-active { width: 26px; border-radius: 99px; background: var(--public-accent); }

.preview-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 30px;
  height: 120px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
}

.preview-copy { min-width: 0; display: grid; gap: 4px; }
.preview-copy .preview-kicker { color: var(--public-accent); font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 600; }
.preview-copy strong { color: var(--public-ink); font-family: "Space Grotesk", sans-serif; font-size: 20px; }
.preview-copy > span:last-child { color: #1d8b61; font-size: 11px; font-weight: 600; }

.preview-progress { width: 154px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.preview-progress i { height: 34px; border-radius: 4px; background: #eceaf2; }
.preview-progress i:nth-child(-n+4) { background: var(--public-accent); }

.workflow-section,
.billing-band {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

.workflow-section { padding: 110px 0; }
.workflow-heading { max-width: 680px; }
.workflow-heading h2,
.billing-band h2 {
  margin: 14px 0 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(36px, 4.4vw, 58px);
  letter-spacing: -0.045em;
  line-height: 1.06;
}
.workflow-heading > p:last-child,
.billing-band p:last-child { color: var(--public-muted); font-size: 16px; line-height: 1.75; }

.workflow-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--public-line);
  border-bottom: 1px solid var(--public-line);
}

.workflow-grid article { min-height: 260px; padding: 34px 32px; border-right: 1px solid var(--public-line); background: #fff; }
.workflow-grid article:first-child { border-left: 1px solid var(--public-line); }
.workflow-grid article > span { color: var(--public-accent); font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600; }
.workflow-grid h3 { margin: 46px 0 10px; font-size: 22px; }
.workflow-grid p { margin: 0; color: var(--public-muted); font-size: 14px; line-height: 1.7; }

.billing-band {
  margin-bottom: 110px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 48px;
  border-radius: 24px;
  color: #fff;
  background: var(--public-nav-bg);
}
.billing-band h2 { max-width: 760px; font-size: clamp(32px, 4vw, 48px); }
.billing-band p:last-child { max-width: 720px; color: #b8b2c4; }
.billing-band > a { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; color: #fff; background: var(--public-accent); font-weight: 600; text-decoration: none; white-space: nowrap; }

@media (max-width: 900px) {
  .launch-heading-row { display: grid; }
  .workbench-shortcuts { justify-content: flex-start; }
  .forge-hero { min-height: 986px; }
  .forge-hero-inner {
    width: min(738px, calc(100% - 96px));
    height: 760px;
    padding-top: 56px;
    align-items: center;
    text-align: center;
  }
  .forge-hero h1 { width: 100%; font-size: 44px; line-height: 58px; }
  .forge-hero .hero-copy { width: min(700px, 100%); }
  .product-preview { width: 100%; }
  .preview-orb { left: auto; right: 40px; }
  .workflow-section, .billing-band { width: min(738px, calc(100% - 48px)); }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid article, .workflow-grid article:first-child { min-height: 0; border: 1px solid var(--public-line); border-bottom: 0; }
  .workflow-grid article:last-child { border-bottom: 1px solid var(--public-line); }
  .workflow-grid h3 { margin-top: 28px; }
  .billing-band { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 640px) {
  .launch-hero { padding-top: 44px; }
  .launch-hero-inner { width: calc(100% - 32px); }
  .launch-heading-row h1 { font-size: 40px; }
  .workbench-shortcuts { display: grid; grid-template-columns: 1fr 1fr; }
  .public-mode-grid { grid-template-columns: 1fr; }
  .public-mode-card { min-height: 112px; }
  .public-composer footer { align-items: stretch; flex-direction: column; }
  .forge-hero { min-height: 784px; }
  .forge-hero-inner {
    width: calc(100% - 40px);
    height: 600px;
    padding-top: 36px;
  }
  .forge-hero h1 { width: 100%; font-size: 34px; line-height: 48px; letter-spacing: -0.03em; }
  .forge-hero .wide-title { display: none; }
  .forge-hero .compact-title { display: block; }
  .forge-hero .hero-copy { width: 100%; font-size: 14px; line-height: 24px; }
  .hero-cta { width: 100%; }
  .product-preview { width: 100%; height: 240px; flex-basis: 240px; }
  .preview-orb { top: 40px; right: 90px; width: 120px; height: 120px; }
  .preview-rail { top: 28px; }
  .preview-card { left: 24px; right: 24px; bottom: 31px; height: 120px; padding: 18px; }
  .preview-progress { width: 78px; gap: 2px; }
  .preview-progress i { height: 28px; }
  .preview-copy strong { font-size: 17px; }
  .workflow-section, .billing-band { width: calc(100% - 40px); }
  .workflow-section { padding: 82px 0; }
  .workflow-heading h2 { font-size: 36px; }
  .workflow-grid { margin-top: 34px; }
  .workflow-grid article { padding: 28px 24px; }
  .billing-band { margin-bottom: 82px; padding: 32px 24px; border-radius: 20px; }
}
