:root {
  color-scheme: light;
  --bg: #f6faf7;
  --surface: #ffffff;
  --surface-soft: #eef8f3;
  --text: #17312a;
  --muted: #60746d;
  --primary: #17a36f;
  --primary-dark: #0b7250;
  --blue: #2d7dd2;
  --mint: #dff5eb;
  --yellow: #fff3c8;
  --coral: #ff7f6e;
  --line: #dcebe4;
  --shadow: 0 24px 70px rgba(23, 49, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgba(45, 125, 210, 0.12), transparent 28%),
    radial-gradient(circle at 92% 24%, rgba(23, 163, 111, 0.14), transparent 26%),
    linear-gradient(180deg, #f6faf7 0%, #ffffff 48%, #f3faf7 100%);
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  color: #fff;
  font-size: 15px;
}

.nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--primary-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
  gap: 52px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 48px 0 76px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: 58px;
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.22;
}

h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.slogan {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(23, 163, 111, 0.22);
}

.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-dark);
  box-shadow: none;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.hero__stats div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(220, 235, 228, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.hero__stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 20px;
}

.hero__stats span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hero__media {
  position: relative;
}

.hero__media::before {
  position: absolute;
  inset: 26px -18px -18px 26px;
  z-index: -1;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mint), #e8f2ff);
  content: "";
}

.hero__media img {
  width: 100%;
  aspect-ratio: 1.22;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.section--light {
  width: 100%;
  padding: 84px max(20px, calc((100% - 1180px) / 2));
  background: rgba(255, 255, 255, 0.72);
}

.section__header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section__header p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 258px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(23, 49, 42, 0.06);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 34px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-weight: 900;
}

.feature-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.scenes {
  padding-top: 86px;
}

.scene-list {
  display: grid;
  gap: 28px;
}

.scene {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 48px rgba(23, 49, 42, 0.07);
}

.scene--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
}

.scene--reverse img {
  order: 2;
}

.scene img {
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
  border-radius: 8px;
}

.scene > div {
  padding: 12px 12px 12px 0;
}

.scene--reverse > div {
  padding: 12px 0 12px 12px;
}

.scene__label {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.scene p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.workflow {
  padding-top: 40px;
}

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

.steps article {
  min-height: 198px;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f2faf6 100%);
  border: 1px solid var(--line);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-weight: 900;
}

.steps p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.api-test {
  padding-top: 40px;
}

.api-test code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.92em;
}

.api-test__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.api-test__form,
.api-test__result {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 38px rgba(23, 49, 42, 0.06);
}

.api-test__form {
  display: grid;
  gap: 12px;
}

.api-test__form label {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.api-test__form input,
.api-test__form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  background: #fff;
  font: inherit;
  line-height: 1.6;
}

.api-test__form textarea {
  resize: vertical;
}

.api-test__form input[type="file"] {
  cursor: pointer;
}

.api-test__hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.api-test__form button {
  margin-top: 8px;
  cursor: pointer;
}

.api-test__form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.api-test__result {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr);
  gap: 14px;
}

.api-test__result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.api-test__result-head span {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.api-test__result pre {
  min-width: 0;
  margin: 0;
  overflow: auto;
  padding: 16px;
  border-radius: 8px;
  background: #10231d;
  color: #e8fff4;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 163, 111, 0.92), rgba(45, 125, 210, 0.9)),
    var(--primary);
  color: #fff;
}

.cta .eyebrow,
.cta p {
  color: rgba(255, 255, 255, 0.86);
}

.cta h2 {
  max-width: 640px;
}

.cta p {
  max-width: 740px;
  margin: 16px 0 0;
  line-height: 1.8;
}

.cta .button {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.8);
  background: #fff;
  color: var(--primary-dark);
  box-shadow: none;
}

.notice {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 58px;
  padding: 22px 24px;
  border: 1px solid #ecd99a;
  border-radius: 8px;
  background: #fff9e6;
}

.notice p {
  margin: 8px 0 0;
  color: #705b20;
  line-height: 1.75;
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    gap: 16px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    font-size: 46px;
  }

  .feature-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scene,
  .scene--reverse {
    grid-template-columns: 1fr;
  }

  .scene--reverse img {
    order: 0;
  }

  .scene > div,
  .scene--reverse > div {
    padding: 4px;
  }

  .api-test__panel {
    grid-template-columns: 1fr;
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .site-header {
    position: static;
    display: block;
  }

  .nav {
    margin-top: 16px;
    justify-content: flex-start;
  }

  .hero {
    gap: 34px;
    padding-bottom: 54px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  .slogan {
    font-size: 17px;
  }

  .hero__actions,
  .hero__stats,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section,
  .section--light {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .section--light {
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  .scene {
    padding: 14px;
  }

  .cta {
    padding: 28px;
  }
}
