/* ============================================================
   CloudFlow - 官方网站
   主题：浅色简洁风
   ============================================================ */

/* ----- CSS 变量 ----- */
:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-hover: #eef5ff;
  --primary: #007aff;
  --primary-dark: #0a63d8;
  --text: #111827;
  --text-soft: #5f6b7a;
  --text-muted: #8a94a6;
  --border: rgba(17, 24, 39, 0.08);
  --border-active: rgba(0, 122, 255, 0.25);
  --shadow-sm: 0 1px 2px rgba(20, 64, 120, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 64, 120, 0.1);
  --shadow-lg: 0 16px 44px rgba(20, 64, 120, 0.12);
  --shadow-btn: 0 12px 28px rgba(0, 122, 255, 0.22);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;
  --space-section: 100px;
  --max-width: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- 全局重置 ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 122, 255, 0.1), transparent 32%),
    radial-gradient(circle at 86% 16%, rgba(52, 199, 89, 0.08), transparent 28%),
    linear-gradient(135deg, #f9fbff 0%, #eef4ff 48%, #f7fbff 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 网格纹理 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 70%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----- 导航栏 ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  max-width: var(--max-width);
  margin: 0 auto;
  transition: background 0.3s, box-shadow 0.3s;
  opacity: 0;
  animation: fadeInDown 0.8s var(--ease) forwards;
}

.navbar--scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-icon {
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links > a {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  transition: all 0.25s;
}

.nav-links > a:hover {
  color: var(--primary);
  border-color: var(--border-active);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.nav-download-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.nav-download-btn i { font-size: 1rem; }

/* 移动端菜单 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

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

/* ----- Hero 主视觉 ----- */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 120px 5% 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 4rem;
}

.hero__content {
  flex: 1;
  max-width: 540px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.1s forwards;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 122, 255, 0.08);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.18s forwards;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -2px;
  margin-bottom: 1.3rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.3s forwards;
}

.text-gradient {
  background: linear-gradient(135deg, #101828, #007aff 72%, #34c759);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.5s forwards;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.62s forwards;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.85rem;
  box-shadow: 0 4px 16px rgba(20, 64, 120, 0.04);
}

.feature-pill i { color: var(--primary); }

.download-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.74s forwards;
}

/* ----- 按钮 ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-family: inherit;
  backdrop-filter: blur(14px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: rgba(0, 122, 255, 0.35);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 122, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 8px 20px rgba(20, 64, 120, 0.06);
}

.btn-secondary:hover {
  color: var(--primary);
  border-color: var(--border-active);
  transform: translateY(-3px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--border);
}

/* ----- Mockup 区域 ----- */
.hero__mockup {
  flex-shrink: 0;
  opacity: 0;
  animation: fadeInRight 0.8s var(--ease) 0.8s forwards;
}

.mockup-container {
  position: relative;
  width: 300px;
  height: 500px;
}

.mockup-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.mockup-glow--top {
  width: 240px;
  height: 240px;
  top: -20px;
  right: -50px;
  background: rgba(0, 122, 255, 0.1);
}

.mockup-glow--bottom {
  width: 200px;
  height: 200px;
  bottom: -10px;
  left: -50px;
  background: rgba(52, 199, 89, 0.08);
}

.mockup-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* 图片滑动 */
.image-slider {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  animation: float 6s ease-in-out infinite;
  touch-action: pan-y;
}

.image-slider__track {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.35s var(--ease);
  cursor: grab;
}

.image-slider__track:active {
  cursor: grabbing;
}

.image-slider__slide {
  min-width: 100%;
  height: 100%;
}

.image-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 54px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.6);
  color: rgba(17, 24, 39, 0.6);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.25s;
  z-index: 3;
}

.image-slider__nav:hover {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-50%) scale(1.04);
}

.image-slider__nav--prev { left: -46px; }
.image-slider__nav--next { right: -46px; }
.image-slider__nav i { font-size: 0.8rem; }

.image-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

.image-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(17, 24, 39, 0.18);
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}

.image-slider__dot.active {
  width: 22px;
  background: var(--primary);
}

/* ----- 滚动指示器 ----- */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  z-index: 2;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 1s forwards, bounce 2s ease-in-out 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ----- 功能特性区 ----- */
.features {
  position: relative;
  z-index: 1;
  padding: var(--space-section) 5%;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 122, 255, 0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-soft);
  font-size: 1rem;
}

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

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

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

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 122, 255, 0.08);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature-card__icon i {
  font-size: 1.2rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ----- 常见问题 ----- */
.faq {
  position: relative;
  z-index: 1;
  padding: var(--space-section) 5%;
  max-width: 720px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item[open] {
  border-color: var(--border-active);
  box-shadow: var(--shadow-sm);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
  transition: color 0.2s;
}

.faq-item__question:hover { color: var(--primary); }
.faq-item__question::-webkit-details-marker { display: none; }

.faq-item__question i {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-item[open] .faq-item__question i {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item__answer {
  padding: 0 22px 18px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ----- 页脚 ----- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 50px 5% 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 32px;
}

.footer__brand { max-width: 220px; }

.footer__copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

.footer__links { display: flex; gap: 48px; }

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 2px;
}

.footer__col a {
  color: var(--text-soft);
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.2s;
}

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

/* ----- 动画 ----- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
  100% { transform: translateY(0px); }
}

/* ----- 响应式 ----- */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    min-height: auto;
    gap: 3rem;
  }

  .hero__content { max-width: 100%; }
  .hero__subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .feature-pills, .download-btns { justify-content: center; }

  .mockup-container {
    width: min(75vw, 300px);
    height: 460px;
  }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: column; gap: 32px; }
}

@media (max-width: 640px) {
  :root { --space-section: 60px; }

  .mobile-menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 270px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface-solid);
    border-left: 1px solid var(--border);
    padding: 100px 24px 24px;
    gap: 6px;
    transition: right 0.35s;
    z-index: 100;
  }

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

  .nav-links > a {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .hero {
    padding: 100px 5% 48px;
  }

  .hero__title { font-size: 2.2rem; letter-spacing: -1px; }
  .hero__subtitle { font-size: 0.95rem; padding: 0 8px; }

  .download-btns {
    flex-direction: column;
    padding: 0 8px;
  }

  .btn { width: 100%; }

  .mockup-container {
    width: min(85vw, 280px);
    height: 400px;
  }

  .features-grid { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 1.6rem; }

  .faq-item__question { padding: 16px; font-size: 0.9rem; }
  .faq-item__answer { padding: 0 16px 14px; }

  .footer__links { flex-direction: column; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* 移动端遮罩 */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

/* 滚动动画可见类 */
.feature-card.visible {
  animation: fadeInUp 0.6s var(--ease) forwards;
}