/* ============================================================
   逸宝网 - 主样式表
   Project 0013 | Type2 External CSS
   ============================================================ */

/* ----- CSS Variables ----- */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --accent: #F59E0B;
  --dark: #1E293B;
  --gray: #64748B;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

@keyframes slideDown {
  from { opacity: 0; max-height: 0; transform: translateY(-10px); }
  to   { opacity: 1; max-height: 500px; transform: translateY(0); }
}

@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

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

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

/* ----- Scrollbar ----- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F1F5F9; border-radius: 10px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2563EB, #3B82F6);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1D4ED8, #2563EB);
}

/* ----- Smooth Scroll ----- */
html { scroll-behavior: smooth; }

/* ----- Base Body ----- */
body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  color: #1E293B;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ----- Navbar ----- */
#navbar {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
#navbar .nav-link {
  position: relative;
  transition: color var(--transition);
}
#navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
  transform: translateX(-50%);
}
#navbar .nav-link:hover::after { width: 100%; }

/* Mobile Menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open { max-height: 350px; }

/* ----- Hero Section ----- */
.hero-title          { animation: fadeInUp 0.8s ease-out forwards; }
.hero-subtitle       { animation: fadeInUp 0.8s ease-out 0.2s forwards; opacity: 0; }
.hero-buttons        { animation: fadeInUp 0.8s ease-out 0.4s forwards; opacity: 0; }
.hero-image          { animation: float 5s ease-in-out infinite; }

/* ----- Gradient Buttons ----- */
.btn-primary {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(37,99,235,0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.5);
  background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.35);
}

/* ----- Feature Cards ----- */
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  border: 1px solid #E2E8F0;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(37,99,235,0.12);
  border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 20px;
  transition: all var(--transition);
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  transform: scale(1.1);
}

/* ----- Stats Section ----- */
.stat-number {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----- Testimonials ----- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  border: 1px solid #E2E8F0;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.stars { color: var(--accent); letter-spacing: 2px; }

/* ----- FAQ Accordion ----- */
.faq-item {
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  transition: all var(--transition);
}
.faq-item:hover { border-color: #BFDBFE; }
.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 17px;
  user-select: none;
  transition: all var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  color: var(--gray);
  flex-shrink: 0;
}
.faq-item.active .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);
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--gray);
  line-height: 1.7;
}
.faq-item.active .faq-question {
  color: var(--primary);
  background: #F8FAFC;
}

/* ----- CTA Section ----- */
.cta-section {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

/* ----- Back to Top ----- */
#back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,99,235,0.4);
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 999;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37,99,235,0.5);
}

/* ----- Footer ----- */
footer { background: #1E293B; color: #CBD5E1; }
footer a { transition: color var(--transition); }
footer a:hover { color: #fff !important; }

/* ----- Utility Animations ----- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .hero-title    { font-size: 2rem !important; }
  .hero-subtitle { font-size: 1rem !important; }
  .stat-number   { font-size: 36px; }
  .feature-card  { padding: 24px 20px; }
  #back-to-top   { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

@media (max-width: 640px) {
  .btn-primary,
  .btn-outline,
  .btn-outline-dark {
    padding: 12px 24px;
    font-size: 14px;
  }
}
