/* Tailwind CSS CDN (内联关键样式) */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Font Awesome CSS CDN */
@import url('font-awesome.min.css');


/* AOS CSS */
@import url('aos.min.css');

/* 自定义工具类 */
@layer utilities {
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .text-gradient {
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        background-image: linear-gradient(90deg, #0066cc, #00aaff);
    }
    .bg-gradient {
        background-image: linear-gradient(135deg, #0066cc, #00aaff);
    }
    .transition-all-300 {
        transition: all 0.3s ease;
    }
    .card-hover {
        transition: all 0.3s ease;
    }
    .card-hover:hover {
        transform: translateY(-10px);
    }
}

/* 公共样式 */
html {
    scroll-behavior: smooth;
}

.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.case-card {
    overflow: hidden;
}

.case-card img {
    transition: transform 0.5s ease;
}

.case-card:hover img {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.active-nav::after {
    width: 100%;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* 移动端菜单 */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* 手机端BANNER适配 */
@media (max-width: 768px) {
    /* 所有页面BANNER统一适配 */
    .page-header {
        min-height: 60vh !important;
        padding: 0 1rem;
    }
    
    .page-header h1,
    .hero-section h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .page-header p,
    .hero-section p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }
    
    /* 优化轮播组件 */
    .carousel {
        height: auto !important;
        min-height: 60vh;
        border-radius: 0 !important;
    }
    
    /* 优化按钮样式 */
    .page-header a,
    .hero-section a {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}