:root {
  color-scheme: light;
  --ink: #18212b;
  --muted: #5f6974;
  --faint: #8b949f;
  --paper: #f7f6f0;
  --paper-deep: #ebe3d2;
  --surface: #fffdf8;
  --surface-soft: #f0f4f0;
  --line: #dfdbcf;
  --line-strong: #cac1ad;
  --graphite: #2d3742;
  --teal: #2e7374;
  --teal-dark: #184f55;
  --blue: #2f5f9f;
  --amber: #9b6b2a;
  --red: #ba524d;
  --shadow: 0 22px 60px rgba(25, 31, 38, 0.16);
  --shadow-soft: 0 12px 34px rgba(25, 31, 38, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(223, 219, 207, 0.78);
  background: rgba(247, 246, 240, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.topbar nav,
.hero-actions,
.footer-links,
.platform-row,
.screen-tabs {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
}

.topbar nav {
  gap: clamp(12px, 2.2vw, 26px);
}

.topbar nav a,
.footer a {
  color: var(--muted);
  font-size: 14px;
}

.topbar nav a:hover,
.footer a:hover {
  color: var(--teal-dark);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding: 104px clamp(22px, 8vw, 120px) 70px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f9f8f2;
}

.hero-image {
  position: absolute;
  top: 78px;
  right: max(-230px, -12vw);
  width: min(1180px, 76vw);
  border: 1px solid rgba(223, 219, 207, 0.78);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.hero-shade {
  position: absolute;
  inset: 64px 0 0;
  background:
    linear-gradient(90deg, #f9f8f2 0%, rgba(249, 248, 242, 0.96) 34%, rgba(249, 248, 242, 0.68) 62%, rgba(249, 248, 242, 0.18) 100%),
    linear-gradient(180deg, rgba(247, 246, 240, 0) 72%, var(--paper) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(58px, 11vw, 126px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-kicker {
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(46, 115, 116, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.72);
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 900;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.8vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.68;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

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

.button.ghost {
  color: var(--teal-dark);
  background: rgba(255, 253, 248, 0.76);
  border-color: rgba(46, 115, 116, 0.32);
}

.button[data-disabled="true"] {
  cursor: not-allowed;
}

code {
  padding: 1px 5px;
  border: 1px solid rgba(223, 219, 207, 0.9);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.72);
  color: var(--teal-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip div {
  min-height: 132px;
  padding: 22px clamp(18px, 3vw, 40px);
  background: var(--surface);
}

.label {
  display: block;
  margin-bottom: 7px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 900;
}

.proof-strip strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.05;
}

.proof-strip p,
.engine-grid p,
.workflow-copy p,
.flow p,
.section-heading p,
.compare-grid p,
.download-card p,
.status-list p,
.screen-preview figcaption {
  color: var(--muted);
  line-height: 1.68;
}

.section-pad {
  padding: 82px clamp(22px, 7vw, 104px);
}

.section-heading {
  width: min(900px, 100%);
  margin-bottom: 34px;
}

.section-heading.compact {
  width: min(780px, 100%);
}

.engine {
  background: linear-gradient(180deg, var(--paper) 0%, #fbfaf5 100%);
}

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

.engine-grid article,
.compare-grid article,
.download-card,
.status-list article {
  border: 1px solid rgba(223, 219, 207, 0.92);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.engine-grid article {
  min-height: 240px;
  padding: 26px;
}

.feature-index {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}

.template-system {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f2ecdf;
}

.template-copy {
  position: sticky;
  top: 96px;
}

.template-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.template-visual {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(202, 193, 173, 0.96);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.template-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.template-visual figcaption {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  color: var(--muted);
  line-height: 1.68;
}

.concepts {
  background: #fbfaf5;
  border-top: 1px solid var(--line);
}

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

.concept-grid article {
  display: grid;
  grid-template-columns: minmax(360px, 0.58fr) minmax(260px, 0.42fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(223, 219, 207, 0.92);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.concept-grid article:nth-child(even) {
  grid-template-columns: minmax(260px, 0.42fr) minmax(360px, 0.58fr);
}

.concept-grid article:nth-child(even) img {
  order: 2;
  border-right: 0;
  border-left: 1px solid var(--line);
}

.concept-grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  object-position: center;
  border-right: 1px solid var(--line);
}

.concept-grid div {
  align-self: center;
  padding: clamp(26px, 4vw, 54px);
}

.concept-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.concept-grid h3 {
  margin-bottom: 16px;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.08;
}

.concept-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 42px;
  background: var(--graphite);
  color: #fffdf8;
}

.workflow .eyebrow {
  color: #d9ad72;
}

.workflow-copy {
  position: sticky;
  top: 96px;
  align-self: start;
}

.workflow-copy p {
  color: rgba(255, 253, 248, 0.72);
}

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

.flow li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px 24px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.06);
}

.flow li span {
  grid-row: span 2;
  color: #d9ad72;
  font-weight: 900;
}

.flow li strong {
  font-size: 21px;
}

.flow li p {
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.72);
}

.screens {
  background: #fbfaf5;
}

.screen-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screen-tabs {
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(240, 244, 240, 0.72);
}

.screen-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}

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

.screen-preview {
  margin: 0;
}

.screen-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.screen-preview figcaption {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.compare {
  background: var(--paper);
}

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

.compare-grid article {
  padding: 22px;
}

.compare-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 900;
}

.compare-grid .highlight {
  background: var(--teal-dark);
  color: #fff;
  border-color: var(--teal-dark);
}

.compare-grid .highlight span,
.compare-grid .highlight p {
  color: rgba(255, 255, 255, 0.78);
}

.download {
  background: #fbfaf5;
}

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

.download-card {
  position: relative;
  padding: 26px;
}

.download-card.recommended {
  border-color: rgba(46, 115, 116, 0.58);
}

.download-card.recommended::before {
  content: "推荐";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  background: rgba(46, 115, 116, 0.12);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.platform-row {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
}

.platform-row span {
  font-weight: 900;
}

.platform-row small {
  color: var(--faint);
  font-weight: 800;
}

.download-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 30px;
}

.download-card dl {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}

.download-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.download-card dd,
.download-card dt {
  margin: 0;
}

.notice {
  margin: 18px 0 0;
  color: var(--amber);
  font-weight: 800;
}

.release-status {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 32px;
  background: var(--paper);
}

.status-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.status-list article {
  padding: 22px;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-bottom: 18px;
  border-radius: 50%;
}

.status-dot.pending {
  background: #d89a30;
}

.status-dot.ready {
  background: #2f9d68;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(22px, 7vw, 104px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer div:first-child {
  display: grid;
  gap: 4px;
}

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

.footer-links {
  gap: 18px;
}

@media (max-width: 980px) {
  .topbar nav {
    display: none;
  }

  .hero {
    align-items: flex-end;
    min-height: 78vh;
    padding-top: 92px;
  }

  .hero-image {
    top: 82px;
    right: -260px;
    width: 980px;
    opacity: 0.58;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, #f9f8f2 0%, rgba(249, 248, 242, 0.9) 58%, rgba(249, 248, 242, 0.42) 100%),
      linear-gradient(180deg, rgba(247, 246, 240, 0) 64%, var(--paper) 100%);
  }

  .proof-strip,
  .engine-grid,
  .concept-grid article,
  .concept-grid article:nth-child(even),
  .compare-grid,
  .download-grid,
  .status-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .concept-grid article:nth-child(even) img {
    order: 0;
  }

  .template-system,
  .workflow,
  .release-status {
    grid-template-columns: 1fr;
  }

  .template-copy {
    position: static;
  }

  .workflow-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: 58px;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .hero {
    align-items: center;
    min-height: 660px;
    padding: 92px 18px 44px;
  }

  .hero-image {
    top: 66px;
    right: -330px;
    width: 760px;
    opacity: 0.48;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 32px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-kicker {
    font-size: 16px;
  }

  .section-pad {
    padding: 58px 18px;
  }

  .proof-strip,
  .engine-grid,
  .concept-grid article,
  .concept-grid article:nth-child(even),
  .compare-grid,
  .download-grid,
  .status-list {
    grid-template-columns: 1fr;
  }

  .concept-grid img,
  .concept-grid article:nth-child(even) img {
    min-height: 230px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .concept-grid p {
    font-size: 16px;
  }

  .flow li {
    grid-template-columns: 1fr;
  }

  .flow li span {
    grid-row: auto;
  }

  .screen-tabs {
    overflow-x: auto;
  }

  .screen-tabs button {
    white-space: nowrap;
  }

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