/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
    overflow-x: hidden;
}

/* 导航栏样式 */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
    background-color: transparent;
}

/* 导航链接样式 */
#navbar .nav-link {
    transition: color 0.3s ease;
}

#navbar .nav-link:hover {
    color: #93c5fd;
}

#navbar.bg-white\/95 .nav-link:hover {
    color: #2563eb;
}

#navbar.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 移动菜单按钮样式 */
#mobile-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 仅保留弹窗核心样式 */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.qr-modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}
.close-modal {
    margin-top: 15px;
    padding: 8px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.qr-modal.show {
    display: flex;
}
/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* 性能对比图表样式 */
#performanceChart {
    max-height: 400px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .grid-cols-1 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* 表单验证样式 */
input:focus:invalid,
textarea:focus:invalid {
    border-color: #ef4444 !important;
}

input:focus:valid,
textarea:focus:valid {
    border-color: #10b981 !important;
}

/* QR Code Modal */
.qr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.qr-modal.active {
  display: flex;
}

.qr-modal-content {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 300px;
  width: 90%;
}

.qr-modal-content img {
  width: 200px;
  height: auto;
  margin-bottom: 15px;
}

.qr-modal-content h3 {
  margin-bottom: 10px;
  color: #333;
}

.qr-modal-content p {
  color: #666;
  margin-bottom: 20px;
}

.close-modal {
  background: #f0f0f0;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: #e0e0e0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* 服务卡片悬停效果增强 */
.grid-cols-1 .bg-gray-50:hover,
.grid-cols-2 .bg-gray-50:hover,
.grid-cols-3 .bg-gray-50:hover {
    border-color: #3b82f6;
}

/* 按钮悬停效果增强 */
button,
a[href="#contact"].bg-gradient-to-r,
a[href="#services"].bg-gradient-to-r {
    position: relative;
    overflow: hidden;
}

button::after,
a[href="#contact"].bg-gradient-to-r::after,
a[href="#services"].bg-gradient-to-r::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::after,
a[href="#contact"].bg-gradient-to-r:hover::after,
a[href="#services"].bg-gradient-to-r:hover::after {
    width: 300px;
    height: 300px;
}

/* 图片悬停效果 */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* 卡片阴影层次 */
.shadow-lg {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 客户评价卡片渐变边框 */
.grid-cols-3 .bg-white {
    position: relative;
    border: 1px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: 
        linear-gradient(to right, #ffffff, #ffffff),
        linear-gradient(90deg, #3b82f6, #8b5cf6, #10b981);
}

/* 数字计数器动画 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.count-animation {
    animation: countUp 1s ease forwards;
}