:root {
  color-scheme: light;
  --ink: #152033;
  --muted: #66758b;
  --line: #dbe4ef;
  --surface: #ffffff;
  --soft: #f5f8fb;
  --blue: #2f6fed;
  --teal: #10868f;
  --green: #1d8f5f;
  --orange: #d97817;
  --red: #d33b3b;
  --shadow: 0 18px 50px rgba(30, 48, 80, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(47, 111, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 237, 0.04) 1px, transparent 1px),
    #f7fafc;
  background-size: 34px 34px;
  color: var(--ink);
  font-family:
    Inter,
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

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

button {
  font: inherit;
}

.app-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.top-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.top-nav a:hover {
  background: var(--soft);
  color: var(--ink);
}

.icon-button,
.primary-action,
.secondary-action,
.copy-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.icon-button {
  padding: 0 14px;
}

.icon-button svg,
.primary-action svg,
.secondary-action svg,
.copy-command svg,
.matrix-grid svg {
  width: 18px;
  height: 18px;
}

main {
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  min-height: 360px;
  padding: 58px 0 32px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: 0;
}

.hero-copy p:last-child,
.section-heading p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 360px;
}

.primary-action,
.secondary-action {
  padding: 0 18px;
}

.primary-action {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.secondary-action:hover,
.icon-button:hover,
.copy-command:hover {
  border-color: #b7c6d9;
  background: #eef4fb;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 56px;
}

.metric-strip article {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(31, 48, 74, 0.06);
}

.metric-strip span,
.metric-strip small {
  display: block;
  color: var(--muted);
}

.metric-strip strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.workbench,
.publish-band,
.reference-band,
.action-matrix {
  padding: 42px 0 54px;
}

.section-heading {
  margin-bottom: 24px;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.process-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 16px;
  min-height: 520px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.lane {
  position: relative;
  display: flex;
  min-width: 210px;
  flex-direction: column;
  gap: 12px;
}

.lane:not(:last-child)::after {
  position: absolute;
  top: 58px;
  right: -16px;
  width: 16px;
  height: 1px;
  background: #9fb2c8;
  content: "";
}

.lane h3 {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.process-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 122px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 8px;
  background: white;
  text-align: left;
  box-shadow: 0 10px 24px rgba(31, 48, 74, 0.08);
  cursor: pointer;
}

.process-card:hover,
.process-card.active {
  border-color: rgba(47, 111, 237, 0.5);
  box-shadow: 0 18px 32px rgba(47, 111, 237, 0.15);
  transform: translateY(-1px);
}

.process-card.warning {
  border-top-color: var(--orange);
}

.process-card.success {
  border-top-color: var(--green);
}

.process-card.danger {
  border-top-color: var(--red);
}

.process-card.cloud {
  border-top-color: var(--teal);
}

.process-card strong,
.process-card small,
.card-kicker {
  display: block;
}

.card-kicker {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.process-card strong {
  margin-bottom: 8px;
  font-size: 16px;
}

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

.inspector {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.inspector-header span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

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

.detail-grid {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.detail-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.detail-grid dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-grid dd {
  margin: 0;
}

.matrix-grid,
.publish-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.matrix-grid article,
.step-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(31, 48, 74, 0.06);
}

.matrix-grid svg {
  margin-bottom: 14px;
  color: var(--teal);
}

.matrix-grid p,
.step-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.step-card span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.command-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #142033;
  box-shadow: var(--shadow);
}

.command-panel p {
  margin-bottom: 8px;
  color: #aebbd0;
  font-size: 13px;
  font-weight: 800;
}

.copy-command {
  width: 100%;
  justify-content: flex-start;
  min-height: 54px;
  padding: 0 14px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f7fafc;
  overflow-wrap: anywhere;
}

.copy-command:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
}

.copy-command code {
  white-space: normal;
}

.reference-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.reference-figure img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: #edf3fa;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1440px, calc(100% - 36px));
  margin: 20px auto 0;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1180px) {
  .board-layout,
  .hero-band {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .inspector {
    position: static;
  }

  .matrix-grid,
  .publish-grid,
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .command-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
  }

  .icon-button {
    width: 100%;
  }

  main,
  .site-footer {
    width: min(100% - 24px, 1440px);
  }

  .hero-band {
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    font-size: 38px;
  }

  .metric-strip,
  .matrix-grid,
  .publish-grid {
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .process-board {
    grid-template-columns: repeat(4, 210px);
  }

  .site-footer {
    flex-direction: column;
  }
}
