:root {
  color-scheme: light;
  --paper: #f5f6f1;
  --surface: #ffffff;
  --ink: #17212b;
  --muted: #53606a;
  --line: #d7ded9;
  --teal: #075f5a;
  --teal-dark: #063e3b;
  --coral: #d85a32;
  --gold: #f0ca56;
  --night: #16232e;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

code,
pre {
  font-family: Consolas, "Courier New", monospace;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-150%);
}

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

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  min-height: 72px;
  color: #ffffff;
}

.brand {
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 22px;
}

nav a {
  color: #ffffff;
  font-size: 0.94rem;
  text-decoration: none;
}

nav a:hover {
  color: var(--gold);
}

.hero {
  position: relative;
  display: grid;
  min-height: 74svh;
  overflow: hidden;
  background-color: var(--night);
  background-image: url("assets/ai-learning-workspace.jpg");
  background-position: center;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgb(14 25 34 / 78%);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 116px 0 86px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.84rem;
  font-weight: 800;
}

.hero .eyebrow {
  color: var(--gold);
}

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

h1,
h2,
h3 {
  font-weight: 780;
  line-height: 1.16;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.9rem, 6vw, 5.8rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 3.5vw, 3rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 32px;
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 750;
  text-decoration: none;
}

.button-light {
  background: #ffffff;
  color: var(--ink);
}

.button-light:hover {
  background: var(--gold);
}

.button-outline {
  border-color: rgb(255 255 255 / 72%);
  color: #ffffff;
}

.button-outline:hover {
  background: rgb(255 255 255 / 12%);
}

.button-dark {
  background: var(--teal);
  color: #ffffff;
}

.button-dark:hover {
  background: var(--teal-dark);
}

.section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  max-width: 700px;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.compact {
  max-width: 580px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 54px;
}

.workflow-item {
  border-top: 5px solid var(--teal);
  padding-top: 18px;
}

.workflow-item:nth-child(2) {
  border-color: var(--coral);
}

.workflow-item:nth-child(3) {
  border-color: var(--gold);
}

.workflow-item:nth-child(4) {
  border-color: #345f9c;
}

.workflow-item span {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
  font-weight: 700;
}

.workflow-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.prompt-section {
  background: var(--teal-dark);
  color: #ffffff;
}

.prompt-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.prompt-section .eyebrow {
  color: var(--gold);
}

.prompt-section .section-heading > p:last-child {
  color: #d6e4e0;
}

.prompt-box {
  position: relative;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 6px;
  background: #112c2b;
}

.prompt-box pre {
  overflow-x: auto;
  margin: 0;
  padding: 64px 24px 24px;
  color: #f6fbf9;
  font-size: 0.88rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.copy-button {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 64px;
  min-height: 34px;
  border: 1px solid rgb(255 255 255 / 52%);
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
}

.copy-button:hover {
  background: rgb(255 255 255 / 12%);
}

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

.tool-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.tool-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
}

.tool-row h3,
.tool-row p {
  margin-bottom: 0;
}

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

.tool-row a,
.setup-steps a,
.site-footer a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tool-tag {
  padding: 5px 9px;
  border: 1px solid #abc8c4;
  border-radius: 3px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.setup-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 76px;
  align-items: start;
}

.setup-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: setup;
}

.setup-steps li {
  position: relative;
  padding: 19px 20px 19px 63px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.setup-steps li::before {
  position: absolute;
  top: 19px;
  left: 20px;
  color: var(--coral);
  content: counter(setup, decimal-leading-zero);
  counter-increment: setup;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 800;
}

.setup-steps strong,
.setup-steps span {
  display: block;
}

.setup-steps span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.93rem;
}

.publish-section {
  background: var(--night);
  color: #ffffff;
}

.publish-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 70px;
  align-items: start;
}

.publish-section .eyebrow {
  color: var(--gold);
}

.publish-copy p:not(.eyebrow) {
  color: #cbd7dc;
}

.deploy-steps {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: deploy;
}

.deploy-steps li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgb(255 255 255 / 22%);
}

.deploy-steps li:first-child {
  border-top: 1px solid rgb(255 255 255 / 22%);
}

.deploy-steps span {
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.2rem;
  font-weight: 800;
}

.deploy-steps strong,
.deploy-steps p {
  display: block;
}

.deploy-steps p {
  margin: 4px 0 0;
  color: #cbd7dc;
  font-size: 0.94rem;
}

.example-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.74fr);
  gap: 48px;
  align-items: end;
}

.example-section > div > p:last-child {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
}

.example-link {
  display: grid;
  gap: 4px;
  min-height: 126px;
  align-content: center;
  padding: 24px;
  border: 2px solid var(--teal);
  border-radius: 6px;
  background: var(--surface);
  color: var(--teal);
  text-decoration: none;
}

.example-link:hover {
  background: #e5f0ed;
}

.example-link span {
  font-size: 1.12rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.example-link small {
  color: var(--muted);
}

.safety-section {
  background: var(--coral);
  color: #ffffff;
}

.safety-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}

.safety-section .eyebrow {
  color: #ffe69a;
}

.safety-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-list li {
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid rgb(255 255 255 / 40%);
  position: relative;
}

.safety-list li::before {
  position: absolute;
  top: 12px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header,
  .hero-content,
  .section,
  .site-footer {
    width: min(100% - 32px, var(--max-width));
  }

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

  nav {
    gap: 13px;
  }

  nav a {
    font-size: 0.82rem;
  }

  .hero {
    min-height: 76svh;
    background-position: 60% center;
  }

  .hero-content {
    padding: 100px 0 70px;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4.1rem);
  }

  .section {
    padding: 68px 0;
  }

  .workflow,
  .prompt-layout,
  .setup-section,
  .publish-layout,
  .example-section,
  .safety-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 34px;
  }

  .tool-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .tool-tag {
    grid-column: 2;
    justify-self: start;
  }

  .setup-section {
    gap: 24px;
  }

  .publish-layout {
    gap: 44px;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 10px;
  }
}

@media (max-width: 430px) {
  .site-header,
  .hero-content,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  .brand {
    font-size: 0.95rem;
  }

  nav {
    gap: 9px;
  }

  nav a {
    font-size: 0.76rem;
  }

  .workflow {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
