.video {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  display: block;
  margin: 8px auto 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.feature-section h3 {
  margin: 0 0 8px;
}
.feature-section .desc {
  margin-bottom: 8px;
}
.demo-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}
.demo-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(460px, 1.4fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.demo-text h3 {
  font-size: 18px;
}
.demo-text .desc {
  margin: 0;
}
.demo-media .video {
  margin: 0;
  max-width: 100%;
}
.demo-row:nth-child(even) {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(99, 102, 241, 0.04));
}
.home-blog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.home-cta .btn {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  animation: softPulse 2.4s ease-in-out infinite;
}
.home-cta .btn:nth-child(2) {
  animation-delay: 0.4s;
}
.home-cta .btn:nth-child(3) {
  animation-delay: 0.8s;
}
.home-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
}
.home-products .card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  animation: floatIn 0.6s ease both;
}
.home-products .card:nth-child(1) {
  animation-delay: 0.05s;
}
.home-products .card:nth-child(2) {
  animation-delay: 0.12s;
}
.home-products .card:nth-child(3) {
  animation-delay: 0.19s;
}
.home-products .card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.35);
}
.home-products .card .btn {
  margin-top: 18px;
}
@media (max-width: 900px) {
  .demo-row {
    grid-template-columns: 1fr;
  }
}
.feature-grid {
  margin-top: 16px;
}
.support-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.list a {
  text-decoration: none;
}
.list a:hover {
  text-decoration: underline;
}
.support-list strong {
  color: var(--text);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.support-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.support-card p {
  margin: 8px 0;
  color: var(--muted);
}
.support-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}
* {
  box-sizing: border-box;
}
:root {
  --bg: #0b1220;
  --bg-alt: #0e1526;
  --text: #e6edf7;
  --muted: #b1b8c7;
  --primary: #4f46e5;
  --primary-2: #6366f1;
  --secondary: #0ea5e9;
  --card: #111827;
  --border: #1f2937;
  --green: #10b981;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    "Space Grotesk",
    "Plus Jakarta Sans",
    "IBM Plex Sans",
    "Segoe UI",
    "PingFang SC",
    "Noto Sans SC",
    ui-sans-serif,
    system-ui,
    -apple-system;
  background: radial-gradient(1200px 600px at 20% -10%, #15213c 0%, transparent 60%), radial-gradient(900px 500px at 80% 10%, #0b1c32 0%, transparent 60%), var(--bg);
  color: var(--text);
}
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.brand-link {
  text-decoration: none;
  color: inherit;
}
.brand .logo-img {
  height: 22px;
  width: auto;
  display: inline-block;
}
.brand .name {
  letter-spacing: 0.2px;
}
.top-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.top-nav a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
}
.top-nav a:hover,
.top-nav a.active {
  opacity: 1;
  font-weight: 500;
}

.hero {
  text-align: center;
  padding: 96px 0 72px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin: 0 0 12px;
}
.hero .sub {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 16px;
}
.hero .desc {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--muted);
}
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.home-cta {
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}
.home-cta .btn {
  max-width: 150px;
  min-width: 150px;
  flex: 1 1 150px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.hero-logo {
  height: 120px;
  width: auto;
  margin: 8px auto 0;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.home-hero .container {
  animation: riseIn 0.8s ease both;
}
.home-hero-logo {
  height: clamp(120px, 24vw, 220px);
  margin: 0 auto 18px;
  display: block;
  filter: drop-shadow(0 18px 36px rgba(15, 23, 42, 0.45));
  animation: logoFloat 3.2s ease-in-out infinite;
}
.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 640px) {
  .hero-stack #hero-title {
    order: 1;
  }
  .hero-stack .promo-banner {
    order: 2;
    margin-top: 6px;
  }
  .hero-stack #hero-sub {
    order: 3;
  }
  .hero-stack #hero-desc {
    order: 4;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(99, 102, 241, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.btn-accent {
  background: linear-gradient(90deg, #10b981, #22c55e);
  color: #06271d;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
}
.btn-accent:hover {
  filter: brightness(1.05);
}
.btn-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.btn-secondary {
  background: linear-gradient(90deg, #0ea5e9, #22d3ee);
  color: #06263a;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.35);
}
.btn-secondary:hover {
  filter: brightness(1.05);
}
.btn-outline {
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
}

.cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}
.badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.badges span {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

.section {
  padding: 64px 0;
  /* Use a solid section background to keep text readability consistent */
  background: var(--bg);
}
.section h2 {
  font-size: 22px;
  margin: 0 0 22px;
}
.section .desc {
  color: var(--muted);
}
.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  /* Solid card background avoids alternating body gradients behind text */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.card .btn {
  margin-top: 14px;
}
.card .desc + .desc {
  margin-top: 10px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.download .steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.step ol {
  margin: 6px 0 0 18px;
  color: var(--muted);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
}
.tips {
  margin-top: 14px;
  color: var(--muted);
}

.alert {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  color: #f59e0b;
}

.alert strong {
  color: #d97706;
}

/* Footer keeps a stable background while allowing content to wrap in English layouts. */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 12px 0;
  min-height: 88px;
  max-height: 88px;
  background: var(--bg-alt);
  box-sizing: border-box;
  display: flex;
}
.site-footer .container {
  display: flex;
  align-items: center; /* vertically center content within fixed-height footer */
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 0;
}
.site-footer .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.site-footer .copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4; /* stable line-height for mixed-language text */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto; /* keep content left-aligned */
  word-break: keep-all; /* prefer keeping words intact for latin text */
  text-align: left;
}
.site-footer .copy a {
  color: #7dd3fc; /* lighter cyan for better contrast */
  text-decoration: none;
  margin-left: 8px;
}
.site-footer .copy a:hover {
  text-decoration: underline;
  color: #93c5fd; /* slightly different hover color */
}

/* Responsive: allow footer to grow on narrow screens to avoid overflow */
@media (max-width: 600px) {
  .site-footer {
    height: auto;
    padding: 14px 0;
  }
  .site-footer .container {
    align-items: flex-start;
    min-height: 0;
  }
  .site-footer .copy {
    width: 100%;
    flex: 1 1 100%;
    white-space: normal;
  }
}

a {
  color: #7dd3fc; /* lighter cyan for better contrast */
}

@media (prefers-color-scheme: light) {
  :root {
    --text: #0f172a;
    --muted: #334155;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --card: #ffffff;
    --border: #e2e8f0;
  }
  body {
    background: var(--bg);
  }
  .card {
    background: white;
  }
  .site-header {
    background: rgba(255, 255, 255, 0.7);
  }
}

/* Tutorial page visuals */
.screenshot {
  width: 100%;
  max-width: 640px;
  display: block;
  margin: 6px auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Promo banner: minimal markup with a subtle metallic sheen text effect */
.promo-banner {
  margin-bottom: 16px;
  text-align: center;
}
.promo-link {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;

  color: transparent;
  background: linear-gradient(120deg, #fff47f 0%, /* 基础灰色 */ rgb(255, 203, 72) 40%, /* 灰色延续 */ #898989 50%, /* 强烈的白光 */ #bbbbbb 60%, /* 继续灰色 */ #b0b0b0 100%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: shineFast 1.5s linear infinite;
}
@keyframes shineFast {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

/* Home blog section */
.home-blog {
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.08), rgba(14, 165, 233, 0.05)), var(--bg-alt);
  border-top: 1px solid var(--border);
}
.home-blog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.blog-card-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.blog-card {
  display: block;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
  border-color: rgba(99, 102, 241, 0.6);
}
.blog-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.blog-card .desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

@media (max-width: 640px) {
  .home-blog-head {
    align-items: flex-start;
  }
  .blog-card {
    padding: 14px;
  }
}
