/* huacloudofficial.com — 花云 / HuaCloud — soft pastel floral theme */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  --primary: #d9679f;          /* blush rose — CTAs */
  --primary-dark: #bf4f87;
  --lavender: #a78bfa;         /* secondary accent */
  --lavender-light: #c4b5fd;
  --blush: #f9a8d4;
  --cream: #fffaf9;
  --header-bg: #fffdfc;
  --bg: #fffaf9;
  --surface: #fdf2f8;
  --surface-2: #f5f0ff;
  --dark: #3d2a44;             /* deep plum — headings */
  --text: #40323f;
  --text-muted: #7a6a78;
  --green: #4fb286;
  --border: #f1dfe9;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-card: 0 4px 20px rgba(217,103,159,.10), 0 1px 4px rgba(61,42,68,.06);
  --shadow-lg: 0 16px 44px rgba(167,139,250,.18);
  --transition: 0.2s ease;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.25; color: var(--dark); }

/* ─── SCROLL REVEAL (opacity + transform only — never clip-path) ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { transition: opacity 0.3s ease; transform: none !important; }
  .reveal { opacity: 1; }
  .reveal-stagger > * { opacity: 1; }
}

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(6px);
}
.nav {
  position: relative;
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 var(--space-sm);
  height: 68px; gap: var(--space-sm);
}
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo { height: 34px; width: auto; max-width: 160px; object-fit: contain; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-links > li > a {
  color: var(--text); font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--primary); background: var(--surface); text-decoration: none; }

.nav-right {
  display: flex; align-items: center; gap: var(--space-sm);
  flex-shrink: 0; margin-left: auto;
}
.mobile-lang { display: none; }

/* ─── DROPDOWN / LANGUAGE SWITCHER ─── */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; right: 0;
  margin-top: 0; padding-top: 8px;
  display: none; min-width: 160px; z-index: 1000;
}
.dropdown-panel-inner {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block; padding: 10px 16px;
  color: var(--text); font-size: 14px;
  transition: background var(--transition);
  white-space: nowrap;
}
.dropdown-panel a:hover { background: var(--surface); text-decoration: none; }

.lang-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 7px 14px;
  border-radius: 100px; cursor: pointer;
  font-size: 13px; display: flex; align-items: center; gap: 6px;
  transition: border-color var(--transition);
}
.lang-btn:hover { border-color: var(--lavender-light); }
.lang-btn i { font-size: 11px; color: var(--primary); }

/* ─── CTA BUTTON ─── */
.btn-cta {
  background: linear-gradient(120deg, var(--primary) 0%, var(--lavender) 100%);
  color: #fff;
  padding: 11px 22px; border-radius: 100px;
  font-size: 14px; font-weight: 700;
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap; display: inline-block;
  box-shadow: 0 6px 18px rgba(217,103,159,.28);
}
.btn-cta:hover { filter: brightness(1.06); text-decoration: none; transform: translateY(-2px); }

.btn-lg { padding: 16px 38px; font-size: 17px; }

.btn-outline {
  border: 2px solid var(--primary); color: var(--primary);
  padding: 9px 20px; border-radius: 100px;
  font-size: 14px; font-weight: 700; display: inline-block;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ─── HAMBURGER ─── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--dark); font-size: 22px; padding: 6px;
  order: 99;
}

/* ─── HERO ─── */
.hero {
  background: radial-gradient(ellipse 60% 50% at 20% 20%, rgba(249,168,212,.35), transparent 60%),
              radial-gradient(ellipse 55% 45% at 85% 15%, rgba(196,181,253,.35), transparent 60%),
              linear-gradient(160deg, #fff9fc 0%, #fdf3f9 45%, #f6f1fd 100%);
  color: var(--dark); text-align: center;
  padding: 96px var(--space-sm) var(--space-xl);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-lg);
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(217,103,159,.10); border: 1px solid rgba(217,103,159,.28);
  color: var(--primary-dark); padding: 7px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 700; margin-bottom: var(--space-md); letter-spacing: .2px;
}
.hero h1 { font-size: clamp(28px, 5vw, 50px); font-weight: 800; margin-bottom: var(--space-sm); }
.hero p { font-size: clamp(16px, 2.2vw, 19px); color: var(--text-muted); margin-bottom: var(--space-md); max-width: 620px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; justify-content: center; }
.hero-note { margin-top: var(--space-md); font-size: 14px; color: var(--text-muted); }
.hero-note i { color: var(--green); margin-right: 4px; }
.hero-img { max-width: 640px; width: 100%; margin: 0 auto; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-img img { width: 100%; }

/* ─── STATS ROW ─── */
.stats-row { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--space-lg) var(--space-sm); }
.stats-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); text-align: center; }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: clamp(24px, 4vw, 34px); font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 12px; letter-spacing: .3px; }

/* ─── SECTIONS ─── */
.section-pad { padding: var(--space-xl) var(--space-sm); max-width: 1160px; margin: 0 auto; }
.section-head { max-width: 680px; margin: 0 auto var(--space-lg); text-align: center; }
.section-head h2 { font-size: clamp(24px, 4vw, 38px); margin-bottom: var(--space-sm); }
.section-head p { font-size: 16px; color: var(--text-muted); }

/* ─── FEATURE GRID ─── */
.features { padding: var(--space-xl) var(--space-sm); max-width: 1160px; margin: 0 auto; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-md);
}
.feature-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.feature-card > i {
  width: 50px; height: 50px; border-radius: var(--radius-md);
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: var(--space-sm); color: var(--lavender);
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.7; }

/* ─── SPLIT ROW ─── */
.split-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-lg); align-items: center;
}
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }
.split-img { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; height: 340px; object-fit: cover; }
.split-text h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: var(--space-sm); }
.split-text p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.75; }

/* ─── PRICING ─── */
.pricing { padding: var(--space-xl) var(--space-sm); max-width: 1160px; margin: 0 auto; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}
.pricing-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-lg) var(--space-md) var(--space-md);
  position: relative; transition: box-shadow var(--transition), transform var(--transition);
}
.pricing-card.popular {
  border-color: var(--lavender); border-width: 2px;
  box-shadow: 0 0 0 6px rgba(167,139,250,.10);
}
.pricing-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(120deg, var(--primary), var(--lavender)); color: #fff; padding: 5px 18px;
  border-radius: 100px; font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.pricing-card h3 { font-size: 18px; font-weight: 700; margin-bottom: var(--space-sm); }
.price-amount { font-size: 30px; font-weight: 800; color: var(--dark); line-height: 1; margin-top: 4px; }
.price-period { font-size: 14px; color: var(--text-muted); margin-top: 12px; margin-bottom: var(--space-sm); }
.price-note { font-size: 13px; color: var(--text-muted); margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--border); }
.pricing-features { margin-bottom: var(--space-md); }
.pricing-features li { padding: 7px 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text); }
.pricing-features li::before { content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-cta { width: 100%; padding: 13px; border-radius: 100px; font-size: 15px; font-weight: 700; cursor: pointer; display: block; text-align: center; transition: all var(--transition); background: var(--surface-2); color: var(--primary-dark); border: none; }
.pricing-cta:hover { background: var(--lavender-light); color: #fff; text-decoration: none; }
.pricing-card.popular .pricing-cta { background: linear-gradient(120deg, var(--primary), var(--lavender)); color: #fff; }

/* ─── IMAGE STRIP ─── */
.image-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm);
}
.image-strip-item { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.image-strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.image-strip-item:hover img { transform: scale(1.04); }

/* ─── TRUST / AWARDS ─── */
.trust-banner { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--space-md) var(--space-sm); }
.trust-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-lg); flex-wrap: wrap;
}
.award-item { text-align: center; }
.award-icon { font-size: 26px; color: var(--lavender); margin-bottom: 8px; }
.award-title { font-size: 16px; font-weight: 800; color: var(--dark); }
.award-sub { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.trust-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── FAQ ─── */
.faq { padding: var(--space-xl) var(--space-sm); max-width: 1160px; margin: 0 auto; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: var(--space-sm) 0; font-size: 16px; font-weight: 700;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  color: var(--dark); gap: 12px;
}
.faq-q i { color: var(--primary); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 var(--space-sm); font-size: 15px; color: var(--text-muted); line-height: 1.75; }
.faq-item.open .faq-a { display: block; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,.72);
  padding: var(--space-xl) var(--space-sm) var(--space-md);
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg); margin-bottom: var(--space-xl);
}
.footer-brand .logo-footer { height: 34px; width: auto; margin-bottom: var(--space-sm); filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.75; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--blush); text-decoration: none; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.14); padding-top: var(--space-sm);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; margin: 0; }

/* ─── GUARANTEE BANNER ─── */
.guarantee-banner {
  background: linear-gradient(120deg, var(--primary) 0%, var(--lavender) 100%);
  color: #fff; text-align: center;
  padding: var(--space-lg) var(--space-sm); border-radius: var(--radius-xl);
  margin: var(--space-lg) auto; max-width: 1160px;
}
.guarantee-banner h2 { font-size: clamp(22px, 4vw, 34px); margin-bottom: var(--space-sm); color: #fff; }
.guarantee-banner p { font-size: 16px; color: rgba(255,255,255,.92); margin-bottom: var(--space-md); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: radial-gradient(ellipse 55% 50% at 15% 20%, rgba(249,168,212,.32), transparent 60%),
              radial-gradient(ellipse 50% 45% at 88% 20%, rgba(196,181,253,.32), transparent 60%),
              linear-gradient(160deg, #fff9fc 0%, #f6f1fd 100%);
  color: var(--dark); text-align: center;
  padding: 72px var(--space-sm) var(--space-xl);
}
.page-hero-inner { max-width: 680px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 800; margin-bottom: var(--space-sm); }
.page-hero p { font-size: 18px; color: var(--text-muted); max-width: 620px; margin: 0 auto; }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.contact-methods { margin-top: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); }
.contact-method { display: flex; gap: 14px; align-items: flex-start; }
.contact-method i { color: var(--primary); font-size: 18px; margin-top: 3px; }
.contact-method strong { display: block; color: var(--dark); margin-bottom: 2px; }
.contact-method p { margin: 0; color: var(--text-muted); font-size: 14px; }
.contact-form { display: flex; flex-direction: column; gap: var(--space-sm); background: var(--surface); padding: var(--space-md); border-radius: var(--radius-lg); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--dark); }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 15px; font-family: inherit; background: #fff;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  background: linear-gradient(120deg, var(--primary), var(--lavender)); color: #fff; border: none; cursor: pointer;
  padding: 14px 32px; border-radius: 100px; font-size: 16px; font-weight: 700;
  transition: filter var(--transition);
}
.form-submit:hover { filter: brightness(1.06); }

/* ─── PROSE (privacy/terms) ─── */
.prose { max-width: 800px; margin: 0 auto; font-size: 15px; line-height: 1.85; }
.prose h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.prose h3 { font-size: 17px; margin-top: 28px; }
.prose p { margin-bottom: 16px; color: var(--text-muted); }
.prose ul { margin: 12px 0 16px 24px; list-style: disc; }
.prose ul li { color: var(--text-muted); margin-bottom: 6px; }

/* ─── UTILITY ─── */
.mt-lg { margin-top: var(--space-lg); }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav { padding: 0 8px; }
  .nav-links {
    display: none;
    position: absolute; top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    height: auto; max-height: none;
    overflow: visible;
    background: var(--header-bg);
    box-shadow: 0 8px 16px rgba(61,42,68,.14);
    padding: 12px 0;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links > li > a { display: block; width: 100%; padding: 14px 0; font-size: 17px; }

  .nav-right .lang-switcher { display: none; }
  .nav-right .btn-cta { display: none; }
  .nav-toggle { display: block; }

  .mobile-lang {
    display: flex; justify-content: center; gap: 16px;
    padding: 14px 0; border-top: 1px solid var(--border);
    width: 100%;
  }
  .nav-links li.mobile-lang a {
    display: inline-block; width: auto; padding: 4px 10px;
    font-size: 15px; line-height: 1.4; white-space: nowrap; color: var(--text-muted);
  }
  .nav-links li.mobile-lang a.active { color: var(--primary); font-weight: 700; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .split-row { grid-template-columns: 1fr; }
  .split-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-divider { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .image-strip { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .btn-cta, .hero-cta a, .cta-wrap a {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: max-content;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust-inner { flex-direction: column; gap: var(--space-md); }
}
