/* 隐藏滚动条 - 全局样式 */
/* Chrome, Safari 和 Opera */
html::-webkit-scrollbar {
    display: none;
}

/* Firefox */
html {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
    scroll-behavior: smooth;
}

.frosted {
    background: rgba(255, 255, 255, 0.7); /* 半透明背景 */
    backdrop-filter: blur(24px);          /* 模糊效果 */
    -webkit-backdrop-filter: blur(24px);  /* Safari 支持 */
    color: #333;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Animation for elements that come into view */
.section-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

/* When element is in view, add this class via JS */
.common-show {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects for cards and buttons */
.card-hover {
    transition: all 0.3s ease;
}

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

.btn-hover {
    transition: all 0.3s ease;
}

.btn-hover:hover {
    transform: translateY(-2px);
}

/* Testimonials styling */
.testimonial-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.testimonial-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* FAQ items hover effect */
.faq-item {
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #e2e8f0;
    transform: translateY(-2px);
}

/* Partners hover effect */
.partner-logo {
    transition: all 0.3s ease;
}

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

/* Stats section styling */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.05);
}

/* CTA section enhancements */
.cta-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::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;
}

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

/* Animated background for stats section */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-animation {
    animation: float 5s ease-in-out infinite;
}

.floating-animation:nth-child(2) { animation-delay: 1s; }
.floating-animation:nth-child(3) { animation-delay: 2s; }
.floating-animation:nth-child(4) { animation-delay: 3s; }

/* Loading animation for images */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* 加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* 阴影优化 */
.shadow-soft {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 轮播图基础样式 */
.demo-carousel-wrapper {
    position: relative;
    width: 100%;
}

.demo-carousel-item {
    width: 100%;
}

.demo-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 通用样式 */
video {
    max-width: 100%;
    /* height: auto; */
}

/* 移除固定宽度的限制 */
.max-w-8xl {
    max-width: 100% !important;
    padding: 0 1rem;
}

/* 修复可能的溢出问题 */
body, footer {
    overflow-x: hidden;
}

/* 调整间距 */
.mt-20 { margin-top: 3rem !important; }
.mb-16 { margin-bottom: 2rem !important; }

/* 触摸反馈优化 */
button, input, a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 移动端菜单样式 - 汉堡菜单 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
}

/* 响应式布局 - 移动设备优先 */

/* 移动设备 (max-width: 768px) */
@media (max-width: 768px) {
    /* 基础样式调整 */
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.5rem !important; }
    p { font-size: 0.9rem !important; }
    
    /* 头部导航适配 */
    header { padding: 0 1rem !important; }
    nav { display: none !important; }
    .mobile-menu-btn { display: block; }
    
    /* 英雄区域适配 */
    section.py-16 { padding: 8rem 1rem !important; }
    section.px-48 { padding-left: 1rem !important; padding-right: 1rem !important; }
    
    /* 按钮适配 */
    .w-40, .min-w-\[160px\] {
        width: 100% !important;
        max-width: 200px;
    }
    
    
    /* 轮播控制按钮在小屏幕上的调整 */
    .demo-carousel-prev, .demo-carousel-next {
        width: 20px !important;
        height: 20px !important;
    }
    .demo-carousel-prev svg, .demo-carousel-next svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    /* 功能介绍区块适配 */
    .flex.flex-row {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    /* 宽度调整 */
    .w-1\/2, .w-\[30\%\], .w-3\/5 { width: 100% !important; }
    .w-\[30\%\] { max-width: none !important; }
    
    /* 网格布局调整 */
    .grid.grid-cols-4, .grid.grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Footer响应式样式 */
    footer .max-w-\[50vw\] { max-width: 100% !important; }
    footer h2.text-\[100px\] { font-size: 5rem !important; }
    footer h2 { font-size: 2.5rem !important; }
    
    /* Footer布局调整 */
    footer .flex.flex-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }
    
    /* Footer间距和内边距调整 */
    footer .px-8 { padding-left: 1rem !important; padding-right: 1rem !important; }
    footer .py-12 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
    footer .py-10 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    footer .py-8 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    
    /* Footer订阅表单调整 */
    footer .flex.w-auto {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    footer input[type="email"] { width: 100% !important; max-width: none !important; }
    footer button { width: 100% !important; margin-left: 0 !important; }
    
    /* Footer导航链接和图标调整 */
    footer .flex.flex-wrap.justify-start { gap: 0.75rem !important; }
    footer .flex.space-x-4 { margin-top: 1rem !important; }
    footer svg { width: 24px !important; height: 24px !important; }
    footer .flex.flex-wrap.gap-6 { gap: 1rem !important; }
}

/* 平板设备 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* 头部导航适配 */
    header { padding: 0 2rem !important; }
    nav { gap: 1rem !important; }
    
    /* 英雄区域适配 */
    section.px-48 { padding-left: 2rem !important; padding-right: 2rem !important; }
    
    /* 服务模块适配 */
    .w-\[30\%\] { width: 45% !important; }
    
    /* 评价区块适配 */
    .grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    /* 价值对比模块适配 */
    .grid.grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
    

    /* Footer响应式调整 */
    footer .max-w-\[50vw\] { max-width: 80% !important; }
    footer h2.text-\[100px\] { font-size: 7rem !important; }
    footer input[type="email"] { width: 100% !important; max-width: 250px !important; }
    footer .px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
}

/* 大屏设备微调 (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    section.px-48 { padding-left: 4rem !important; padding-right: 4rem !important; }
    footer .max-w-\[50vw\] { max-width: 60% !important; }
}


/* 小屏幕特别调整 (max-width: 640px) */
@media (max-width: 640px) {
    footer .flex.space-x-4 {
        width: 100%;
        justify-content: space-between;
        max-width: 200px;
    }
}

/* 底部链接组响应式优化 */
footer .flex.flex-wrap.gap-6.text-sm {
    flex-wrap: wrap;
}