/* ========================================
   MuMu模拟器官方下载站 - 粉色白色主题
   ======================================== */

:root {
  --pink-primary: #FF6B9D;
  --pink-light: #FFB3CC;
  --pink-pale: #FFF0F5;
  --pink-gradient: linear-gradient(135deg, #FF6B9D 0%, #FF8FB3 50%, #FFB3CC 100%);
  --pink-shadow: rgba(255, 107, 157, 0.25);
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-500: #9E9E9E;
  --gray-700: #616161;
  --gray-900: #212121;
  --text-primary: #2D2D2D;
  --text-secondary: #666666;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(255, 107, 157, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--pink-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #E5507F;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--pink-primary);
  color: var(--white);
  border-radius: var(--radius-sm);
}

.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: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--pink-gradient);
  color: var(--white);
  box-shadow: 0 4px 16px var(--pink-shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--pink-shadow);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--pink-primary);
  border-color: var(--pink-primary);
}

.btn-outline:hover {
  background: var(--pink-pale);
  color: var(--pink-primary);
}

.btn-white {
  background: var(--white);
  color: var(--pink-primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--pink-primary);
}

.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 107, 157, 0.1);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo:hover { color: var(--text-primary); }

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-text em {
  font-style: normal;
  color: var(--pink-primary);
}

.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pink-primary);
  transition: width var(--transition);
}

.main-nav a:hover {
  color: var(--pink-primary);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-cta { margin-left: auto; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 179, 204, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 107, 157, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, var(--pink-pale) 0%, var(--white) 100%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 107, 157, 0.1);
  color: var(--pink-primary);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 107, 157, 0.2);
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: var(--pink-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pink-primary);
}

.stat span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 520px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 36px;
  border: 3px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.screen-content {
  padding: 16px;
  height: 100%;
  background: linear-gradient(180deg, #FFF5F8 0%, #FFFFFF 100%);
}

.game-bar {
  height: 8px;
  width: 40%;
  background: var(--pink-light);
  border-radius: 4px;
  margin: 0 auto 24px;
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
}

.game-icon {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.gi-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.gi-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.gi-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.gi-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }

.floating-card {
  position: absolute;
  padding: 10px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}

.fc-1 { top: 60px; right: -40px; animation-delay: 0s; }
.fc-2 { bottom: 120px; left: -50px; animation-delay: 1s; }
.fc-3 { bottom: 40px; right: -30px; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- Sections ---- */
.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--pink-primary);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Features ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--pink-light);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Games ---- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.game-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.game-cover {
  height: 140px;
}

.gc-1 { background: linear-gradient(135deg, #2c3e50, #4ca1af); }
.gc-2 { background: linear-gradient(135deg, #c94b4b, #4b134f); }
.gc-3 { background: linear-gradient(135deg, #56ab2f, #a8e063); }
.gc-4 { background: linear-gradient(135deg, #614385, #516395); }
.gc-5 { background: linear-gradient(135deg, #373B44, #4286f4); }
.gc-6 { background: linear-gradient(135deg, #8E2DE2, #4A00E0); }
.gc-7 { background: linear-gradient(135deg, #f7971e, #ffd200); }
.gc-8 { background: linear-gradient(135deg, #ee9ca7, #ffdde1); }

.game-info {
  padding: 20px;
}

.game-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.game-info p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.game-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--pink-pale);
  color: var(--pink-primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---- Download ---- */
.download {
  background: var(--pink-pale) !important;
}

.download-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.download-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  text-align: center;
  border: 2px solid var(--gray-200);
  transition: all var(--transition);
}

.download-card.featured {
  border-color: var(--pink-primary);
  box-shadow: var(--shadow-lg);
}

.download-card:hover {
  transform: translateY(-4px);
}

.platform-icon {
  color: var(--pink-primary);
  margin-bottom: 16px;
}

.download-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.version {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.sys-req {
  text-align: left;
  margin-bottom: 24px;
}

.sys-req li {
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.sys-req li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--pink-primary);
  font-weight: 700;
}

.download-meta {
  display: block;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.download-notice {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--pink-primary);
}

.download-notice h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.download-notice p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ---- Guide Steps ---- */
.steps-list {
  max-width: 800px;
  margin: 0 auto;
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
}

.step-item:last-child {
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-gradient);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 800;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ---- Compare / Review ---- */
.review-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.review-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--pink-primary);
}

.review-content h3:first-child {
  margin-top: 0;
}

.review-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.compare-table-wrap h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}

.compare-table th {
  background: var(--pink-pale);
  font-weight: 700;
  color: var(--text-primary);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.compare-table tbody tr:hover {
  background: var(--pink-pale);
}

/* ---- Requirements ---- */
.req-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.req-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.req-card.recommended {
  border-color: var(--pink-primary);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.req-card.recommended::before {
  content: '推荐';
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 4px 14px;
  background: var(--pink-gradient);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.req-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.req-card li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
}

.req-card li span:first-child {
  color: var(--text-secondary);
}

.req-card li span:last-child {
  font-weight: 600;
  text-align: right;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--pink-light);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--pink-primary);
  font-weight: 700;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--pink-primary);
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ---- CTA Bottom ---- */
.cta-bottom {
  background: var(--pink-gradient) !important;
  padding: 64px 0;
}

.cta-inner {
  text-align: center;
  color: var(--white);
}

.cta-inner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-inner p {
  font-size: 1.0625rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.footer-grid ul li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.footer-grid a:hover {
  color: var(--pink-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .feature-grid,
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    width: 220px;
    height: 400px;
  }

  .review-article {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    margin-left: auto;
  }

  .main-nav.open {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow-md);
  }

  .main-nav.open ul {
    flex-direction: column;
    gap: 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .feature-grid,
  .games-grid,
  .req-grid {
    grid-template-columns: 1fr;
  }

  .download-cards {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .compare-table {
    font-size: 0.75rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 8px 10px;
  }
}
