:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #607089;
  --line: #dbe3ef;
  --soft: #f6f8fb;
  --paper: #ffffff;
  --teal: #0f766e;
  --blue: #2563eb;
  --orange: #c2410c;
  --violet: #6d28d9;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.11);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img,
svg {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 227, 239, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
}

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

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  border: 1px solid transparent;
}

.nav-links a:hover,
.button:hover {
  border-color: var(--line);
  background: var(--soft);
}

.button {
  cursor: pointer;
  background: var(--paper);
  border-color: var(--line);
}

.button.primary {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.button.teal {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.button.orange {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: 54px 0 28px;
}

.hero.compact {
  min-height: auto;
  grid-template-columns: minmax(0, 0.96fr) minmax(300px, 1.04fr);
  padding-bottom: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 780;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1 {
  max-width: 840px;
  font-size: clamp(34px, 6vw, 66px);
}

h2 {
  font-size: clamp(26px, 4vw, 38px);
}

h3 {
  font-size: 19px;
}

p {
  margin: 0;
}

.lead {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  margin-top: 28px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.fact,
.card,
.demo-panel,
.screen,
.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.fact {
  padding: 14px;
}

.fact strong {
  display: block;
  font-size: 20px;
}

.fact span {
  color: var(--muted);
  font-size: 13px;
}

.visual {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(194, 65, 12, 0.13), transparent 36%),
    #f8fafc;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-inner {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: inherit;
}

.visual-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid rgba(219, 227, 239, 0.8);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

.dot:nth-child(2) {
  background: #eab308;
}

.dot:nth-child(3) {
  background: var(--teal);
}

.product-map {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 14px;
  padding: 18px;
}

.map-list,
.map-main,
.mini-chart,
.answer-box {
  border: 1px solid rgba(96, 112, 137, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.map-list {
  padding: 12px;
}

.map-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(219, 227, 239, 0.8);
  font-size: 13px;
}

.map-item:last-child {
  border-bottom: 0;
}

.map-main {
  padding: 14px;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 8px;
  height: 120px;
  padding: 14px;
  margin-top: 14px;
}

.bar {
  border-radius: 6px 6px 2px 2px;
  background: var(--teal);
}

.bar:nth-child(2) {
  height: 64%;
  background: var(--blue);
}

.bar:nth-child(3) {
  height: 48%;
  background: var(--orange);
}

.bar:nth-child(4) {
  height: 76%;
  background: var(--violet);
}

.bar:nth-child(1) {
  height: 36%;
}

.answer-box {
  padding: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head p {
  max-width: 580px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 20px;
}

.card p,
.card li {
  color: var(--muted);
}

.card h3 + p,
.card h3 + ul {
  margin-top: 10px;
}

.card ul,
.content-list {
  padding-left: 18px;
  margin: 10px 0 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.notice {
  padding: 16px;
  color: var(--muted);
  background: #fffaf5;
  border-color: #fed7aa;
}

.notice strong {
  color: var(--orange);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item b {
  color: var(--teal);
}

.screen {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.screen-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  font-size: 13px;
  font-weight: 760;
}

.screen-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

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

.flow-step {
  min-height: 110px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.flow-step b {
  display: block;
  margin-bottom: 6px;
}

.flow-step span {
  color: var(--muted);
  font-size: 13px;
}

.demo-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 58px;
}

.demo-panel {
  padding: 16px;
}

.demo-panel.sticky {
  position: sticky;
  top: 84px;
}

.scenario-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.scenario-button {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.scenario-button:hover,
.scenario-button.active {
  border-color: var(--teal);
  background: #ecfdf5;
}

.prompt-box {
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
}

.demo-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.demo-form label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.demo-input,
.demo-select,
.demo-file {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.demo-input {
  min-height: 128px;
  padding: 12px;
  resize: vertical;
}

.demo-select {
  min-height: 42px;
  padding: 8px 10px;
}

.demo-file {
  min-height: 44px;
  padding: 9px 10px;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink);
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-hint,
.api-status {
  color: var(--muted);
  font-size: 13px;
}

.api-status {
  min-height: 22px;
}

.api-status.error {
  color: #b91c1c;
}

.api-status.ok {
  color: var(--teal);
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
}

.result-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.result-card h3 {
  margin-bottom: 10px;
}

.answer {
  white-space: pre-line;
  color: var(--ink);
}

.evidence-list,
.metric-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.evidence {
  padding: 10px;
  border-left: 3px solid var(--teal);
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.metric:last-child {
  border-bottom: 0;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

@media (max-width: 880px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .hero.compact,
  .grid.two,
  .grid.three,
  .demo-shell,
  .result-grid,
  .product-map {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .quick-facts,
  .flow-row {
    grid-template-columns: 1fr;
  }

  .visual {
    min-height: 340px;
  }

  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .demo-panel.sticky {
    position: static;
  }
}

@media (max-width: 520px) {
  .page,
  .nav,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }

  .nav-links a,
  .button {
    width: 100%;
  }

  .nav-links,
  .button-row {
    width: 100%;
  }

  .card,
  .demo-panel,
  .screen-body {
    padding: 14px;
  }
}
