:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --surface: #ffffff;
  --ink: #15171d;
  --muted: #666d7a;
  --subtle: #8d95a3;
  --line: #e4e7ec;
  --line-strong: #d2d7df;
  --accent: #ee4d4d;
  --accent-dark: #d73737;
  --accent-soft: #fff0f0;
  --shadow: 0 24px 70px rgba(21, 23, 29, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(228, 231, 236, 0.8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
}

.brand-text {
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: var(--accent-dark);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.section-pad {
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(460px, 0.92fr) minmax(560px, 1fr);
  align-items: center;
  gap: 46px;
  min-height: 720px;
  padding-top: 58px;
  padding-bottom: 62px;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(40px, 4.25vw, 60px);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-lede {
  max-width: 570px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 680;
  cursor: pointer;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-break {
  display: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(238, 77, 77, 0.22);
}

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

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

.product-shell,
.detail-preview,
.code-window,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-shell {
  overflow: hidden;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.window-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: #d6dbe3;
}

.topbar-title {
  font-weight: 680;
  color: var(--ink);
}

.status-chip {
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.app-grid {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 190px;
  min-height: 438px;
}

.app-sidebar,
.generator-panel {
  padding: 18px;
  background: #fbfcfd;
}

.app-sidebar {
  border-right: 1px solid var(--line);
}

.generator-panel {
  border-left: 1px solid var(--line);
}

.sidebar-title,
.panel-title {
  display: block;
  margin-bottom: 16px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 760;
}

.side-link {
  display: block;
  margin-bottom: 7px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.side-link.is-active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.asset-board {
  padding: 18px;
}

.asset-toolbar,
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
}

.asset-toolbar button,
.detail-header button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

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

.asset-card {
  min-height: 156px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.asset-card img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.asset-card span {
  display: block;
  padding: 10px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 640;
}

.asset-card.text-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  background: linear-gradient(135deg, #fff, #fff5f5);
}

.asset-card.text-card strong {
  font-size: 22px;
}

.generator-panel label,
.contact-form label {
  display: block;
  margin-bottom: 14px;
}

.generator-panel label span,
.contact-form label span,
.prompt-box span,
.api-snippet span {
  display: block;
  margin-bottom: 6px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 720;
}

.generator-panel input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.generator-panel input {
  height: 34px;
  padding: 0 9px;
  font-size: 12px;
}

.prompt-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.prompt-box p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.feature-band,
.use-cases {
  max-width: none;
  background: var(--bg-soft);
}

.feature-band > *,
.use-cases > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.56fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading.compact {
  display: block;
  max-width: 730px;
}

.section-heading h2,
.api-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.16;
  font-weight: 760;
  letter-spacing: 0;
}

.section-heading p,
.api-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
}

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

.feature-list article,
.case-band article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.feature-list article {
  padding: 26px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-list h3,
.case-band h3 {
  margin: 0 0 9px;
  font-size: 20px;
}

.feature-list p,
.case-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.detail-preview {
  padding: 22px;
  box-shadow: 0 18px 48px rgba(21, 23, 29, 0.1);
}

.detail-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.folder-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 760;
}

.detail-row strong,
.detail-row small {
  display: block;
}

.detail-row small {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 12px;
}

.detail-row em {
  font-style: normal;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 720;
}

.detail-row em.is-done {
  color: #167a4a;
}

.api-snippet {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #16191f;
  color: #fff;
}

.api-snippet code {
  color: #ffd6d6;
  font-size: 13px;
}

.workflow-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-rail::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--line-strong);
}

.workflow-rail li {
  position: relative;
  padding: 0 10px;
}

.workflow-rail span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 780;
}

.workflow-rail strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.workflow-rail p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.api-section,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 0.74fr);
  gap: 60px;
  align-items: center;
}

.api-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.api-copy li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 16px;
}

.api-copy li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.code-window {
  overflow: hidden;
  background: #15171d;
  color: #f7f8fa;
  box-shadow: 0 22px 56px rgba(21, 23, 29, 0.18);
}

.code-topbar {
  display: flex;
  gap: 7px;
  padding: 17px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.8;
}

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

.case-band article {
  padding: 28px;
}

.contact {
  align-items: start;
}

.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-points span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.contact-form {
  padding: 26px;
  box-shadow: 0 18px 48px rgba(21, 23, 29, 0.1);
}

.contact-form input,
.contact-form textarea {
  padding: 12px 13px;
  font-size: 15px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(238, 77, 77, 0.12);
}

.contact-form .button {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--subtle);
  font-size: 13px;
}

.form-note.is-success {
  color: #167a4a;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px;
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1060px) {
  .hero,
  .feature-layout,
  .api-section,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .product-shell {
    width: 100%;
    max-width: 760px;
  }

  .app-grid {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .generator-panel {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

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

  .site-header {
    padding: 0 18px;
  }

  .header-cta {
    min-height: 36px;
    padding: 0 12px;
  }

  .section-pad {
    padding: 68px 20px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .section-heading,
  .feature-list,
  .workflow-rail,
  .case-band {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 16px;
  }

  .workflow-rail::before {
    display: none;
  }

  .workflow-rail li {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    column-gap: 16px;
    padding: 0;
  }

  .workflow-rail span {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .brand-text {
    font-size: 13px;
  }

  .header-cta {
    display: none;
  }

  .hero-copy h1 {
    font-size: 30px;
    line-height: 1.12;
    word-break: keep-all;
  }

  .mobile-break {
    display: block;
  }

  .hero-lede,
  .section-heading p,
  .api-copy p,
  .contact-copy p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .app-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-title {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .asset-list {
    grid-template-columns: 1fr;
  }

  .asset-toolbar,
  .detail-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .asset-toolbar button,
  .detail-header button {
    width: 100%;
  }

  .detail-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .detail-row em {
    grid-column: 2;
  }
}
