:root {
  --ink: #0c1215;
  --ink-soft: #3d4f56;
  --teal: #0d6e69;
  --teal-deep: #08554f;
  --foam: #eef2f3;
  --mist: #e2e8ea;
  --paper: #f6f7f8;
  --surface: #ffffff;
  --signal: #b45309;
  --danger: #b42318;
  --ok: #0d6e69;
  --line: rgba(12, 18, 21, 0.12);
  --line-strong: rgba(12, 18, 21, 0.22);
  --font-display: "Syne", "IBM Plex Sans", sans-serif;
  --font-serif: "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 0.375rem;
  --content: 68rem;

  /* 字号阶梯：≈1.2 比例，工具向 */
  --text-xs: 0.75rem;      /* 12  meta / overline */
  --text-sm: 0.8125rem;    /* 13  hint / th / foot */
  --text-md: 0.875rem;     /* 14  nav / btn / label */
  --text-base: 0.9375rem;  /* 15  body */
  --text-lg: 1.125rem;     /* 18  lead */
  --text-xl: 1.375rem;     /* 22  section h2 */
  --text-2xl: 1.625rem;    /* 26  page h1 */
  --text-3xl: 2rem;        /* 32  landing section */
  --text-4xl: 2.75rem;     /* 44  brand */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  background: var(--paper);
  min-height: 100vh;
}

.noise {
  display: none;
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem max(1.25rem, calc((100% - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

[data-shell-auth] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.shell-user-email {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 500;
  color: var(--ink-soft);
}

.btn-console {
  padding: 0.5rem 0.95rem;
  font-size: var(--text-md);
  flex-shrink: 0;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.top-nav {
  display: flex;
  gap: 1.25rem;
}

.top-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--text-md);
  font-weight: 500;
}

.top-nav a:hover {
  color: var(--teal-deep);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) max(1.25rem, calc((100% - var(--content)) / 2)) clamp(3rem, 7vw, 5rem);
  min-height: 0;
}

/* 官网全宽首屏：品牌为主，无 inset 卡片墙 */
.landing-body {
  background: var(--paper);
}

.hero-bleed {
  position: relative;
  display: block;
  grid-template-columns: none;
  min-height: min(78vh, 40rem);
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bleed-atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(12, 18, 21, 0.82) 0%, rgba(12, 18, 21, 0.55) 42%, rgba(13, 110, 105, 0.35) 100%),
    radial-gradient(ellipse 80% 70% at 70% 40%, rgba(125, 211, 199, 0.35), transparent 55%),
    linear-gradient(180deg, #1a2a2c 0%, #0c1215 100%);
  transform: scale(1.02);
  animation: hero-atmosphere 18s ease-in-out infinite alternate;
}

.hero-bleed-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  padding: clamp(4.5rem, 12vh, 7rem) max(1.25rem, calc((100% - var(--content)) / 2)) clamp(2.5rem, 6vh, 3.75rem);
  color: #f6f7f8;
  max-width: none;
}

.hero-bleed .brand-hero {
  color: #f6f7f8;
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  margin-bottom: 0.35rem;
  animation: hero-copy-in 0.7s var(--ease) both;
}

.hero-bleed h1 {
  color: rgba(246, 247, 248, 0.92);
  max-width: 16ch;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 500;
  animation: hero-copy-in 0.7s var(--ease) 0.08s both;
}

.hero-bleed .hero-lead {
  color: rgba(232, 238, 240, 0.78);
  max-width: 36ch;
  animation: hero-copy-in 0.7s var(--ease) 0.14s both;
}

.hero-bleed .hero-cta {
  animation: hero-copy-in 0.7s var(--ease) 0.2s both;
}

.hero-bleed .btn-primary {
  background: #f6f7f8;
  color: var(--ink);
}

.hero-bleed .btn-primary:hover {
  background: #fff;
  color: var(--teal-deep);
}

.hero-bleed .btn-ghost {
  background: transparent;
  color: #f6f7f8;
  border-color: rgba(246, 247, 248, 0.35);
}

.hero-bleed .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

@keyframes hero-atmosphere {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.5%, 1%, 0); }
}

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bleed-atmosphere,
  .hero-bleed .brand-hero,
  .hero-bleed h1,
  .hero-bleed .hero-lead,
  .hero-bleed .hero-cta {
    animation: none;
  }
}

.brand-hero {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(var(--text-3xl), 4.5vw, var(--text-4xl));
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero h1 {
  margin: 0 0 0.75rem;
  max-width: 18ch;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(var(--text-xl), 2.4vw, var(--text-2xl));
  line-height: var(--leading-snug);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn-primary,
.btn-ghost {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: #f7f8f9;
}

.btn-primary:hover {
  background: var(--teal-deep);
  transform: none;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.hero-visual {
  display: grid;
  align-items: center;
  min-height: 0;
}

.hero-panel {
  width: 100%;
  max-width: 36rem;
  justify-self: end;
  background: var(--ink);
  color: #e8eef0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: rgba(232, 238, 240, 0.7);
}

.hero-panel-bar strong {
  color: #e8eef0;
  font-weight: 600;
  letter-spacing: 0;
  font-size: var(--text-sm);
}

.hero-code {
  margin: 0;
  padding: 1.05rem 1.1rem 1.15rem;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  font-size: var(--text-sm);
  line-height: 1.65;
  overflow-x: auto;
  color: #d5e2e5;
  white-space: pre;
}

.hero-code .cm {
  color: rgba(232, 238, 240, 0.45);
}

.hero-code .kw {
  color: #7dd3c7;
}

.hero-panel-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-panel-meta div {
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.25rem;
}

.hero-panel-meta div:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-panel-meta span {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 238, 240, 0.5);
}

.hero-panel-meta code {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: var(--text-sm);
  color: #e8eef0;
  background: transparent;
  padding: 0;
}

.confluence {
  display: none;
}

.simple-flow .stream-out {
  stroke-dasharray: none;
  animation: pulse-stroke 2.8s ease-in-out infinite;
}

.price-board-simple {
  grid-template-columns: repeat(4, 1fr);
}

.stream {
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 8 10;
  animation: dash 18s linear infinite;
}

.stream-a { stroke: #3a9b95; }
.stream-b { stroke: #102a33; }
.stream-c { stroke: #d97706; }
.stream-out {
  stroke: var(--teal-deep);
  stroke-width: 4;
  stroke-dasharray: none;
  animation: pulse-stroke 2.8s ease-in-out infinite;
}

.node {
  fill: var(--paper);
  stroke-width: 3;
}

.node-up { stroke: #3a9b95; }
.node-hub {
  fill: var(--teal-deep);
  stroke: var(--teal-deep);
  animation: hub-pulse 2.4s ease-in-out infinite;
}

.node-down { stroke: var(--signal); }

.svg-label {
  fill: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 14px;
}

.svg-label.hub {
  fill: var(--teal-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.section {
  padding: clamp(2.75rem, 6vw, 4.5rem) max(1.25rem, calc((100% - var(--content)) / 2));
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(var(--text-xl), 2.4vw, var(--text-3xl));
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  max-width: 36rem;
}

.api-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.api-preview-grid .hero-panel {
  max-width: none;
  justify-self: stretch;
}

.hero-panel-meta a {
  color: #7dd3c7;
  text-decoration: none;
}

.hero-panel-meta a:hover {
  text-decoration: underline;
}

.layer-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.layer {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-right: 1px solid var(--line);
  padding-right: 1.5rem;
}

.layer:last-child {
  border-right: 0;
}

.layer-index {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--teal);
}

.layer h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.layer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
}

.pricing {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
}

.price-rule {
  background: transparent;
  padding: 1.5rem 1.35rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-right: 1px solid var(--line);
}

.price-rule:last-child {
  border-right: 0;
  padding-right: 0;
}

.price-rule.accent {
  background: transparent;
  color: var(--ink);
  padding-left: 1.35rem;
}

.price-rule.accent .rule-k {
  color: var(--ink-soft);
}

.price-rule.accent .rule-v {
  color: var(--teal-deep);
}

.rule-k {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.rule-v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  line-height: var(--leading-tight);
}

.demo-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 1.5rem 2rem;
}

.demo-shell-public {
  align-items: start;
}

.demo-downstream,
.demo-ledger-panel {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.demo-downstream h3,
.demo-ledger-panel h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.demo-subhead {
  margin-top: 1.75rem !important;
}

.model-picks {
  display: grid;
  gap: 0.65rem;
}

.model-pick {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0.35rem;
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title price"
    "code price";
  gap: 0.15rem 1rem;
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.model-pick strong {
  grid-area: title;
  font-family: var(--font-display);
  font-size: var(--text-base);
}

.model-pick code {
  grid-area: code;
  width: fit-content;
}

.model-pick-price {
  grid-area: price;
  align-self: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--teal-deep);
}

.model-pick:hover {
  border-color: rgba(15, 122, 116, 0.45);
}

.model-pick.is-selected {
  border-color: var(--teal);
  background: rgba(15, 122, 116, 0.08);
}

.demo-assures {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.demo-assures li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: var(--text-md);
}

.demo-assures li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--teal);
}

.kv {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.kv div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.kv dt {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.kv dd {
  margin: 0;
  font-weight: 500;
}

code {
  font-family: "IBM Plex Sans", ui-monospace, monospace;
  font-size: var(--text-md);
  background: rgba(15, 122, 116, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}

.demo-key-row dd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

#demo-key-input {
  flex: 1 1 12rem;
  min-width: 10rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: var(--text-sm);
  color: var(--ink);
}

.demo-params {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin: 1rem 0 0.75rem;
}

.demo-params label,
.demo-prompt-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  font-weight: 500;
}

.demo-params select,
.demo-prompt-label textarea {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ink);
}

.demo-prompt-label {
  width: 100%;
  margin-top: 0.35rem;
}

.demo-prompt-label textarea {
  resize: vertical;
  min-height: 4.5rem;
  line-height: 1.5;
}

.demo-estimate {
  margin: 0.85rem 0 0;
  font-size: var(--text-sm);
  color: var(--ink);
  font-weight: 600;
}

.demo-video-wrap {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.demo-video-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.demo-video-head strong {
  font-family: var(--font-display);
  font-size: var(--text-md);
}

.demo-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.demo-video-wrap video {
  display: block;
  width: 100%;
  max-height: 22rem;
  background: #0c1215;
  border-radius: var(--radius);
}

.demo-video-tip {
  margin: 0.5rem 0 0;
  font-size: var(--text-xs);
  color: var(--ink-soft);
}

.price-edit {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.price-edit input {
  width: 8rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
}

.price-edit input:focus {
  outline: 2px solid rgba(15, 122, 116, 0.35);
  border-color: var(--teal);
}

.demo-hint {
  margin: 1rem 0 0;
  min-height: 1.5em;
  color: var(--ink-soft);
  font-size: var(--text-md);
}

.demo-hint.is-error {
  color: var(--danger);
}

.demo-hint.is-ok {
  color: var(--ok);
}

.demo-note {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: var(--text-md);
}

.channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.channel-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.channel-item:last-child {
  border-bottom: 0;
}

.channel-priority {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--teal);
  min-width: 2rem;
}

.channel-meta strong {
  display: block;
  font-size: var(--text-base);
}

.channel-meta span {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.switch {
  position: relative;
  width: 2.75rem;
  height: 1.55rem;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-ui {
  position: absolute;
  inset: 0;
  border-radius: 0.3rem;
  background: #c5d4d8;
  cursor: pointer;
  transition: background 0.25s ease;
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.2rem;
  background: #fff;
  transition: transform 0.25s var(--ease);
}

.switch input:checked + .switch-ui {
  background: var(--teal);
}

.switch input:checked + .switch-ui::after {
  transform: translateX(1.15rem);
}

.switch input:focus-visible + .switch-ui {
  outline: 2px solid rgba(15, 122, 116, 0.45);
  outline-offset: 2px;
}

.ledger-empty {
  color: var(--ink-soft);
  padding: 0.5rem 0 0;
}

.ledger-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 0.35rem;
}

.ledger-card div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ledger-card span {
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ledger-card strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.ledger-card.is-failed strong.fail {
  color: var(--danger);
}

.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.25rem;
}

.flow-steps-three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 56rem;
}

.flow-steps li {
  counter-increment: step;
  padding-top: 0.5rem;
  border-top: 2px solid var(--ink);
}

.flow-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--teal);
}

.flow-steps strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.flow-steps span {
  color: var(--ink-soft);
  font-size: var(--text-md);
}

.rules-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 48rem;
  border-top: 1px solid var(--line);
}

.rules-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  padding-left: 1.5rem;
  position: relative;
  color: var(--ink-soft);
}

.rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--teal);
}

.footer {
  padding: 2rem max(1.25rem, calc((100% - var(--content)) / 2)) 3rem;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-site {
  position: relative;
  display: grid;
  gap: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--text-md);
}

.footer-links a:hover {
  color: var(--teal-deep);
}

.footer-copy {
  margin: 0;
}

.footer-ops {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 1.25rem;
  margin: 0;
  font-size: var(--text-xs);
  opacity: 0.35;
  color: inherit;
  text-decoration: none;
}

.footer-ops:hover {
  opacity: 0.55;
}

.flow-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  counter-reset: flow;
}

.flow-rail li {
  counter-increment: flow;
  position: relative;
  padding: 1.25rem 1rem 1.25rem 0;
  border-top: 2px solid var(--ink);
}

.flow-rail li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: 0.15rem;
  top: 1.2rem;
  color: var(--teal);
  font-size: var(--text-lg);
}

.flow-rail strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.flow-rail li::before {
  content: counter(flow, decimal-leading-zero);
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--teal);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 48rem;
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0 1.15rem 1.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--teal);
}

.feature-list strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.feature-list span {
  color: var(--ink-soft);
}

.bottom-cta {
  margin-top: 3rem;
  padding: 2.5rem 0 0.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.bottom-cta h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(var(--text-xl), 2.4vw, var(--text-3xl));
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dash {
  to { stroke-dashoffset: -360; }
}

@keyframes pulse-stroke {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes hub-pulse {
  0%, 100% { r: 18; }
  50% { r: 20; }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-visual {
    order: -1;
    min-height: 0;
  }

  .hero-panel {
    justify-self: stretch;
    max-width: none;
  }

  .layer-rail,
  .price-board,
  .price-board-simple,
  .flow-steps,
  .flow-steps-three,
  .flow-rail,
  .api-preview-grid,
  .demo-shell,
  .ledger-card {
    grid-template-columns: 1fr;
  }

  .flow-rail li:not(:last-child)::after {
    content: none;
  }

  .model-pick {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "code"
      "price";
  }

  .layer {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
  }

  .layer:last-child {
    border-bottom: 0;
  }

  .price-rule {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-left: 0;
  }

  .price-rule:last-child {
    border-bottom: 0;
  }

  .price-rule.accent {
    padding-left: 0;
  }

  .top-nav {
    display: none;
  }

  .footer-ops {
    position: static;
    display: block;
    margin-top: 0.75rem;
  }
}

/* —— 模型广场 —— */
.model-plaza {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--teal) 6%, var(--paper)) 0%, var(--paper) 42%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plaza-section-head {
  max-width: 42rem;
}

.plaza-section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.plaza-section-head p {
  font-size: var(--text-md);
  line-height: var(--leading-snug);
}

.plaza-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.plaza-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.plaza-group {
  --plaza-grid: minmax(7.5rem, 1.05fr) repeat(3, minmax(4.75rem, 1fr)) 6.75rem;
  --plaza-pad-x: 1rem;
  --plaza-gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--surface);
  /* 勿用 overflow:hidden，否则右侧「文档/去生成」会被裁切 */
  overflow: visible;
  min-width: 0;
  animation: plaza-in 0.45s var(--ease) both;
}

.plaza-group-head,
.plaza-cols,
.plaza-list {
  border-radius: 0;
}

.plaza-group-head {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  overflow: hidden;
}

.plaza-group.plaza-seed {
  animation-delay: 0.06s;
}

.plaza-group.plaza-image {
  animation-delay: 0.03s;
  --plaza-grid: minmax(7.5rem, 1.05fr) minmax(12rem, 2.4fr) 6.75rem;
}

.plaza-image .plaza-group-head {
  background:
    linear-gradient(135deg, color-mix(in srgb, #b45309 12%, transparent), transparent 60%);
}

.plaza-image .plaza-badge {
  background: color-mix(in srgb, #b45309 14%, transparent);
  color: #9a3412;
}

.plaza-cols-image,
.plaza-row-image {
  grid-template-columns: var(--plaza-grid);
}

.plaza-image-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: stretch;
  min-width: 0;
}

.plaza-image-prices .plaza-tier {
  flex: 1 1 6.5rem;
  min-width: 6rem;
}

.plaza-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem 1rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal) 10%, transparent), transparent 60%);
}

.plaza-seed .plaza-group-head {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ink) 6%, transparent), transparent 60%);
}

.plaza-group-copy h3 {
  margin: 0.4rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}

.plaza-group-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 28rem;
}

.plaza-badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal-deep);
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 28%, var(--line));
}

.plaza-seed .plaza-badge {
  color: var(--ink);
  background: var(--foam);
  border-color: var(--line-strong);
}

.plaza-group-link {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--teal-deep);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.plaza-group-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.plaza-cols,
.plaza-row {
  display: grid;
  grid-template-columns: var(--plaza-grid);
  column-gap: var(--plaza-gap);
  padding-left: var(--plaza-pad-x);
  padding-right: var(--plaza-pad-x);
  align-items: center;
}

.plaza-cols {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--foam);
  border-bottom: 1px solid var(--line);
}

.plaza-list {
  display: grid;
}

.plaza-row {
  row-gap: 0.35rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.plaza-row:last-child {
  border-bottom: 0;
}

.plaza-row:hover {
  background: color-mix(in srgb, var(--teal) 5%, transparent);
}

.plaza-row.is-off {
  opacity: 0.78;
}

.plaza-identity {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.plaza-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.plaza-identity h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.plaza-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal-deep);
  background: color-mix(in srgb, var(--teal) 12%, transparent);
}

.plaza-status::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: currentColor;
}

.plaza-status.is-off {
  color: var(--signal);
  background: color-mix(in srgb, var(--signal) 12%, transparent);
}

.plaza-identity code {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Code", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--ink-soft) 88%, var(--ink));
  background: transparent;
  padding: 0;
}

.plaza-billing {
  justify-self: start;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.plaza-note {
  margin: 0.2rem 0 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--signal);
  line-height: 1.45;
}

.plaza-tier {
  display: grid;
  justify-items: start;
  gap: 0.12rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--foam);
  min-width: 0;
  box-sizing: border-box;
}

.plaza-tier.is-default {
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
  background: color-mix(in srgb, var(--teal) 10%, var(--surface));
}

.plaza-tier.is-empty {
  opacity: 0.45;
}

/* 桌面表头已标分辨率，格内不再重复；窄屏再显示 */
.plaza-tier .plaza-res {
  display: none;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.plaza-tier strong {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Code", monospace;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
}

.plaza-tier.is-default strong {
  color: var(--teal-deep);
  font-weight: 700;
}

.plaza-tier em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.plaza-tier.is-empty strong {
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.plaza-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.35rem;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.plaza-actions .btn-sm {
  flex: 0 0 auto;
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  padding: 0.4rem 0.55rem;
  box-sizing: border-box;
}

@keyframes plaza-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .plaza-cols {
    display: none;
  }

  .plaza-board {
    grid-template-columns: 1fr;
  }

  .plaza-group {
    --plaza-grid: minmax(7rem, 1fr) repeat(3, minmax(4.5rem, 1fr)) 6.5rem;
  }

  .plaza-tier .plaza-res {
    display: block;
  }
}

@media (max-width: 820px) {
  .plaza-group {
    --plaza-grid: repeat(3, minmax(0, 1fr));
  }

  .plaza-row .plaza-identity,
  .plaza-row .plaza-actions {
    grid-column: 1 / -1;
  }

  .plaza-row .plaza-actions {
    justify-content: flex-start;
  }

  .plaza-tier .plaza-res {
    display: block;
  }

  .plaza-group-head {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plaza-group {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
