:root {
  --bg: #fffaf2;
  --bg-soft: #f6eee2;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-deep: #fff6ea;
  --text: #17181b;
  --text-muted: #595d65;
  --text-soft: #81858d;
  --line: rgba(23, 24, 27, 0.07);
  --primary: #f97316;
  --primary-deep: #d85d0b;
  --teal: #0f8d83;
  --shadow-soft: 0 18px 40px rgba(77, 56, 24, 0.08);
  --shadow-card: 0 10px 24px rgba(77, 56, 24, 0.06);
  --container: 1360px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.07), transparent 34%),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 42%, #fffaf3 100%);
  line-height: 1.65;
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.4);
  outline-offset: 3px;
}

p,
ul,
pre {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

code,
pre {
  font-family: "Consolas", "SFMono-Regular", monospace;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  box-shadow: var(--shadow-card);
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(calc(100% - 56px), var(--container));
  margin: 0 auto;
}

.topbar {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(23, 24, 27, 0.05);
  background: rgba(255, 249, 239, 0.94);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 10px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.topbar-inner strong {
  color: var(--primary-deep);
}

.topbar-inner a {
  color: var(--primary-deep);
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(255, 250, 242, 0.82);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(23, 24, 27, 0.06);
  box-shadow: 0 10px 20px rgba(77, 56, 24, 0.05);
  background: rgba(255, 250, 242, 0.94);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-copy span {
  color: var(--text-soft);
  font-size: 0.79rem;
  white-space: nowrap;
}

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

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.site-nav a[aria-current="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-link {
  color: var(--text-muted);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: #fff8ef;
  background: linear-gradient(135deg, #ff933f 0%, var(--primary) 66%, #dd6211 100%);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.16);
}

.btn-secondary {
  border-color: rgba(23, 24, 27, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

.btn-large {
  min-height: 56px;
  padding: 0 24px;
}

main [id] {
  scroll-margin-top: 104px;
}

.hero-section {
  padding: 52px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(380px, 0.84fr);
  gap: 44px;
  align-items: stretch;
}

.hero-copy {
  padding: 30px 0 20px;
}

.eyebrow,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(249, 115, 22, 0.18);
  color: var(--primary-deep);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.panel-head h3,
.process-panel h3,
.code-card h3,
.faq-intro h3,
.cta-copy h2,
.cta-primary strong,
.site-footer strong {
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
}

.hero-copy h1 {
  margin: 18px 0 0;
  font-size: clamp(3.4rem, 5.3vw, 6.4rem);
  line-height: 1.01;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-title {
  max-width: 13ch;
}

.hero-title span {
  display: block;
}

.hero-title span:last-child {
  margin-top: 8px;
  color: var(--primary-deep);
}

.hero-lead {
  max-width: 52rem;
  margin-top: 22px;
  font-size: 1.16rem;
  color: var(--text-muted);
}

.hero-sub {
  max-width: 44rem;
  margin-top: 18px;
  color: var(--text-soft);
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.trust-item {
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(23, 24, 27, 0.06);
  background: rgba(255, 255, 255, 0.7);
}

.trust-item strong {
  display: block;
  font-size: 1rem;
}

.trust-item span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.hero-visual {
  display: flex;
  align-items: stretch;
  min-height: 100%;
}

.platform-card {
  position: relative;
  width: 100%;
  padding: 36px;
  border-radius: 34px;
  border: 1px solid rgba(23, 24, 27, 0.06);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 236, 0.95));
  box-shadow: var(--shadow-soft);
}

.platform-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.platform-flow {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.flow-row {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(23, 24, 27, 0.06);
  background: rgba(255, 255, 255, 0.74);
}

.flow-row.highlight {
  border-color: rgba(249, 115, 22, 0.26);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(255, 246, 233, 0.94)),
    rgba(255, 255, 255, 0.88);
}

.flow-row strong {
  display: block;
  font-size: 1.16rem;
}

.flow-row p {
  margin-top: 8px;
  color: var(--text-muted);
}

.flow-line {
  width: 2px;
  height: 24px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.8), rgba(15, 141, 131, 0.45));
}

.visual-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(23, 24, 27, 0.035);
}

.visual-note span {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.visual-note strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
}

.visual-note p {
  margin-top: 8px;
  color: var(--text-muted);
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(246, 238, 226, 0.38));
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading h2 {
  margin: 18px 0 0;
  font-size: clamp(2.1rem, 3.4vw, 3.6rem);
  line-height: 1.08;
}

.section-heading p:last-child {
  margin-top: 14px;
  color: var(--text-muted);
}

.value-grid,
.pricing-grid {
  display: grid;
  gap: 18px;
}

.value-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.91fr) minmax(0, 0.91fr);
}

.value-card,
.panel-card,
.process-panel,
.code-card,
.pricing-card,
.faq-list details,
.cta-primary {
  border-radius: 28px;
  border: 1px solid rgba(23, 24, 27, 0.06);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.value-card {
  padding: 26px;
}

.value-card-featured {
  padding: 32px;
  border-color: rgba(249, 115, 22, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.98), rgba(255, 255, 255, 0.92)),
    #fff;
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.08);
}

.value-card-featured h3 {
  font-size: 1.34rem;
}

.value-card h3,
.pricing-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.value-card p,
.pricing-card p {
  margin-top: 10px;
  color: var(--text-muted);
}

.split-layout,
.integration-layout,
.faq-layout,
.cta-shell {
  display: grid;
  gap: 18px;
}

.split-layout,
.integration-layout,
.cta-shell {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
}

.panel-card {
  padding: 28px;
}

.split-layout-light .panel-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.split-layout-light .panel-head {
  max-width: 34rem;
}

.split-layout-light .split-list {
  gap: 0;
  margin-top: 18px;
}

.split-layout-light .split-item {
  padding: 18px 0;
}

.split-layout-light .panel-note {
  margin-top: 18px;
}

.panel-head h3,
.faq-intro h3,
.process-panel h3,
.code-card h3,
.cta-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  line-height: 1.12;
}

.split-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.split-item {
  padding-top: 14px;
  border-top: 1px solid rgba(23, 24, 27, 0.08);
}

.split-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.split-copy strong {
  display: block;
  font-size: 1.06rem;
}

.split-copy p {
  margin-top: 8px;
  color: var(--text-muted);
}

.panel-note {
  margin-top: 22px;
  color: var(--text-soft);
}

.process-panel {
  padding: 24px;
}

.process-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border-radius: 22px;
  background: rgba(23, 24, 27, 0.03);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.14);
  color: var(--primary-deep);
  font-weight: 900;
}

.process-step strong,
.governance-item strong {
  display: block;
  font-size: 1rem;
}

.process-step p,
.governance-item p,
.code-card-head p,
.faq-intro p,
.cta-copy p,
.cta-primary p {
  margin-top: 8px;
  color: var(--text-muted);
}

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

.governance-item {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 247, 236, 0.92);
  border: 1px solid rgba(249, 115, 22, 0.1);
}

.code-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 238, 0.98));
}

.code-card-head p {
  max-width: 48ch;
}

.code-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin-top: 22px;
  border-radius: 999px;
  background: rgba(23, 24, 27, 0.05);
}

.code-tab {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.code-tab.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(23, 24, 27, 0.08);
}

.code-panels {
  margin-top: 18px;
}

.code-panel {
  display: none;
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
  background: #171a1e;
  color: #eef7f2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
  line-height: 1.7;
}

.code-panel.is-active {
  display: block;
}

.code-panel[hidden] {
  display: none;
}

.pricing-grid {
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.93fr) minmax(0, 0.93fr);
}

.pricing-card {
  padding: 24px;
}

.pricing-card-featured {
  border-color: rgba(249, 115, 22, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.98), rgba(255, 255, 255, 0.94)),
    #fff;
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.08);
}

.pricing-card-featured h3 {
  font-size: 1.3rem;
}

.compact-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.pricing-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--primary-deep);
  font-weight: 800;
}

.compact-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
}

.compact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(15, 141, 131, 0.1);
}

.faq-layout {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  margin-top: 24px;
  align-items: start;
}

.faq-intro {
  padding: 10px 4px 0 0;
}

.faq-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--primary-deep);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 16px 20px;
}

.faq-list summary {
  position: relative;
  padding-right: 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--primary-deep);
  font-size: 1.2rem;
  font-weight: 700;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-answer {
  margin-top: 12px;
  color: var(--text-muted);
}

.section-cta {
  padding-top: 50px;
}

.cta-shell {
  align-items: stretch;
  padding: 32px;
  border-radius: 36px;
  border: 1px solid rgba(23, 24, 27, 0.06);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 236, 0.96));
  box-shadow: var(--shadow-soft);
}

.cta-copy {
  padding-right: 12px;
}

.cta-copy h2 {
  margin-top: 18px;
}

.cta-side {
  display: grid;
  gap: 14px;
}

.cta-primary {
  display: grid;
  gap: 10px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
}

.cta-primary span {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cta-primary strong {
  font-size: 1.36rem;
  line-height: 1.2;
}

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

.support-links a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(23, 24, 27, 0.06);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text-muted);
  font-weight: 700;
}

.site-footer {
  padding: 28px 0 42px;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 24, 27, 0.08);
}

.brand-footer {
  margin-bottom: 12px;
}

.footer-inner p {
  max-width: 640px;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 24, 27, 0.06);
  color: var(--text-muted);
  font-weight: 700;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto auto 1fr auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(23, 24, 27, 0.12);
    background: rgba(255, 255, 255, 0.86);
    font: inherit;
    font-weight: 700;
    color: var(--text);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid rgba(23, 24, 27, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    text-align: left;
  }

  .header-actions .header-link {
    display: none;
  }

  .hero-grid,
  .split-layout,
  .integration-layout,
  .faq-layout,
  .cta-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 920px) {
  .topbar-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-inner {
    grid-template-columns: auto auto 1fr;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-bottom: 14px;
  }

  .brand-copy span {
    white-space: normal;
  }

  .trust-strip,
  .value-grid,
  .pricing-grid,
  .governance-list,
  .support-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .hero-section {
    padding-top: 26px;
  }

  .hero-copy h1,
  .section-heading h2,
  .panel-head h3,
  .process-panel h3,
  .code-card h3,
  .faq-intro h3,
  .cta-copy h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-title {
    max-width: none;
  }

  .platform-card,
  .panel-card,
  .process-panel,
  .code-card,
  .pricing-card,
  .cta-shell,
  .cta-primary {
    padding: 22px;
  }

  .trust-strip,
  .value-grid,
  .pricing-grid,
  .governance-list,
  .support-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1 1 100%;
  }

  .topbar-inner a,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions,
  .topbar-inner {
    align-items: stretch;
  }

  .code-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .code-tab {
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
