/* ==========================================================================
   Candytally 糖果云 (candycloud.homes) - 官方正版纯净紫罗兰 SaaS 风格
   ========================================================================== */
:root {
  --bg-main: #ffffff;
  --bg-subtle: #f8f9fb;
  --bg-card: #f9f9fb;
  --bg-card-hover: #ffffff;
  --primary: #635f91;
  --primary-hover: #4e4a77;
  --accent: #5faee3;
  --text-title: #222222;
  --text-body: #4a5568;
  --text-muted: #718096;
  --border: #e2e8f0;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 32px rgba(99, 95, 145, 0.12);
  --radius-pill: 50px;
  --radius-box: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: all 0.25s ease; }
a:hover { color: var(--accent); }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; color: var(--text-title); text-decoration: none; }
.brand-link img { width: 40px; height: 40px; min-width: 40px; border-radius: 8px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links li { list-style: none; }
.nav-links a { color: var(--text-title); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Buttons */
.btn-pill {
  display: inline-block;
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-pill:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(99, 95, 145, 0.25);
}
.btn-solid {
  display: inline-block;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-solid:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(99, 95, 145, 0.32);
}

/* Hero Section */
.hero-section {
  padding: 90px 0 70px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-subtle) 100%);
  text-align: center;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  background: rgba(99, 95, 145, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.hero-h1 {
  font-size: 46px;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.35;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}
.theme-accent { color: var(--primary); }
.hero-desc {
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
}
.hero-cta { display: flex; justify-content: center; gap: 18px; margin-bottom: 50px; }

/* Metrics bar */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 50px auto 0;
  padding: 28px 24px;
  background: #ffffff;
  border-radius: var(--radius-box);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.metric-item strong { display: block; font-size: 28px; line-height: 1.2; color: var(--primary); font-weight: 700; margin-bottom: 6px; }
.metric-item span { font-size: 13px; color: var(--text-muted); }

/* Section titles with flanking lines */
.section { padding: 90px 0; }
.section-subtle { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-title);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.section-title h2::before, .section-title h2::after {
  content: '';
  width: 45px;
  height: 2px;
  background: var(--primary);
  display: inline-block;
}
.section-title p { color: var(--text-muted); margin-top: 10px; font-size: 15px; }

/* Feature Cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-box);
  padding: 36px 28px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 56px; height: 56px;
  background: rgba(99, 95, 145, 0.1);
  color: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
}
.feature-card h3 { font-size: 19px; color: var(--text-title); margin-bottom: 12px; font-weight: 600; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* Pricing Grid */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pricing-box {
  background: var(--bg-card);
  border: 2px solid var(--bg-card);
  border-radius: var(--radius-box);
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}
.pricing-box:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.pricing-box.featured {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.ribbon {
  position: absolute; top: 14px; right: 14px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: var(--radius-pill);
}
.pricing-box h3 { font-size: 19px; font-weight: 600; color: var(--text-title); margin-bottom: 16px; }
.pricing-val { font-size: 44px; font-weight: 700; color: var(--primary); margin: 20px 0; }
.pricing-val small { font-size: 15px; color: var(--text-muted); font-weight: 400; }
.pricing-feats { list-style: none; margin: 26px 0; padding: 0; text-align: left; font-size: 14px; }
.pricing-feats li { padding: 10px 0; border-bottom: 1px dashed var(--border); color: var(--text-body); list-style: none; }
.pricing-feats li::before { content: '✔ '; color: var(--primary); font-weight: bold; margin-right: 8px; }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-box);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testi-quote { font-style: italic; color: var(--text-body); margin-bottom: 18px; font-size: 14px; line-height: 1.7; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 17px; }
.testi-info h4 { font-size: 15px; color: var(--text-title); margin: 0; }
.testi-info span { font-size: 12px; color: var(--text-muted); }

/* FAQ */
.faq-grid { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.faq-item { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-box); padding: 24px 28px; box-shadow: var(--shadow-sm); }
.faq-item h4 { font-size: 17px; color: var(--text-title); margin-bottom: 10px; font-weight: 600; }
.faq-item p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* Footer */
.footer { background: #1c1a24; color: #a0aec0; padding: 70px 0 35px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 45px; }
.footer h4 { color: #ffffff; font-size: 16px; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 10px; list-style: none; }
.footer ul li a { color: #a0aec0; text-decoration: none; }
.footer ul li a:hover { color: #ffffff; }
.footer-bot { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 28px; text-align: center; font-size: 13px; }

@media (max-width: 868px) {
  .nav-links { display: none; }
  .hero-h1 { font-size: 32px; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature-grid, .pricing-grid, .testi-grid, .footer-top { grid-template-columns: 1fr; }
}
