/* ═══════════════════════════════════════════
   Aurora Store 中文官网 - 全局样式
   ═══════════════════════════════════════════ */

:root {
  --bg: #fafafa;
  --bg-alt: #f4f4f5;
  --text: #18181b;
  --text-muted: #71717a;
  --primary: #7c3aed;
  --primary-light: #c4b5fd;
  --primary-dark: #6d28d9;
  --accent: #06b6d4;
  --border: #e4e4e7;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --nav-height: 68px;
  --max-width: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

/* dark mode */
body.dark {
  --bg: #1a1b2e;
  --bg-alt: #23253d;
  --text: #e8e9f0;
  --text-muted: #9298b0;
  --border: #2f3250;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════ nav ═══════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  height: var(--nav-height);
  transition: background 0.3s;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-right: 28px;
  flex-shrink: 0;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  margin-left: 8vw;
  flex: 1;
}
.nav-links a {
  display: block;
  padding: 8px 18px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(124,58,237,0.08);
}

/* mobile menu */
.menu-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  color: var(--text);
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 1px;
}

/* theme toggle */
.theme-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
  color: var(--text-muted);
  margin-left: auto;
}
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); }

/* ═══════ sections ═══════ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ═══════ hero ␠══════ */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-buttons {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ═══════ buttons ═══════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  font-family: var(--font);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,0.45); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-lg { padding: 16px 36px; font-size: 1.1rem; border-radius: 12px; }

/* ═══════ features grid ═══════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 52px; height: 52px;
  background: rgba(124,58,237,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ═══════ steps ═══════ */
.steps { max-width: 720px; margin: 0 auto; }
.step {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
}
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.step-content h3 { margin-bottom: 6px; font-size: 1.1rem; }
.step-content p { color: var(--text-muted); font-size: 0.95rem; }

/* ═══════ download cards ═══════ */
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.download-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}
.download-card:hover { box-shadow: var(--shadow-md); }
.download-card .dc-icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
}
.download-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.download-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.download-card .btn { width: 100%; justify-content: center; }

/* ═══════ download page: version bar ═══════ */
.dl-version-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 3px 0;
  text-align: center;
}
.dl-ver-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.dl-ver-sep {
  display: inline-block;
  width: 1px; height: 16px;
  background: var(--border);
  margin: 0 20px;
  vertical-align: middle;
}

/* ═══════ download page: cloud box ═══════ */
.dl-cloud-box {
  display: flex;
  align-items: center;
  gap: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}
.dl-cloud-qr {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.dl-cloud-qr svg,
.dl-cloud-qr img {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}
.dl-qr-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.dl-cloud-info { flex: 1; min-width: 0; }
.dl-cloud-info h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.dl-cloud-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.dl-cloud-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.dl-cloud-url {
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-family: "SF Mono", "Consolas", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-copy-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 0.88rem;
}

/* ═══════ download page: install tip ═══════ */
.dl-install-tip {
  padding: 4px 0;
}
.dl-install-tip .btn {
  margin-top: 4px;
}

/* ═══════ download page: responsive ═══════ */
@media (max-width: 768px) {
  .dl-cloud-box {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .dl-cloud-link-row {
    flex-direction: column;
  }
  .dl-cloud-url {
    width: 100%;
    text-align: center;
  }
  .dl-copy-btn {
    width: 100%;
  }
}

/* ═══════ guide page: article cards ═══════ */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.guide-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.hot-card-emoji {
  font-size: 1.7rem;
  line-height: 1;
}
.guide-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.guide-card-img {
  height: 50px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(6,182,212,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-card-num {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.3;
  letter-spacing: -1px;
}
.guide-card-body {
  padding: 10px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.guide-card-body h3 {
  font-size: 0.88rem;
  margin-bottom: 3px;
}
.guide-card-body p {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.6;
  margin-bottom: 8px;
  flex: 1;
}
.guide-card-tags { margin-bottom: 6px; }
.guide-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(124,58,237,0.1);
  color: var(--primary);
  padding: 1px 7px;
  border-radius: 3px;
}
.guide-read-more {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.guide-read-more:hover { color: var(--primary-dark); }
.guide-coming {
  font-size: 0.68rem;
  color: #9ca3af;
  font-style: italic;
}
.guide-card-placeholder {
  opacity: 0.6;
}
.guide-card-placeholder .guide-card-img {
  background: linear-gradient(135deg, rgba(156,163,175,0.08), rgba(156,163,175,0.04));
}
.guide-card-placeholder .guide-card-num {
  color: #9ca3af;
}

/* ═══════ breadcrumbs ═══════ */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: var(--text-muted); }

/* ═══════ page header ═══════ */

/* ═══════ download page: info table ═══════ */
.dl-info-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dl-info-row {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.dl-info-row:last-child { border-bottom: none; }
.dl-info-label {
  width: 140px;
  flex-shrink: 0;
  padding: 12px 18px;
  background: var(--bg-alt);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}
.dl-info-value {
  flex: 1;
  padding: 12px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ═══════ download page: safety notice ═══════ */
.dl-safety {
  padding: 20px 24px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  color: #92400e;
  font-size: 0.9rem;
  line-height: 1.8;
}
body.dark .dl-safety {
  background: #2a2410;
  border-color: #7a5d1a;
  color: #fde68a;
}

/* ═══════ download page: responsive ═══════ */
@media (max-width: 768px) {
  .dl-hero-card {
    flex-direction: column;
    text-align: center;
  }
  .dl-hero-card .btn { width: 100%; justify-content: center; }
  .dl-platform-card {
    flex-wrap: wrap;
  }
  .dl-plat-action {
    width: 100%;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .dl-ver-sep { display: none; }
  .dl-ver-item { display: block; margin: 4px 0; }
  .dl-info-row { flex-direction: column; }
  .dl-info-label { width: 100%; border-bottom: 1px solid var(--border); }
}

/* ═══════ page header ═══════ */
.page-header {
  padding: 8px 0 3px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.page-header h2,
.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1px;
}
.page-header p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 0; }

/* ═══════ footer ═══════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer .footer-links {
  display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap;
}
.footer .footer-links a { color: var(--text-muted); }
.footer .footer-links a:hover { color: var(--primary); }

/* ═══════ misc ═══════ */
code {
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
  border: 1px solid var(--border);
}

/* ═══════ responsive ═══════ */
@media (max-width: 768px) {
  :root { --nav-height: 56px; }

  .nav-inner { padding: 0 12px; }
  .nav-logo { font-size: 1rem; margin-right: 10px; }
  .nav-logo .logo-icon { width: 28px; height: 28px; font-size: 0.9rem; border-radius: 7px; }
  .nav-links a { padding: 4px 8px; font-size: 0.78rem; }
  .nav-links { margin-left: 0; gap: 1px; }
  .menu-toggle { display: none; }

  .hero { padding: 48px 0 36px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; }
  .section { padding: 36px 0; }
  .section-header h2 { font-size: 1.4rem; }
  .section-header p { font-size: 0.9rem; }
  .page-header { padding: 5px 0 1px; }
  .page-header h2,
  .page-header h1 { font-size: 1.4rem; }
  .page-header p { font-size: 0.9rem; }

  .btn { padding: 8px 18px; font-size: 0.85rem; }
  .btn-lg { padding: 10px 22px; font-size: 0.9rem; }

  .step { flex-direction: column; gap: 12px; }
  .dl-ver-sep { display: none; }
  .dl-ver-item { display: block; margin: 3px 0; }
  .dl-info-row { flex-direction: column; }
  .dl-info-label { width: 100%; border-bottom: 1px solid var(--border); }
}
