/* ============================================
   MuMu模拟器 — 绿红官网风格 · 新颖排版
   ============================================ */

:root {
  --green-50: #e8f9ef;
  --green-400: #00e676;
  --green-500: #00c853;
  --green-600: #00a844;
  --green-700: #008c38;
  --green-glow: rgba(0, 200, 83, 0.35);

  --red-400: #ff5252;
  --red-500: #e53935;
  --red-600: #c62828;
  --red-glow: rgba(229, 57, 53, 0.35);

  --dark-900: #060f0a;
  --dark-800: #0a1a0f;
  --dark-700: #122418;
  --dark-600: #1a3020;
  --dark-500: #243828;

  --text-primary: #f0faf2;
  --text-secondary: #a8c4b0;
  --text-muted: #6b8f75;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-green: 0 8px 32px var(--green-glow);
  --shadow-red: 0 8px 32px var(--red-glow);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--dark-900);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--green-400);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--green-500); }

img, svg { display: block; max-width: 100%; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--green-500);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus { top: 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-500), var(--red-600));
  color: #fff;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-400), var(--red-500));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--red-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--green-500);
}

.btn-outline:hover {
  background: rgba(0, 200, 83, 0.12);
  color: var(--green-400);
  border-color: var(--green-400);
}

.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-xl { padding: 18px 48px; font-size: 18px; }
.btn-block { width: 100%; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 15, 10, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 200, 83, 0.1);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand:hover { color: var(--text-primary); }

.brand-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-accent { color: var(--green-400); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-500);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after { width: 100%; }

.btn-download-nav {
  padding: 8px 22px;
  font-size: 13px;
  background: var(--red-500);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  flex-shrink: 0;
}

.btn-download-nav:hover {
  background: var(--red-400);
  color: #fff;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-split-green {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 140%;
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 200, 83, 0.18) 0%, transparent 70%);
  transform: rotate(-8deg);
}

.hero-split-red {
  position: absolute;
  bottom: -30%;
  right: -15%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at 70% 60%, rgba(229, 57, 53, 0.14) 0%, transparent 70%);
  transform: rotate(12deg);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 83, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 83, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 300px;
  height: 300px;
  background: var(--green-500);
  opacity: 0.15;
  top: 10%;
  left: 5%;
}

.hero-orb-2 {
  width: 250px;
  height: 250px;
  background: var(--red-500);
  opacity: 0.12;
  bottom: 15%;
  right: 10%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 200, 83, 0.12);
  border: 1px solid rgba(0, 200, 83, 0.25);
  border-radius: 50px;
  font-size: 13px;
  color: var(--green-400);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green-500);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-highlight {
  font-style: normal;
  background: linear-gradient(135deg, var(--green-400), var(--green-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item dt {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.stat-item dd {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-400);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.phone-mockup {
  position: relative;
  width: 260px;
  height: 520px;
  background: linear-gradient(160deg, var(--dark-600), var(--dark-800));
  border-radius: 36px;
  border: 3px solid rgba(0, 200, 83, 0.3);
  padding: 12px;
  box-shadow: var(--shadow-green), inset 0 0 60px rgba(0, 200, 83, 0.05);
  transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
  transition: transform var(--transition);
}

.phone-mockup:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--dark-700);
  border-radius: 26px;
  overflow: hidden;
  padding: 16px;
}

.screen-bar {
  height: 28px;
  background: rgba(0, 200, 83, 0.15);
  border-radius: 14px;
  margin-bottom: 16px;
}

.screen-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.screen-apps span {
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.2), rgba(229, 57, 53, 0.15));
  animation: shimmer 3s ease infinite;
}

.screen-apps span:nth-child(odd) { animation-delay: -1s; }
.screen-apps span:nth-child(3n) { animation-delay: -2s; }

@keyframes shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.phone-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50px;
  background: radial-gradient(circle, var(--green-glow), transparent 70%);
  z-index: -1;
}

.floating-chip {
  position: absolute;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  animation: float 6s ease-in-out infinite;
}

.chip-green {
  top: 15%;
  right: 5%;
  background: rgba(0, 200, 83, 0.2);
  border: 1px solid var(--green-500);
  color: var(--green-400);
}

.chip-red {
  bottom: 20%;
  left: 0;
  background: rgba(229, 57, 53, 0.2);
  border: 1px solid var(--red-500);
  color: var(--red-400);
  animation-delay: -3s;
}

/* ── Sections ── */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 32px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header.light .section-title,
.section-header.light .section-lead { color: var(--text-primary); }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--green-500);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-lead {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Bento Grid ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-card {
  background: var(--dark-700);
  border: 1px solid rgba(0, 200, 83, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.bento-card:hover {
  border-color: rgba(0, 200, 83, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-green);
}

.bento-card:hover::before { opacity: 1; }

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.bento-wide { grid-column: span 2; }

.bento-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 22px;
  margin-bottom: 16px;
}

.bento-icon.green { background: rgba(0, 200, 83, 0.15); }
.bento-icon.red { background: rgba(229, 57, 53, 0.15); }

.bento-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-metric {
  margin-top: auto;
  padding-top: 24px;
}

.metric-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--green-400);
  line-height: 1;
}

.metric-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.resolution-bar {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.resolution-bar span {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 200, 83, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(0, 200, 83, 0.1);
}

.resolution-bar span.active {
  background: rgba(0, 200, 83, 0.2);
  color: var(--green-400);
  border-color: var(--green-500);
}

/* ── Download Section ── */
.download-section {
  position: relative;
  max-width: 100%;
  padding: 100px 0;
  overflow: hidden;
}

.download-diagonal {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark-800) 0%, var(--dark-700) 50%, var(--dark-800) 100%);
  transform: skewY(-3deg) scale(1.1);
  z-index: 0;
}

.download-section .section-header,
.download-section .version-deck {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

.version-deck {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.version-card {
  background: rgba(18, 36, 24, 0.8);
  border: 1px solid rgba(0, 200, 83, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.version-card:hover {
  border-color: rgba(0, 200, 83, 0.25);
  transform: translateY(-6px);
}

.version-featured {
  border-color: var(--red-500);
  background: linear-gradient(160deg, rgba(229, 57, 53, 0.08), rgba(18, 36, 24, 0.9));
  box-shadow: var(--shadow-red);
  position: relative;
}

.version-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: var(--red-500);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.version-os {
  color: var(--green-400);
  margin-bottom: 4px;
}

.version-os.mac { color: var(--text-secondary); }
.version-os.android { color: var(--green-500); }
.version-os.ios { color: var(--text-secondary); }

.version-card h3 {
  font-size: 20px;
  font-weight: 700;
}

.version-card p {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}

.version-tags {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}

.version-tags li {
  padding: 4px 10px;
  background: rgba(0, 200, 83, 0.1);
  border-radius: 50px;
  font-size: 11px;
  color: var(--green-400);
  font-weight: 600;
}

.version-card .btn { margin-top: auto; }

/* ── Games Marquee ── */
.games-section { padding-bottom: 60px; }

.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  margin-bottom: 24px;
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.game-pill {
  flex-shrink: 0;
  padding: 12px 28px;
  background: var(--dark-700);
  border: 1px solid rgba(0, 200, 83, 0.12);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}

.game-pill:hover {
  border-color: var(--green-500);
  color: var(--green-400);
  background: rgba(0, 200, 83, 0.08);
}

.games-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Steps Timeline ── */
.steps-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.steps-info .section-header {
  text-align: left;
  margin-bottom: 0;
}

.steps-info .section-lead { margin: 0; }

.steps-timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.steps-timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--green-500), var(--red-500));
}

.step-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  position: relative;
}

.step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-700);
  border: 2px solid var(--green-500);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  color: var(--green-400);
  z-index: 1;
}

.step-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── FAQ ── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--dark-700);
  border: 1px solid rgba(0, 200, 83, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: rgba(0, 200, 83, 0.2);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--green-400);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--red-400);
}

.faq-item p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--green-700), var(--dark-800) 40%, var(--red-600));
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none' stroke='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
}

/* ── Footer ── */
.site-footer {
  background: var(--dark-900);
  border-top: 1px solid rgba(0, 200, 83, 0.08);
  padding: 64px 32px 32px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 280px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 200, 83, 0.06);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }

  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { max-width: 480px; margin: 0 auto; }
  .hero-visual { min-height: 320px; }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-large { grid-column: span 2; grid-row: span 1; min-height: auto; }
  .bento-wide { grid-column: span 2; }

  .version-deck {
    grid-template-columns: repeat(2, 1fr);
  }

  .version-featured { grid-column: span 2; }

  .steps-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }

  .nav-inner { padding: 0 20px; }

  .hero { padding: 100px 20px 60px; }
  .section { padding: 72px 20px; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-wide { grid-column: span 1; }

  .version-deck { grid-template-columns: 1fr; }
  .version-featured { grid-column: span 1; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track { animation: none; }
}
