:root {
  --bg: #f3f6fb;
  --ink: #142033;
  --muted: #5b6b82;
  --line: #d7e0ee;
  --surface: #ffffff;
  --brand: #3b82f6;
  --brand-2: #22d3ee;
  --violet: #8b5cf6;
  --orange: #f59e0b;
  --green: #10b981;
  --pink: #ec4899;
  --shadow: 0 16px 40px rgba(20, 32, 51, 0.1);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1140px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(59, 130, 246, 0.14), transparent 55%),
    radial-gradient(700px 380px at 92% 0%, rgba(34, 211, 238, 0.12), transparent 50%),
    linear-gradient(180deg, #eef3fa 0%, #f3f6fb 40%, #eef2f8 100%);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 251, 0.86);
  border-bottom: 1px solid rgba(215, 224, 238, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  background: linear-gradient(145deg, #60a5fa, #2563eb 55%, #1d4ed8);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.45),
    0 10px 20px rgba(37, 99, 235, 0.28);
  transform: perspective(200px) rotateX(12deg) rotateY(-12deg);
}

.logo-text span { color: var(--brand); }

.nav-links {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
  background: #e8f1ff;
}

.lang-switch {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.28);
}

.btn-secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.hero {
  padding: 3.3rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  align-items: center;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1d4ed8;
  background: #e8f1ff;
  border: 1px solid #cfe0ff;
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #2563eb, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  box-shadow: var(--shadow);
}

.trust-item strong {
  display: block;
  font-size: 1.05rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.icon-kit {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.kit-board {
  position: relative;
  width: min(100%, 420px);
  min-height: 420px;
  border-radius: 32px;
  background:
    linear-gradient(160deg, #ffffff, #eef4ff);
  border: 1px solid #dbe5f4;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  overflow: hidden;
}

.kit-board::before {
  content: "";
  position: absolute;
  inset: 18% 12% auto;
  height: 180px;
  background: radial-gradient(circle, rgba(59,130,246,0.16), transparent 70%);
  filter: blur(8px);
}

.icon3d {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,0.45),
    0 16px 24px rgba(20, 32, 51, 0.18);
  transform: perspective(400px) rotateX(18deg) rotateY(-18deg);
  animation: floaty 5s ease-in-out infinite;
}

.icon3d span {
  transform: translateZ(20px);
}

.icon3d.i1 { top: 42px; left: 36px; background: linear-gradient(145deg, #60a5fa, #2563eb); }
.icon3d.i2 { top: 48px; right: 42px; background: linear-gradient(145deg, #67e8f9, #0891b2); animation-delay: -1s; }
.icon3d.i3 { top: 150px; left: 48%; transform: translateX(-50%) perspective(400px) rotateX(18deg) rotateY(-18deg); background: linear-gradient(145deg, #c4b5fd, #7c3aed); animation-delay: -1.8s; }
.icon3d.i4 { bottom: 120px; left: 40px; background: linear-gradient(145deg, #fcd34d, #f59e0b); animation-delay: -2.4s; }
.icon3d.i5 { bottom: 118px; right: 40px; background: linear-gradient(145deg, #6ee7b7, #059669); animation-delay: -3s; }
.icon3d.i6 { bottom: 36px; left: 50%; transform: translateX(-50%) perspective(400px) rotateX(18deg) rotateY(-18deg); background: linear-gradient(145deg, #f9a8d4, #db2777); animation-delay: -3.6s; width: 86px; height: 86px; }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.kit-board img {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 58%;
  height: 140px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #d7e0ee;
  box-shadow: 0 12px 24px rgba(20, 32, 51, 0.12);
  z-index: 2;
}

.kit-label {
  position: absolute;
  left: 1.2rem;
  top: 1rem;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 800;
}

.section { padding: 3.2rem 0; }

.section-head { margin-bottom: 1.4rem; }

.section-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.platform-card,
.feature-card,
.recommend-card,
.scene-card,
.faq-item,
.step-card,
.compat-item,
.download-card,
.docs-panel,
.flow-panel,
.preview-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.platform-grid,
.feature-grid,
.recommend-grid,
.scene-grid,
.faq-grid,
.compat-grid {
  display: grid;
  gap: 1rem;
}

.platform-grid,
.feature-grid,
.recommend-grid,
.scene-grid,
.compat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.platform-card,
.feature-card,
.recommend-card,
.scene-card,
.faq-item,
.step-card,
.compat-item,
.docs-panel { padding: 1.15rem 1.2rem; }

.icon-chip {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.4),
    0 10px 16px rgba(20, 32, 51, 0.12);
  transform: perspective(240px) rotateX(14deg) rotateY(-14deg);
}

.icon-chip.blue { background: linear-gradient(145deg, #60a5fa, #2563eb); }
.icon-chip.cyan { background: linear-gradient(145deg, #67e8f9, #0891b2); }
.icon-chip.violet { background: linear-gradient(145deg, #c4b5fd, #7c3aed); }
.icon-chip.orange { background: linear-gradient(145deg, #fcd34d, #f59e0b); }
.icon-chip.green { background: linear-gradient(145deg, #6ee7b7, #059669); }
.icon-chip.pink { background: linear-gradient(145deg, #f9a8d4, #db2777); }

.os-badge,
.badge,
.status,
.step-label,
.feature-index,
.compat-dot {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.os-badge,
.badge,
.step-label,
.feature-index {
  color: #1d4ed8;
  background: #e8f1ff;
}

.status {
  color: #065f46;
  background: #d1fae5;
}

.compat-dot {
  color: #5b21b6;
  background: #ede9fe;
  margin-bottom: 0.7rem;
}

.platform-card h3,
.feature-card h3,
.recommend-card h3,
.scene-card h3,
.faq-item h3,
.step-card h3,
.compat-item h3,
.docs-panel h3,
.download-card h3 {
  margin: 0.7rem 0 0.45rem;
  font-size: 1.08rem;
}

.meta-list {
  display: grid;
  gap: 0.35rem;
  margin: 0.7rem 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-list li {
  padding-left: 0.9rem;
  position: relative;
}

.meta-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
}

.feature-card p,
.scene-card p,
.faq-item p,
.step-card p,
.compat-item p,
.docs-panel p,
.download-card p {
  margin: 0;
  color: var(--muted);
}

.inline-img {
  margin-top: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.flow-panel,
.preview-panel { padding: 1.2rem; }

.flow-list { display: grid; gap: 0.9rem; }

.flow-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
}

.flow-num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.35);
}

.flow-list h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.flow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.preview-panel img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
}

.code-box {
  margin: 0;
  padding: 1rem;
  border-radius: 14px;
  background: #0f172a;
  color: #dbeafe;
  font-size: 0.84rem;
  overflow: auto;
  line-height: 1.5;
}

.ability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.ability-row span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  box-shadow: var(--shadow);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hint-box {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.hint-box strong { display: block; margin-bottom: 0.35rem; }
.hint-box p { margin: 0; }

.page-hero { padding: 2.6rem 0 1rem; }

.page-hero h1 {
  margin: 0.35rem 0 0.7rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.download-list { display: grid; gap: 1rem; }

.download-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
}

.cta-band {
  margin: 1rem 0 3rem;
  padding: 2.1rem;
  border-radius: 28px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4 55%, #8b5cf6);
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.25);
}

.cta-band h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.cta-band p {
  margin: 0 0 1.1rem;
  opacity: 0.92;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.cta-band .btn-primary {
  background: #fff;
  color: #1d4ed8;
  box-shadow: none;
}

.cta-band .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
}

.site-footer {
  padding: 2.5rem 0 1.5rem;
  background: #0f172a;
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 1.2rem;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 0.7rem;
  color: #fff;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer ul { display: grid; gap: 0.4rem; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.tutorial-layout { display: grid; gap: 1rem; }

@media (max-width: 980px) {
  .hero-grid,
  .how-grid,
  .download-card { grid-template-columns: 1fr; }
  .platform-grid,
  .feature-grid,
  .recommend-grid,
  .scene-grid,
  .compat-grid,
  .steps,
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .icon-kit { min-height: auto; }
}

@media (max-width: 640px) {
  .trust-row,
  .platform-grid,
  .feature-grid,
  .recommend-grid,
  .scene-grid,
  .compat-grid,
  .faq-grid,
  .steps,
  .footer-grid { grid-template-columns: 1fr; }
  .kit-board { min-height: 360px; }
  .icon3d { width: 64px; height: 64px; border-radius: 18px; font-size: 0.68rem; }
}
