/* ============================================
   MuMu 模拟器下载站 - 全站样式
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --color-bg-primary: #0a1628;
  --color-bg-secondary: #0f1f3a;
  --color-bg-card: #142847;
  --color-bg-card-hover: #1a3258;
  --color-border: rgba(56, 130, 246, 0.15);
  --color-border-hover: rgba(56, 130, 246, 0.35);
  --color-brand: #3b82f6;
  --color-brand-light: #60a5fa;
  --color-brand-glow: rgba(59, 130, 246, 0.4);
  --color-accent: #06b6d4;
  --color-accent-warm: #f59e0b;
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0f2847 50%, #0a1628 100%);
  --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --gradient-card: linear-gradient(180deg, rgba(59,130,246,0.08) 0%, rgba(59,130,246,0.02) 100%);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --nav-height: 68px;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- 通用容器 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background .3s;
}
.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.nav-logo .logo-img {
  height: 36px;
  width: auto;
  display: block;
  border-radius: 8px;
}
.nav-logo .logo-text {
  background: linear-gradient(135deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all .2s;
}
.nav-links a:hover { color: var(--color-text-primary); background: rgba(59,130,246,0.1); }
.nav-links a.active { color: var(--color-brand-light); background: rgba(59,130,246,0.12); }
.nav-cta {
  padding: 9px 22px !important;
  background: var(--gradient-brand) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 4px 16px var(--color-brand-glow);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--color-brand-glow); }

/* 移动端汉堡 */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-text-primary); border-radius: 2px; transition: .3s; }

/* ---------- Hero 区域 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: -2;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--color-bg-primary) 0%, transparent 60%, var(--color-bg-primary) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 100px;
  font-size: 13px;
  color: var(--color-brand-light);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  transition: all .25s;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 24px var(--color-brand-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--color-brand-glow); }
.btn-outline {
  border: 1px solid var(--color-border-hover);
  color: var(--color-text-primary);
  background: rgba(255,255,255,0.03);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: var(--color-brand); }

/* ---------- 统计数据条 ---------- */
.stats-bar {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(15, 31, 58, 0.5);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item .stat-label {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ---------- 通用 Section ---------- */
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 100px;
  font-size: 13px;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-desc {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ---------- 特性卡片 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 36px 28px;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all .3s;
}
.feature-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(59,130,246,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; stroke: var(--color-brand-light); fill: none; stroke-width: 2; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.7; }

/* ---------- 展示区（图文左右布局） ---------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.showcase.reverse .showcase-img { order: 2; }
.showcase-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.showcase-img img { width: 100%; display: block; }
.showcase-text h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}
.showcase-text p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.showcase-list { margin-top: 24px; }
.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  color: var(--color-text-secondary);
  font-size: 15px;
}
.showcase-list li svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  stroke: var(--color-success);
  fill: none;
  stroke-width: 2.5;
  margin-top: 2px;
}

/* ---------- 截图画廊 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
  transition: all .3s;
}
.gallery-item:hover { border-color: var(--color-border-hover); transform: scale(1.02); }
.gallery-item img { width: 100%; display: block; }
.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(10,22,40,0.9));
  font-size: 15px;
  font-weight: 600;
}

/* ---------- 下载卡片 ---------- */
.download-section {
  background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.download-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.dl-card {
  padding: 40px 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all .3s;
}
.dl-card:hover { border-color: var(--color-brand); box-shadow: var(--shadow-glow); }
.dl-card.featured {
  border-color: var(--color-brand);
  background: linear-gradient(180deg, rgba(59,130,246,0.1) 0%, var(--color-bg-card) 100%);
}
.dl-card .dl-badge {
  display: inline-block;
  padding: 3px 12px;
  background: var(--gradient-brand);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.dl-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.dl-card .dl-version { font-size: 14px; color: var(--color-text-muted); margin-bottom: 20px; }
.dl-card .dl-size { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 24px; }
.dl-card .btn { width: 100%; justify-content: center; }

/* ---------- FAQ 手风琴 ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}
.faq-sidebar { position: sticky; top: calc(var(--nav-height) + 24px); align-self: start; }
.faq-sidebar h4 {
  font-size: 14px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.faq-cat {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
  transition: all .2s;
}
.faq-cat:hover { background: rgba(59,130,246,0.08); color: var(--color-text-primary); }
.faq-cat.active { background: rgba(59,130,246,0.12); color: var(--color-brand-light); font-weight: 600; }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--color-bg-card);
}
.faq-q {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  transition: background .2s;
}
.faq-q:hover { background: rgba(59,130,246,0.05); }
.faq-q .arrow {
  width: 20px; height: 20px;
  stroke: var(--color-text-muted);
  fill: none;
  stroke-width: 2;
  transition: transform .3s;
  flex-shrink: 0;
}
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* 搜索框 */
.faq-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto 48px;
}
.faq-search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.faq-search input:focus { border-color: var(--color-brand); }
.faq-search input::placeholder { color: var(--color-text-muted); }
.faq-search svg {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  stroke: var(--color-text-muted);
  fill: none;
  stroke-width: 2;
}

/* ---------- 客户端页面特性 ---------- */
.client-hero {
  padding: calc(var(--nav-height) + 80px) 0 60px;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.client-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 100px;
  font-size: 13px;
  color: var(--color-success);
  margin-bottom: 20px;
}

/* 系统要求表格 */
.req-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.req-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-card);
}
.req-table th, .req-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.req-table th {
  background: rgba(59,130,246,0.06);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-brand-light);
}
.req-table td { font-size: 15px; color: var(--color-text-secondary); }
.req-table tr:last-child td { border-bottom: none; }
.req-table td:first-child { color: var(--color-text-primary); font-weight: 500; }

/* 更新日志 */
.changelog { max-width: 760px; margin: 0 auto; }
.changelog-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}
.changelog-item:last-child { border-bottom: none; }
.changelog-date {
  font-size: 14px;
  color: var(--color-text-muted);
  font-family: monospace;
}
.changelog-content h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.changelog-content ul { padding-left: 20px; }
.changelog-content li {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  list-style: disc;
}

/* ---------- CTA 区块 ---------- */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-bottom: 36px;
}

/* ---------- Footer ---------- */
.footer {
  background: #060f1e;
  border-top: 1px solid var(--color-border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--color-text-muted); line-height: 1.7; max-width: 320px; }
.footer-col h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
  padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--color-brand-light); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: var(--shadow-card);
  z-index: 9999;
  opacity: 0;
  transition: all .3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    flex-direction: column;
    background: var(--color-bg-primary);
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links.mobile-open a { padding: 12px 16px; }

  .features-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase.reverse .showcase-img { order: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .download-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-sidebar { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 8px; }
  .faq-cat { white-space: nowrap; width: auto; }
  .changelog-item { grid-template-columns: 1fr; gap: 8px; }
  .section { padding: 60px 0; }
  .hero { min-height: auto; padding: calc(var(--nav-height) + 60px) 0 80px; }
}
