/* ========================================
   HuidouApps - Clean & Colorful
   ======================================== */

:root {
  --primary: #0984e3;
  --primary-light: #74B9FF;
  --secondary: #FF6B6B;
  --accent-1: #00CEC9;
  --accent-2: #FDCB6E;
  --accent-3: #FD79A8;
  --accent-4: #74B9FF;
  --bg: #FAFAFE;
  --bg-card: #FFFFFF;
  --text: #2D3436;
  --text-secondary: #636E72;
  --text-light: #B2BEC3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(9, 132, 227, 0.08);
  --shadow-hover: 0 12px 36px rgba(9, 132, 227, 0.14);
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }
img { max-width: 100%; display: block; }

/* ---- Bubbles (simplified) ---- */
.bg-bubbles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1; overflow: hidden;
}
.bubble {
  position: absolute; border-radius: 50%; opacity: 0.05;
  animation: float 22s infinite ease-in-out;
}
.bubble:nth-child(1) { width: 380px; height: 380px; background: var(--primary); top: -120px; left: -100px; }
.bubble:nth-child(2) { width: 280px; height: 280px; background: var(--secondary); top: 40%; right: -120px; animation-delay: -7s; }
.bubble:nth-child(3) { width: 300px; height: 300px; background: var(--accent-1); bottom: -80px; left: 25%; animation-delay: -14s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -35px) scale(1.04); }
  66% { transform: translate(-15px, 15px) scale(0.96); }
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(9, 132, 227, 0.07);
  padding: 0 2rem;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.35rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.5px;
}
.logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  object-fit: cover;
}
.nav-links { display: flex; list-style: none; gap: 0.25rem; }
.nav-links a {
  padding: 0.45rem 1.1rem; border-radius: 100px;
  font-weight: 600; font-size: 0.9rem; color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}

/* ---- Page Hero ---- */
.page-hero { text-align: center; padding: 4rem 2rem 2.5rem; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.page-hero p {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.75rem 1.8rem; border-radius: 100px;
  font-weight: 700; font-size: 0.95rem; border: none;
  cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; box-shadow: 0 4px 18px rgba(9, 132, 227, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(9, 132, 227, 0.38); color: #fff; }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary-light);
}
.btn-outline:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-accent {
  background: linear-gradient(135deg, var(--secondary), #ff8a80);
  color: #fff; box-shadow: 0 4px 18px rgba(255, 107, 107, 0.28);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255, 107, 107, 0.38); color: #fff; }

/* ---- Cards ---- */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid rgba(9, 132, 227, 0.05);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.section { padding: 4rem 2rem; }
.section-title { text-align: center; font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
.section-subtitle { text-align: center; color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 2.5rem; }

/* ---- Footer ---- */
.site-footer {
  background: linear-gradient(135deg, #2D3436, #3d3d5c);
  color: #dfe6e9; padding: 3rem 2rem 1.5rem; margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto 2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand h3 {
  font-size: 1.4rem; margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent-2), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-brand p { color: #b2bec3; font-size: 0.9rem; }
.footer-links h4 { font-size: 0.95rem; margin-bottom: 0.75rem; color: #fff; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: #b2bec3; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-2); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center; font-size: 0.82rem; color: #636e72;
}

/* ---- Badges ---- */
.badge {
  display: inline-block; padding: 0.25rem 0.8rem;
  border-radius: 100px; font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
}
.badge-purple { background: rgba(9, 132, 227, 0.12); color: var(--primary); }
.badge-red    { background: rgba(255, 107, 107, 0.12); color: var(--secondary); }
.badge-teal   { background: rgba(0, 206, 201, 0.12); color: var(--accent-1); }
.badge-yellow { background: rgba(253, 203, 110, 0.25); color: #e17055; }
.badge-pink   { background: rgba(253, 121, 168, 0.12); color: var(--accent-3); }
.badge-blue   { background: rgba(116, 185, 255, 0.15); color: #0984e3; }

/* ---- Animations ---- */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.25rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(14px);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(9, 132, 227, 0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .nav-links.open a {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
  }
}
@media (max-width: 640px) {
  .site-header { padding: 0 1rem; }
  .container { padding: 0 1rem; }
  .section { padding: 2.5rem 1rem; }
  .page-hero { padding: 2.5rem 1rem 1.5rem; }
}
