/* 自定义CSS样式 */

/* 主色调变量 */
:root {
  --primary-color: #22c55e;
  --secondary-color: #3b82f6;
  --dark-color: #111827;
  --light-color: #f9fafb;
  --accent-color: #f59e0b;
  --success-color: #10b981;
}

/* 防止移动端水平滚动问题 */
body, html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

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

section, div, footer, header, nav {
  box-sizing: border-box;
  max-width: 100vw;
}

@media (max-width: 767px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .grid {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* 通用过渡效果 */
.transition-all {
  transition: all 0.3s ease;
}

/* 按钮悬停效果增强 */
.hover-scale:hover {
  transform: scale(1.05);
}

/* 服务卡片悬停效果 */
.service-card {
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.service-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-bottom: 2px solid var(--primary-color);
  transform: translateY(-3px);
}

/* 数字标签圆角增强 */
.number-badge {
  position: relative;
  overflow: hidden;
}

/* 页面滚动平滑 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* 导航栏高度 + 一些额外空间 */
}

/* 移动端导航样式优化 */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* 图片悬停效果 */
.img-hover {
  transition: transform 0.3s ease;
  overflow: hidden;
  border-radius: 8px;
}

.img-hover img {
  transition: transform 0.5s ease;
}

.img-hover:hover img {
  transform: scale(1.05);
}

/* 联系按钮动画 */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.pulse-button {
  animation: pulse 2s infinite;
}

/* 文字渐变效果 */
.text-gradient {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* 图标旋转动画 */
.rotate-icon {
  transition: transform 0.3s ease;
}

.rotate-icon:hover {
  transform: rotate(360deg);
}

/* 卡片阴影效果 */
.card-shadow {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.card-shadow:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

/* 底部按钮样式增强 */
.bottom-cta {
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* 新增: 标题动画效果 */
.title-animation {
  position: relative;
}

.title-animation:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.title-animation:hover:after {
  width: 50px;
}

/* 新增: 徽标闪光效果 */
@keyframes shine {
  0% {
    background-position: -100px;
  }
  100% {
    background-position: 200px;
  }
}

.badge-shine {
  position: relative;
  overflow: hidden;
}

.badge-shine:after {
  content: '';
  position: absolute;
  top: 0;
  left: -100px;
  width: 50px;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0) 100%);
  animation: shine 3s infinite;
}

/* 新增: 滚动显示动画增强 */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* 新增: 顶部横幅图片渐变覆盖 */
.banner-overlay {
  position: relative;
}

.banner-overlay:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}

/* 新增: 文字阴影效果 */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 新增: 渐变边框效果 */
.gradient-border {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
}

.gradient-border:before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  z-index: -1;
  border-radius: 0.6rem;
}

/* 新增: 闪烁点亮效果 */
@keyframes blink {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.blinking {
  animation: blink 2s infinite;
}

/* 新增: 按钮动画效果 */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple:after {
  content: "";
  background: rgba(255, 255, 255, 0.3);
  display: block;
  position: absolute;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  opacity: 0;
  transition: all 0.8s;
  transform: scale(0);
}

.btn-ripple:active:after {
  transform: scale(2);
  opacity: 0;
  transition: 0s;
}

/* 新增: 问题列表渐变背景 */
.problem-item-1 {
  background: linear-gradient(90deg, #22c55e, #29d969, #38eb81);
  color: white;
}

.problem-item-2 {
  background: linear-gradient(90deg, #f59e0b, #f7a826, #fbb33c);
  color: white;
}

.problem-item-3 {
  background: linear-gradient(90deg, #3b82f6, #4f92fa, #63a1fd);
  color: white;
}

.problem-item-4 {
  background: linear-gradient(90deg, #a855f7, #b468f8, #c07bf9);
  color: white;
}

.problem-item-5 {
  background: linear-gradient(90deg, #f59e0b, #f7a826, #fbb33c);
  color: white;
}

.problem-item-6 {
  background: linear-gradient(90deg, #64748b, #778599, #8997a8);
  color: white;
}

.problem-item {
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.problem-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.problem-number {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-weight: 600;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo样式 */
.logo-container {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.logo-container img {
  transition: transform 0.3s ease;
}

.logo-container:hover img {
  transform: scale(1.05);
}

/* 导航菜单样式 */
nav {
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0.95);
}

nav.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* 导航链接动画 */
nav a {
  position: relative;
}

nav a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover:after,
nav a.active:after {
  width: 100%;
}

/* 移动菜单样式 */
.mobile-menu {
  overflow-y: auto;
  padding-top: env(safe-area-inset-top);
}

.mobile-menu a {
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  padding-left: 0.5rem;
}

/* 导航链接激活状态 */
nav a.active {
  color: var(--primary-color);
  font-weight: 500;
} 