:root {
  --bg: #f5f7f4;
  --paper: #ffffff;
  --ink: #1a2430;
  --muted: #5d6b78;
  --line: #d5dde4;
  --flow: #0f8a6b;
  --flow-2: #1d6fb8;
  --warn: #d97706;
  --shadow: 0 12px 28px rgba(26, 36, 48, 0.08);
  --radius: 14px;
  --font-display: "Trebuchet MS", "Segoe UI Variable", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(90deg, rgba(15, 138, 107, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(15, 138, 107, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--flow), var(--flow-2));
  box-shadow: 0 8px 18px rgba(15, 138, 107, 0.25);
  font-size: 0.78rem;
}

.logo-text span { color: var(--flow); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.05rem;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.active { color: var(--flow); font-weight: 700; }

.lang-switch {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.lang-switch button.active {
  background: #e8f7f2;
  color: var(--flow);
}

.hero {
  padding: 3.2rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.8rem;
  align-items: center;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
}

.tag {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4vw, 3rem);
  line-height: 1.18;
  max-width: 15ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--flow);
}

.hero-lead {
  margin: 0 0 1.3rem;
  color: var(--muted);
  max-width: 40rem;
  font-size: 1.04rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(180deg, #14a07c, var(--flow));
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 138, 107, 0.25);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.trust-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  box-shadow: var(--shadow);
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.85rem;
}

.flow-canvas {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
  position: relative;
}

.flow-canvas img {
  border-radius: 14px;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 0.9rem;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.flow-node {
  position: relative;
  text-align: center;
  padding: 0.65rem 0.35rem;
  border-radius: 10px;
  border: 1.5px solid #b9d9cf;
  background: #f3faf7;
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--flow);
}

.flow-node:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.42rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--flow-2);
  font-size: 0.9rem;
  z-index: 1;
}

.section { padding: 3.3rem 0; }

.section-head {
  margin-bottom: 1.45rem;
  max-width: 46rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  color: var(--flow-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.section-kicker::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--flow);
  border-radius: 3px;
  transform: rotate(45deg);
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.platform-grid,
.feature-grid,
.recommend-grid,
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.compat-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.platform-card,
.feature-card,
.recommend-card,
.scene-card,
.faq-item,
.step-card,
.compat-item,
.hint-box,
.docs-panel,
.download-card,
.flow-panel,
.preview-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.platform-card,
.feature-card,
.recommend-card,
.scene-card,
.faq-item,
.step-card,
.compat-item,
.hint-box,
.docs-panel,
.flow-panel,
.preview-panel {
  padding: 1.15rem 1.2rem;
}

.platform-card h3,
.feature-card h3,
.recommend-card h3,
.scene-card h3,
.faq-item h3,
.step-card h3,
.docs-panel h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.platform-card p,
.feature-card p,
.recommend-card p,
.scene-card p,
.faq-item p,
.step-card p,
.compat-item p,
.hint-box p,
.docs-panel p,
.download-card p {
  margin: 0;
  color: var(--muted);
}

.meta-list {
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.38rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-list li {
  display: flex;
  gap: 0.4rem;
}

.meta-list li::before {
  content: "▸";
  color: var(--flow);
  font-weight: 700;
}

.os-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 28px;
  padding: 0 0.65rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  background: #eaf3fb;
  color: var(--flow-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--flow), var(--flow-2));
}

.feature-index {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e8f7f2;
  color: var(--flow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.flow-list li {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.8rem;
  padding: 0.75rem 0;
}

.flow-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 48px;
  bottom: -2px;
  width: 2px;
  background: linear-gradient(180deg, var(--flow), #b7d9cf);
}

.flow-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--flow);
  color: var(--flow);
  font-family: var(--font-display);
  font-weight: 700;
  z-index: 1;
}

.flow-list h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  font-family: var(--font-display);
}

.flow-list p {
  margin: 0;
  color: var(--muted);
}

.preview-panel img {
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 0.85rem;
}

.code-box {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #182330;
  color: #d6f3ea;
  font-size: 0.84rem;
  overflow-x: auto;
  line-height: 1.55;
}

.ability-row {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.ability-row span {
  display: block;
  background: #fff;
  border: 1px dashed #bfd3c9;
  border-radius: 12px;
  padding: 0.8rem 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.compat-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.compat-dot {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef6ff;
  border: 1px solid #c9dbf0;
  color: var(--flow-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
}

.recommend-card .badge {
  display: inline-flex;
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #e8f7f2;
  color: var(--flow);
  font-size: 0.8rem;
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.step-card {
  position: relative;
}

.step-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.7rem;
  top: 1.4rem;
  color: var(--flow-2);
  font-weight: 700;
  z-index: 2;
}

.step-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--flow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
}

.hint-box {
  border-color: #f0d3a8;
  background: #fff9f0;
}

.hint-box strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--warn);
  font-family: var(--font-display);
}

.scene-card { min-height: 148px; }

.cta-band {
  margin: 0.5rem 0 3rem;
  padding: 2.2rem;
  border-radius: 20px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(15, 138, 107, 0.95), rgba(29, 111, 184, 0.95));
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 138, 107, 0.22);
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.cta-band p {
  margin: 0 auto 1.15rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.92);
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--flow);
  box-shadow: none;
}

.cta-band .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.cta-actions { justify-content: center; margin-bottom: 0; }

.site-footer {
  background: #15202b;
  color: #d5dee7;
  padding: 2.7rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  color: #fff;
}

.site-footer p,
.site-footer li,
.site-footer a { color: #a9b6c4; }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.38rem;
}

.site-footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8b98a8;
  font-size: 0.9rem;
}

.page-hero {
  padding: 2.7rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

.download-list {
  display: grid;
  gap: 0.85rem;
}

.download-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
}

.download-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--flow);
  font-weight: 700;
  font-size: 0.88rem;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flow);
}

.inline-img {
  border-radius: 14px;
  border: 1px solid var(--line);
  margin: 1rem 0;
  box-shadow: var(--shadow);
}

.tutorial-layout { display: grid; gap: 1rem; }

@media (max-width: 980px) {
  .hero-grid,
  .how-grid,
  .download-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .platform-grid,
  .feature-grid,
  .recommend-grid,
  .scene-grid,
  .steps,
  .ability-row,
  .flow-strip {
    grid-template-columns: 1fr 1fr;
  }

  .flow-node:nth-child(2)::after,
  .step-card:nth-child(2)::after { display: none; }

  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .platform-grid,
  .feature-grid,
  .recommend-grid,
  .scene-grid,
  .steps,
  .ability-row,
  .compat-grid,
  .faq-grid,
  .trust-row,
  .flow-strip {
    grid-template-columns: 1fr;
  }

  .flow-node::after,
  .step-card::after { display: none; }

  .cta-band { padding: 1.45rem; }
}
