@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  color: #333;
  scroll-behavior: smooth;
}

:root {
  --primary-dark: #0a5b5b;
  --primary: #2ecc71;
  --primary-light: #38e081;
  --light-green: #a3d9a5;
  --light-gray: #f5f5f5;
  --text-dark: #333;
  --text-light: #666;
  --secondary: #3b82f6;
  --accent: #10b981;
  --neutral-100: #f3f4f6;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.testimonial-scroll {
  animation: scroll 20s linear infinite;
}

.testimonial-container:hover .testimonial-scroll {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 导航栏透明度和模糊效果优化 */
header {
  transition: all 0.3s ease, background-color 0.2s ease, backdrop-filter 0.2s ease !important;
  will-change: background-color, backdrop-filter;
}

/* 确保导航栏在滚动时的平滑过渡 */
header.scrolled {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 图片懒加载样式 */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.lazy-load.loaded {
  opacity: 1;
  background: none;
  animation: none;
}

.lazy-load.error {
  opacity: 0.5;
  background: #f5f5f5;
  animation: none;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* 图片容器优化 */
.feature-image-container {
  position: relative;
  overflow: hidden;
}

.feature-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(16, 185, 129, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.feature-image-container:hover::before {
  opacity: 1;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.card-expanded .collapsible-content {
  max-height: 1000px;
}

/* 箭头按钮增强动画 */
.arrow-btn {
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
}

.arrow-btn:hover {
  background-color: rgba(255,255,255,0.1);
  transform: translateX(4px);
}

.arrow-btn .arrow-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.arrow-btn:hover .arrow-icon {
  transform: translateX(6px) scale(1.1);
  color: var(--light-green);
}

.card-expanded .arrow-btn .arrow-icon {
  transform: rotate(90deg);
}

.card-expanded .arrow-btn:hover .arrow-icon {
  transform: rotate(90deg) scale(1.1);
}

/* 箭头按钮点击波纹效果 */
.arrow-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  opacity: 0;
}

.arrow-btn:active::after {
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: all 0.1s ease;
}

.nav-scrolled {
  background-color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 导航链接选中状态 */
nav a {
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary);
}

nav a.active {
  color: var(--primary);
  font-weight: 600;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* 按钮交互增强样式 */
.btn-pulse {
  animation: pulse 2s infinite;
  position: relative;
  overflow: hidden;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

/* 按钮悬停光泽效果 */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.btn-shimmer:hover::before {
  left: 100%;
}

.btn-shimmer:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 按钮点击反馈 */
.btn-click-feedback {
  transition: all 0.1s ease;
}

.btn-click-feedback:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* CTA按钮增强脉冲效果 */
.btn-cta-pulse {
  animation: ctaPulse 3s ease-in-out infinite;
  position: relative;
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(46, 204, 113, 0);
  }
}

.btn-cta-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 2s infinite;
}

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 100px;
    height: 100px;
    opacity: 0;
  }
}

.feature-icon {
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  color: var(--primary-light);
}

.stat-item {
  position: relative;
  overflow: hidden;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  transition: width 1s ease;
}

.stat-item.visible::after {
  width: 100%;
}

.partner-logo {
  max-height: 40px;
  max-width: 120px;
  object-fit: contain;
}

.stat-card {
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
  background-color: #f0fdf4;
}

.card-zoom {
  overflow: hidden;
}

.card-zoom-image {
  transition: transform 0.5s ease;
}

.card-zoom:hover .card-zoom-image {
  transform: scale(1.05);
}

.shadow-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-card-hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.scale-hover {
  transition: transform 0.3s ease;
}

.scale-hover:hover {
  transform: translateY(-5px);
}

/* 产品功能区域样式优化 */
.feature-section {
  background-color: #f0fdf4;
  padding: 4rem 0;
}

.feature-section .section-tag {
  background-color: rgba(46, 204, 113, 0.15);
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.feature-section h2 {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.feature-section .section-desc {
  color: #4b6b6b;
  line-height: 1.7;
  max-width: 3xl;
  margin: 0 auto 3rem;
}

.feature-card h3 {
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card p {
  color: #557a7a;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.feature-card h4 {
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.feature-card .feature-detail {
  color: #4b6b6b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.view-demo-btn {
  background-color: var(--primary-dark);
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
}

.view-demo-btn:hover {
  background-color: #084c4c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.25);
}

.view-demo-btn i {
  transition: transform 0.3s ease;
  margin-left: 0.5rem;
}

.view-demo-btn:hover i {
  transform: translateX(3px);
}

.feature-image-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(10, 91, 91, 0.15);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-image-container img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .feature-image-container {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .feature-image-container {
    height: 250px;
  }
}

/* 功能标题强调样式 */
.feature-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #054a4a;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.feature-title-icon {
  color: #10b981;
  background-color: rgba(16, 185, 129, 0.1);
  padding: 8px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.feature-title:hover .feature-title-icon {
  transform: scale(1.1) rotate(5deg);
}

/* 功能细化点标识 */
.feature-bullet {
  color: #10b981;
  font-weight: bold;
  margin-right: 8px;
  font-size: 1.2em;
}

/* 响应式导航栏样式 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none;
  }
}

/* 移动菜单样式 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100vh;
  background-color: white;
  z-index: 1000;
  padding: 80px 20px;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-links li {
  margin-bottom: 20px;
}

.mobile-nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
  color: var(--primary);
}

/* 汉堡菜单按钮 */
.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* 汉堡菜单动画 */
.mobile-menu-btn.active .hamburger {
  background-color: transparent;
}

.mobile-menu-btn.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-btn.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* 确保页面内容不被导航栏遮挡 */
body {
  padding-top: 70px;
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
}

/* 卡片动画增强 */
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 功能卡片动画 */
.feature-image-container {
  transition: all 0.5s ease;
  border-radius: 12px;
  overflow: hidden;
}

.feature-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 星级图标动画 */
.star-icon {
  transition: all 0.3s ease;
  transform: scale(0);
  opacity: 0;
}

.star-icon.animate {
  transform: scale(1);
  opacity: 1;
  animation: starPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes starPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(-90deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* 评价展示优化 */
.testimonial-item {
  transition: all 0.4s ease;
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.testimonial-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}

.testimonial-text {
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 20px;
}

.testimonial-author {
  align-items: center;
}

.author-avatar {
  transition: transform 0.3s ease;
}

.testimonial-item:hover .author-avatar {
  transform: scale(1.1);
}

/* 统计数字动画增强 */
.stat-number {
  font-weight: 700;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
  transform: scale(1.1);
}

/* 卡片图标动画 */
.card-icon {
  transition: all 0.4s ease;
}

.card-hover:hover .card-icon {
  transform: rotate(10deg) scale(1.1);
}

/* 卡片标题动画 */
.card-title {
  transition: color 0.3s ease;
}

.card-hover:hover .card-title {
  color: var(--light-green);
}

/* 响应式字体大小 - 手机端 */
@media (max-width: 575px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  p {
    font-size: 1rem;
  }
  
  /* 容器和间距优化 */
  .container {
    padding: 0 12px;
  }
  
  .col {
    padding: 0 8px;
  }
  
  /* 按钮适配 */
  .btn-primary, .btn-secondary {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  
  /* 卡片间距 */
  .stat-card {
    margin-bottom: 15px;
    padding: 12px;
  }
  
  .shadow-card {
    margin-bottom: 15px;
  }
}

/* 响应式字体大小 - 平板端 */
@media (min-width: 576px) and (max-width: 991px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  
  /* 容器和间距优化 */
  .container {
    padding: 0 16px;
  }
  
  .col {
    padding: 0 12px;
  }
  
  /* 按钮适配 */
  .btn-primary, .btn-secondary {
    padding: 11px 22px;
    font-size: 0.95rem;
  }
  
  /* 卡片间距 */
  .stat-card {
    padding: 16px;
  }
  
  /* 网格布局调整 */
  .grid.grid-cols-1.md\:grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .grid.grid-cols-1.lg\:grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 响应式布局调整 - 手机端详细优化 */
@media (max-width: 575px) {
  .testimonial-container {
    height: 400px;
  }

  .feature-section .grid {
    gap: 40px;
  }

  /* 导航栏移动端优化 */
  nav .container {
    padding: 0 12px;
  }
  
  nav .flex {
    justify-content: space-between;
  }
  
  /* Hero区域优化 */
  .hero-section {
    padding: 60px 0 40px;
  }
  
  .hero-section h1 {
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .hero-section p {
    margin-bottom: 24px;
  }
  
  /* 统计卡片优化 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  /* 功能卡片优化 */
  .feature-card {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  /* 表单优化 */
  input, textarea, select {
    font-size: 16px; /* 防止iOS缩放 */
  }
  
  /* 模态框优化 */
  .modal-content {
    margin: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* 平板端布局调整 */
@media (min-width: 576px) and (max-width: 991px) {
  .testimonial-container {
    height: 450px;
  }

  .feature-section .grid {
    gap: 60px;
  }
  
  /* Hero区域优化 */
  .hero-section {
    padding: 80px 0 60px;
  }
  
  /* 统计卡片优化 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  /* 功能卡片优化 */
  .feature-card {
    padding: 20px;
  }
  
  /* 导航栏平板优化 */
  nav .container {
    padding: 0 16px;
  }
}

/* 通用平板和手机优化 */
@media (max-width: 991px) {
  /* 隐藏桌面端特定元素 */
  .desktop-only {
    display: none !important;
  }
  
  /* 显示移动端特定元素 */
  .mobile-only {
    display: block !important;
  }
  
  /* 文本对齐优化 */
  .text-center-mobile {
    text-align: center;
  }
  
  /* 间距调整 */
  .section {
    padding: 40px 0;
  }
  
  .mb-mobile {
    margin-bottom: 20px;
  }
}

/* 弹窗样式 */
.modal {
  backdrop-filter: blur(10px);
}

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

/* 弹窗打开时的body样式 */
body.modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
  padding-right: var(--scrollbar-width, 0px) !important; /* 防止页面整体位移 */
}

/* 弹窗打开时固定定位元素的补偿 - 修复导航栏偏移问题 */
body.modal-open header {
  padding-right: var(--scrollbar-width, 0px) !important;
  right: 0 !important; /* 确保导航栏保持在正确位置 */
}

/* 弹窗打开时所有固定定位元素的补偿 */
body.modal-open .fixed,
body.modal-open [class*="fixed"] {
  padding-right: var(--scrollbar-width, 0px) !important;
}

/* 移动端表单和交互优化 */
@media (max-width: 575px) {
  #cta-section form {
    padding: 20px;
  }

  .btn-pulse {
    padding: 12px 20px;
    font-size: 0.9rem;
    min-height: 44px; /* 触摸友好的最小高度 */
  }
  
  /* 触摸优化 */
  button, .btn, a.btn {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
  }
  
  /* 链接间距优化 */
  nav a {
    padding: 12px 8px;
  }
  
  /* 卡片点击区域优化 */
  .card-hover {
    min-height: 44px;
  }
  
  /* 滚动优化 */
  .testimonial-scroll {
    -webkit-overflow-scrolling: touch;
  }
  
  /* 文本选择优化 */
  .no-select-mobile {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
}

/* 平板端表单和交互优化 */
@media (min-width: 576px) and (max-width: 991px) {
  #cta-section form {
    padding: 24px;
  }

  .btn-pulse {
    padding: 14px 24px;
    font-size: 1rem;
    min-height: 48px;
  }
  
  /* 触摸优化 */
  button, .btn, a.btn {
    min-height: 48px;
    min-width: 48px;
  }
  
  /* 导航链接间距 */
  nav a {
    padding: 14px 12px;
  }
}

/* 图片响应式调整 */
img {
  max-width: 100%;
  height: auto;
}

/* 确保内容不会溢出容器 */
.container {
  overflow: hidden;
}

/* 表格响应式处理 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

/* 卡片响应式优化 */
@media (max-width: 575px) {
  .card {
    margin-bottom: 20px;
  }
}

/* 页脚响应式调整 */
@media (max-width: 768px) {
  footer .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  footer .grid {
    grid-template-columns: 1fr;
  }
}