:root {
  --paper: #f7f8f5;
  --surface: #ffffff;
  --ink: #18201e;
  --muted: #5f6b66;
  --line: #d9e0dc;
  --jade: #2d796c;
  --jade-soft: #dff0e9;
  --sky-soft: #e6f0f4;
  --vermilion: #bd4b3f;
  --vermilion-soft: #f8e6e2;
  --gold: #b88b40;
  --shadow: 0 18px 45px rgb(25 45 38 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: var(--surface);
  transform: translateY(-150%);
}

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

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--jade);
  border-radius: 7px;
  color: var(--jade);
  background: var(--surface);
  font-size: 15px;
}

nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--jade);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.readonly-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.readonly-status span,
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade);
}

.hero,
.section,
.public-notice {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 42px 0 32px;
}

.hero-heading {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 700;
}

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

h1,
h2,
h3 {
  line-height: 1.22;
}

h1 {
  margin-bottom: 14px;
  font-size: 54px;
  font-weight: 800;
}

.lead {
  max-width: 690px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

.hero-workspace {
  overflow: hidden;
  border: 1px solid #bfcfc7;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workspace-toolbar {
  min-height: 45px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  background: #f3f6f3;
  font-size: 13px;
}

.workspace-toolbar p,
.sample-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.workspace-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
}

.run-panel {
  padding: 28px;
}

.command-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #c2d6cf;
  border-radius: 6px;
  color: var(--muted);
  background: var(--jade-soft);
  font-size: 14px;
}

.command-line code {
  color: var(--ink);
  font-family: Consolas, monospace;
  font-weight: 700;
}

.run-description {
  max-width: 600px;
  margin: 17px 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.run-list,
.workflow-list,
.boundary-grid ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.run-list {
  border-top: 1px solid var(--line);
}

.run-list li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid var(--line);
}

.run-number,
.delivery-index {
  color: var(--jade);
  font-family: Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.run-list strong,
.run-list small {
  display: block;
}

.run-list strong {
  font-size: 15px;
}

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

.run-state {
  padding: 3px 7px;
  border: 1px solid #9fc2b8;
  border-radius: 4px;
  color: var(--jade);
  background: #f7fcf9;
  font-size: 12px;
}

.sample-output {
  margin: 0;
  padding: 20px;
  border-left: 1px solid var(--line);
  background: var(--sky-soft);
}

.sample-meta {
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.sample-output img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #bad0cf;
  border-radius: 6px;
  object-fit: cover;
}

.sample-output figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.scroll-hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 84px 0;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 28px;
}

.section-heading h2,
.public-notice h2 {
  margin-bottom: 10px;
  font-size: 32px;
}

.section-heading > p:last-child,
.public-notice > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.deliverables {
  border-top: 1px solid var(--line);
}

.delivery-grid,
.toolchain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.delivery-grid article,
.toolchain-grid article {
  min-height: 184px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.delivery-grid h3,
.toolchain-grid h3 {
  margin: 12px 0 9px;
  font-size: 18px;
}

.delivery-grid p,
.toolchain-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.workflow {
  width: 100%;
  max-width: none;
  padding: 84px max(20px, calc((100% - 1180px) / 2));
  background: #183a35;
  color: #eef8f3;
}

.workflow .eyebrow {
  color: #94d7c6;
}

.workflow .section-heading > p:last-child {
  color: #c3d4ce;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgb(238 248 243 / 25%);
  border-left: 1px solid rgb(238 248 243 / 25%);
}

.workflow-list li {
  min-height: 172px;
  padding: 20px;
  border-right: 1px solid rgb(238 248 243 / 25%);
  border-bottom: 1px solid rgb(238 248 243 / 25%);
}

.workflow-list li > span {
  color: #94d7c6;
  font-family: Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.workflow-list h3 {
  margin: 22px 0 7px;
  font-size: 18px;
}

.workflow-list p {
  margin-bottom: 0;
  color: #c3d4ce;
  font-size: 14px;
}

.evidence {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.evidence-copy h2 {
  margin-bottom: 10px;
  font-size: 32px;
}

.evidence-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.metrics {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

.metrics div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.metrics strong {
  color: var(--vermilion);
  font-size: 21px;
}

.metrics span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.log-panel {
  padding: 20px;
  border: 1px solid #354d47;
  border-radius: 7px;
  background: #17211f;
  color: #d9ebe4;
}

.log-title,
.log-note {
  margin: 0;
  font-family: Consolas, monospace;
  font-size: 12px;
}

.log-title {
  color: #94d7c6;
}

.log-panel pre {
  overflow-x: auto;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid #354d47;
  border-bottom: 1px solid #354d47;
  color: #f0f6f3;
  font-family: Consolas, monospace;
  font-size: 13px;
  line-height: 1.9;
}

.log-note {
  color: #acc0b8;
}

.toolchain {
  border-top: 1px solid var(--line);
}

.boundaries {
  border-top: 1px solid var(--line);
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.boundary-grid article {
  min-height: 275px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.boundary-grid article > p {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
}

.boundary-grid li {
  position: relative;
  margin: 0 0 11px;
  padding-left: 17px;
  color: var(--muted);
  font-size: 14px;
}

.boundary-grid li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.can-do li::before {
  background: var(--jade);
}

.cannot-do {
  border-color: #e8c6c1 !important;
  background: #fffaf9 !important;
}

.cannot-do > p {
  color: var(--vermilion);
}

.cannot-do li::before {
  background: var(--vermilion);
}

.human-do {
  border-color: #e4d3ae !important;
  background: #fffdf8 !important;
}

.human-do > p {
  color: #876323;
}

.human-do li::before {
  background: var(--gold);
}

.public-notice {
  margin-top: 0;
  margin-bottom: 84px;
  padding: 34px;
  border: 1px solid #c2d6cf;
  border-radius: 8px;
  background: var(--jade-soft);
}

footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .workspace-content,
  .evidence {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 620px) {
  .site-header,
  .hero,
  .section,
  .public-notice,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 60px;
  }

  .readonly-status {
    font-size: 12px;
  }

  .hero {
    padding-top: 25px;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 16px;
  }

  .workspace-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 14px;
    gap: 2px;
  }

  .run-panel,
  .sample-output {
    padding: 18px;
  }

  .run-list li {
    grid-template-columns: 30px 1fr;
    padding: 11px 0;
  }

  .run-state {
    grid-column: 2;
    justify-self: start;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading h2,
  .evidence-copy h2,
  .public-notice h2 {
    font-size: 27px;
  }

  .delivery-grid,
  .toolchain-grid,
  .boundary-grid,
  .workflow-list {
    grid-template-columns: 1fr;
  }

  .delivery-grid article,
  .toolchain-grid article,
  .workflow-list li,
  .boundary-grid article {
    min-height: 0;
  }

  .workflow {
    padding: 58px 14px;
  }

  .metrics div,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics span {
    text-align: left;
  }

  .public-notice {
    margin-bottom: 58px;
    padding: 24px;
  }
}

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