/* NimooAI 下载站 - 移动端优先 */
:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --primary-light: #a29bfe;
  --accent: #fd79a8;
  --accent2: #00cec9;
  --bg: #f8f9fc;
  --bg-dark: #1a1a2e;
  --text: #2d3436;
  --text-light: #636e72;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(108, 92, 231, 0.15);
  --radius: 16px;
  --header-h: 60px;
  --float-bar-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(108, 92, 231, 0.1);
  transition: box-shadow 0.3s;
}

.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-link img { width: 36px; height: 36px; border-radius: 10px; }

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  margin: 0 auto;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Nav */
.main-nav { display: none; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.active { display: block; opacity: 1; }

@media (max-width: 767px) {
  .main-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 999;
    padding: calc(var(--header-h) + 20px) 24px 24px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .main-nav.open { right: 0; }

  .main-nav ul { list-style: none; }
  .main-nav li { border-bottom: 1px solid #f0f0f5; }
  .main-nav a {
    display: block;
    padding: 16px 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
  }
  .main-nav a:hover, .main-nav a.active { color: var(--primary); }
}

@media (min-width: 768px) {
  .menu-toggle, .nav-overlay { display: none !important; }

  .main-nav {
    display: block;
    position: static;
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    box-shadow: none;
  }

  .main-nav ul {
    display: flex;
    gap: 8px;
    list-style: none;
  }

  .main-nav a {
    padding: 8px 14px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
  }

  .main-nav a:hover, .main-nav a.active {
    color: var(--primary);
    background: rgba(108, 92, 231, 0.08);
  }
}

/* ===== Hero ===== */
.hero {
  padding: calc(var(--header-h) + 40px) 0 60px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 50%, #6c5ce7 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(253, 121, 168, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-desc {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-features {
  list-style: none;
  margin-bottom: 32px;
}

.hero-features li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
  opacity: 0.88;
}

.hero-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-weight: bold;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-phone {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 260px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 4px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
  .hero { padding: calc(var(--header-h) + 60px) 0 80px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover { color: var(--white); box-shadow: 0 6px 24px rgba(108, 92, 231, 0.5); }

.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.2); color: var(--white); }

.btn-android {
  background: linear-gradient(135deg, #3ddc84, #00a86b);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(61, 220, 132, 0.35);
}

.btn-ios {
  background: linear-gradient(135deg, #007aff, #5856d6);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35);
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ===== SEO intro ===== */
.seo-intro {
  padding: 32px 0;
  background: var(--white);
  border-bottom: 1px solid rgba(108, 92, 231, 0.08);
}

.seo-intro-text {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.85;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.seo-intro-text a {
  font-weight: 500;
}

.page-update {
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

/* ===== Sections ===== */
section { padding: 60px 0; }

.section-title {
  text-align: center;
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 1rem;
}

/* Features */
.features-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(108, 92, 231, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

@media (min-width: 600px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

/* Screenshots */
.screenshots {
  background: linear-gradient(180deg, #f0edff 0%, var(--bg) 100%);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 9/16;
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 600px) {
  .screenshot-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Download section */
.download-section {
  background: var(--white);
}

.download-cards {
  display: grid;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  border: 2px solid #f0f0f5;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.download-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.download-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.download-card-icon.android { background: rgba(61, 220, 132, 0.15); }
.download-card-icon.ios { background: rgba(0, 122, 255, 0.15); }

.download-card-info { flex: 1; }
.download-card-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.download-card-info p { color: var(--text-light); font-size: 0.88rem; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #f0f0f5;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  padding: 0 20px;
  color: var(--text-light);
  font-size: 0.93rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px;
}

/* Related links */
.related-links {
  background: var(--white);
  padding: 40px 0;
}

.related-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: center;
}

.related-links a {
  font-size: 0.9rem;
  padding: 6px 14px;
  background: rgba(108, 92, 231, 0.06);
  border-radius: 8px;
  color: var(--primary);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0 100px;
  font-size: 0.88rem;
}

.footer-disclaimer {
  background: rgba(253, 121, 168, 0.15);
  border: 1px solid rgba(253, 121, 168, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 28px;
  text-align: center;
  color: #ffb8d0;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255, 255, 255, 0.65); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--primary-light); }

.friend-links a { color: rgba(255, 255, 255, 0.75); }

.download-stats {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.download-stats strong { color: var(--accent2); }

.footer-copy {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer { padding-bottom: 40px; }
}

/* ===== Floating download bar ===== */
.float-download-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(108, 92, 231, 0.12);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.float-download-bar.visible { transform: translateY(0); }

.float-download-inner {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.float-download-inner .btn {
  flex: 1;
  padding: 12px 10px;
  font-size: 0.88rem;
  border-radius: 10px;
}

/* ===== Sub-page content ===== */
.page-hero {
  padding: calc(var(--header-h) + 32px) 0 40px;
  background: linear-gradient(135deg, #1a1a2e, #6c5ce7);
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  margin-bottom: 12px;
}

.page-hero p {
  opacity: 0.88;
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.content-article {
  padding: 40px 0 60px;
}

.content-article .container {
  max-width: 800px;
}

.content-article h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.content-article p, .content-article li {
  color: var(--text-light);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.content-article ol, .content-article ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.content-article .tip-box {
  background: rgba(108, 92, 231, 0.06);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.content-article .tip-box p { margin-bottom: 0; }

.inline-download {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a { color: rgba(255, 255, 255, 0.8); }
.breadcrumb a:hover { color: var(--white); }
