/* WePoker 微扑克 WPK - Official Download Site */

:root {
  --color-bg: #24131d;
  --color-bg-elevated: #311a27;
  --color-bg-card: #3a212f;
  --color-primary: #24d03b;
  --color-primary-dark: #1a9b2c;
  --color-primary-glow: rgba(36, 208, 59, 0.25);
  --color-accent: #515cd6;
  --color-text: #f1edef;
  --color-text-muted: #b09fa9;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-white: #ffffff;
  --font-sans: "Inter", "Microsoft YaHei", sans-serif;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.25s ease;
  --container: 1120px;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(36, 19, 29, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo:hover { opacity: 0.92; }

.logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.logo-img-badge {
  height: 32px;
  max-width: 96px;
}

.logo-img-sm {
  height: 30px;
  max-width: 112px;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.main-nav a:hover { color: var(--color-text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--color-primary-glow);
}

.btn-outline {
  border-color: var(--color-border);
  color: var(--color-text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

.btn-block { width: 100%; }

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(36, 208, 59, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(81, 92, 214, 0.06), transparent),
    var(--color-bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(36, 208, 59, 0.15);
  border: 1px solid rgba(36, 208, 59, 0.3);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  color: var(--color-primary);
}

.hero-desc {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-download-btns .btn-lg {
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
}

.hero-download-btns .btn-h5:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .hero-download-btns {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-download-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }
}

/* Hero app showcase */
.hero-visual {
  margin: 0;
  display: flex;
  justify-content: center;
}

.hero-app-img {
  display: block;
  width: auto;
  height: 520px;
  max-width: 100%;
  object-fit: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* Features */
.features {
  background: var(--color-bg-elevated);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(36, 208, 59, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* App screenshots showcase */
.showcase {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-elevated);
}

.showcase-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(36, 208, 59, 0.1), transparent),
    radial-gradient(ellipse 60% 45% at 85% 75%, rgba(81, 92, 214, 0.06), transparent);
  pointer-events: none;
}

.showcase-inner {
  position: relative;
  z-index: 1;
}

.section-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  margin-bottom: 1rem;
  background: rgba(36, 208, 59, 0.12);
  border: 1px solid rgba(36, 208, 59, 0.28);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-header::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 1.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  border-radius: 999px;
}

.showcase .section-header {
  margin-bottom: 2.5rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 200px));
  justify-content: center;
  gap: 1.25rem 1.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.screenshot-card {
  position: relative;
  margin: 0;
  width: 100%;
  padding: 0.5rem 0.5rem 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: screenshotFadeIn 0.65s ease backwards;
}

.screenshot-card:nth-child(1) { animation-delay: 0.05s; }
.screenshot-card:nth-child(2) { animation-delay: 0.1s; }
.screenshot-card:nth-child(3) { animation-delay: 0.15s; }
.screenshot-card:nth-child(4) { animation-delay: 0.2s; }
.screenshot-card:nth-child(5) { animation-delay: 0.25s; }
.screenshot-card:nth-child(6) { animation-delay: 0.3s; }
.screenshot-card:nth-child(7) { animation-delay: 0.35s; }
.screenshot-card:nth-child(8) { animation-delay: 0.4s; }

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

.screenshot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(36, 208, 59, 0.35), transparent 50%, rgba(81, 92, 214, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 208, 59, 0.35);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(36, 208, 59, 0.1);
}

.screenshot-card:hover::before {
  opacity: 1;
}

.screenshot-index {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  z-index: 2;
  padding: 0.15rem 0.45rem;
  background: rgba(10, 15, 13, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.screenshot-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
}

.screenshot-card:hover img {
  transform: scale(1.06);
}

.screenshot-card figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.75rem 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-text);
}

.screenshot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary-glow);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.screenshot-card:hover .screenshot-dot {
  transform: scale(1.3);
}

@media (prefers-reduced-motion: reduce) {
  .screenshot-card {
    animation: none;
  }

  .screenshot-card:hover img {
    transform: none;
  }
}

/* Download */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.download-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
}

.download-card:hover {
  border-color: rgba(36, 208, 59, 0.4);
  box-shadow: 0 12px 40px rgba(36, 208, 59, 0.1);
}

.download-card.featured {
  border-color: rgba(36, 208, 59, 0.5);
  background: linear-gradient(180deg, rgba(36, 208, 59, 0.08), var(--color-bg-card));
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 999px;
}

.platform-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-icon.ios {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
}

.platform-icon.android {
  background: rgba(36, 208, 59, 0.15);
  color: var(--color-primary);
}

.platform-icon.h5 {
  background: rgba(81, 92, 214, 0.12);
  color: var(--color-accent);
}

.popular-badge-h5 {
  background: linear-gradient(90deg, #24d03b, #1a9b2c);
  color: #fff;
}

.download-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.download-card > p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.download-meta {
  text-align: left;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
}

.download-meta li {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

.download-notice {
  text-align: center;
  margin-top: 2rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  max-width: 640px;
  margin-inline: auto;
}

/* Guide */
.guide {
  background: var(--color-bg-elevated);
}

.steps {
  max-width: 720px;
  margin: 0 auto;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.steps li:last-child { border-bottom: none; }

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
}

.steps h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.steps p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* FAQ */
.faq {
  background: var(--color-bg-elevated);
}

.faq-header::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 1.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  border-radius: 999px;
}

.faq-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem 2rem;
  background: rgba(36, 208, 59, 0.06);
  border: 1px solid rgba(36, 208, 59, 0.15);
  border-radius: var(--radius-lg);
  max-width: 560px;
  margin-inline: auto;
}

.faq-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.faq-stat-item strong {
  font-size: 1.375rem;
  color: var(--color-primary);
  font-weight: 800;
}

.faq-stat-item span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.faq-categories {
  max-width: 820px;
  margin: 0 auto;
}

.faq-category {
  margin-bottom: 2.5rem;
}

.faq-category:last-of-type {
  margin-bottom: 0;
}

.faq-category-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.faq-category-icon {
  font-size: 1.125rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover {
  border-color: rgba(36, 208, 59, 0.25);
}

.faq-item[open] {
  border-color: rgba(36, 208, 59, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-item summary {
  padding: 1.125rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--transition);
}

.faq-item[open] summary {
  color: var(--color-primary);
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--color-primary);
  background: rgba(36, 208, 59, 0.1);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

.faq-item[open] summary::after {
  content: "−";
  background: rgba(36, 208, 59, 0.2);
}

.faq-item p {
  padding: 0 1.25rem 1.125rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

.faq-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(36, 208, 59, 0.1), rgba(36, 208, 59, 0.03));
  border: 1px solid rgba(36, 208, 59, 0.2);
  border-radius: var(--radius-lg);
  max-width: 820px;
  margin-inline: auto;
}

.faq-cta-text h3 {
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
}

.faq-cta-text p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(36, 208, 59, 0.15), rgba(36, 208, 59, 0.05));
  border-top: 1px solid rgba(36, 208, 59, 0.2);
  border-bottom: 1px solid rgba(36, 208, 59, 0.2);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-inner p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: 0 0 1.5rem;
}

.footer-top {
  background: linear-gradient(135deg, rgba(36, 208, 59, 0.12), rgba(36, 208, 59, 0.04));
  border-bottom: 1px solid rgba(36, 208, 59, 0.15);
  padding: 2rem 0;
  margin-bottom: 2.5rem;
}

.footer-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-top-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.footer-top-text p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
  margin-bottom: 2.5rem;
}

.footer-logo-group {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.logo-img-badge-sm {
  height: 26px;
  max-width: 80px;
}

.footer-desc {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 340px;
}

.footer-contact {
  margin-top: 1.25rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.footer-contact a {
  color: var(--color-primary);
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}

.footer-nav h3,
.site-footer h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-nav ul li,
.site-footer nav ul li {
  margin-bottom: 0.625rem;
}

.footer-nav a,
.site-footer nav a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-nav a:hover,
.site-footer nav a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer-features {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
}

.footer-features-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.footer-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.footer-feature-icon {
  font-size: 1rem;
}

.footer-keywords {
  margin-bottom: 1.5rem;
}

.footer-keywords p {
  color: rgba(143, 168, 154, 0.6);
  font-size: 0.75rem;
  line-height: 1.8;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.footer-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.75rem !important;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual {
    margin-top: 1.5rem;
  }

  .hero-app-img {
    height: 420px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 1.25rem;
    max-width: 480px;
  }

  .screenshot-card img {
    height: 320px;
  }

  .download-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-features-inner {
    gap: 1rem 1.5rem;
  }

  .faq-stats {
    gap: 2rem;
    padding: 1rem 1.5rem;
  }

  .faq-cta {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
}

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

  .logo-img {
    height: 36px;
    max-width: 135px;
  }

  .logo-img-badge {
    height: 28px;
    max-width: 84px;
  }

  .logo-group {
    gap: 0.75rem;
  }

  .showcase .section-header {
    margin-bottom: 1.75rem;
  }

  .screenshot-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    max-width: none;
    margin: 0 -1rem;
    padding: 0 1rem 0.75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(36, 208, 59, 0.4) transparent;
  }

  .screenshot-grid::-webkit-scrollbar {
    height: 4px;
  }

  .screenshot-grid::-webkit-scrollbar-thumb {
    background: rgba(36, 208, 59, 0.4);
    border-radius: 999px;
  }

  .screenshot-card {
    flex: 0 0 160px;
    scroll-snap-align: center;
  }

  .screenshot-card img {
    height: 280px;
  }

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

  .download-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

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

  .footer-top-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-top-text h3 {
    font-size: 1.125rem;
  }

  .footer-desc {
    max-width: none;
  }

  .footer-features-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
  }

  .faq-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .faq-stat-item strong {
    font-size: 1.125rem;
  }

/* === Variant 006 overrides === */
body.layout-stack {
  font-family: "Inter", "Microsoft YaHei", sans-serif;
}
/* Hero: locked to original layout */
.layout-stack .hero-content { order: 1; text-align: left; }
.layout-stack .hero-visual { order: 2; }
.layout-stack .hero-desc { margin-inline: 0; max-width: 540px; }
.layout-stack .hero .btn { border-radius: var(--radius-md); }

.layout-stack .header-inner {
  
}
.layout-stack .feature-grid {
  grid-template-columns: repeat(1, 1fr);
}
.layout-stack .download-grid {
  grid-template-columns: repeat(1, 1fr);
  max-width: 100%;
}
.layout-stack .screenshot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 100%;
}
.layout-stack .feature-card,
.layout-stack .download-card,
.layout-stack .screenshot-card {
  border-radius: 14px;
}
.layout-stack .btn {
  border-radius: 14px;
}

 .layout-stack .showcase { background: var(--color-bg-elevated); }
.layout-stack .site-header {
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
}
.layout-stack .cta-banner {
  background: linear-gradient(135deg, rgba(36, 208, 59, 0.18), var(--color-bg-elevated));
}
