/* ===========================
   FLAI 官网样式表
   主色: #08c955
   背景: 纯白简约
   字体: 系统字体栈
   =========================== */

:root {
  --primary: #08c955;
  --primary-dark: #07a847;
  --primary-light: #e8faf0;
  --primary-lighter: #f0fbf5;
  --bg: #ffffff;
  --bg-section: #f8f9fa;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #555566;
  --text-muted: #8a8a9a;
  --border: #e8e8ee;
  --border-hover: #d0d0d8;
  --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 8px 32px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ===========================
   布局
   =========================== */

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

.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

/* ===========================
   Header
   =========================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.site-logo img {
  height: 32px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav .nav-download {
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.site-nav .nav-download:hover {
  background: var(--primary-dark);
  color: #fff;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
}

/* ===========================
   Hero
   =========================== */

.hero {
  padding: 120px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto 48px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero .hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 8px 18px;
  border-radius: 24px;
}

.hero-tag i {
  font-size: 16px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 201, 85, 0.3);
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn i {
  font-size: 20px;
}

.hero-image {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
}

/* ===========================
   Screenshots
   =========================== */

.screenshots-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.screenshots-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) transparent;
}

.screenshots-track::-webkit-scrollbar {
  height: 6px;
}

.screenshots-track::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}

.screenshot-item {
  flex: 0 0 auto;
  width: 260px;
  text-align: center;
  scroll-snap-align: center;
}

.screenshot-item .screenshot-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.screenshot-item .screenshot-img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.screenshot-item .screenshot-img img {
  width: 100%;
  display: block;
}

.screenshot-item .screenshot-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.screenshot-item .screenshot-num {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-right: 4px;
}

.screenshot-nav {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.screenshot-nav:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ===========================
   Features
   =========================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon i {
  font-size: 26px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-card .feature-num {
  position: absolute;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.5;
}

/* ===========================
   Scenes
   =========================== */

.scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.scene-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s;
}

.scene-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.scene-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.scene-icon i {
  font-size: 30px;
  color: var(--primary);
}

.scene-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.scene-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================
   FAQ
   =========================== */

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--primary);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--primary-lighter);
}

.faq-item summary .faq-icon {
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary .faq-icon {
  transform: rotate(180deg);
}

.faq-item .faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================
   Reviews
   =========================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s;
}

.review-card:hover {
  box-shadow: var(--shadow-md);
}

.review-card .review-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.review-card .review-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}

.review-card .review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card .review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.review-card .review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card .review-info {
  flex: 1;
}

.review-card .review-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.review-card .time {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===========================
   CTA
   =========================== */

.cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.cta-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===========================
   Footer
   =========================== */

.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo img {
  height: 28px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-info {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-info a {
  color: var(--text-muted);
}

.footer-info a:hover {
  color: var(--primary);
}

/* ===========================
   Legal pages
   =========================== */

.legal-page {
  padding: 100px 0 60px;
}

.legal-page .container {
  max-width: 800px;
}

.legal-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-page .legal-update {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-page ul {
  padding-left: 20px;
  list-style: disc;
}

.legal-page .legal-back {
  margin-top: 40px;
  display: inline-block;
}

/* ===========================
   404 page
   =========================== */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0;
}

.error-page .error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.error-page p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ===========================
   Animations
   =========================== */

.fade-up {
  opacity: 1;
  transform: none;
}

.fade-up.animated {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.animated.visible {
  opacity: 1;
  transform: none;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero .hero-subtitle {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
  }

  .scenes-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .screenshot-nav {
    display: none;
  }

  .footer-links {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}
