/* 全局样式 */
.form-input {
    @apply w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent;
}

.filter-btn {
    @apply px-4 py-2 rounded-lg border border-gray-300 hover:bg-blue-500 hover:text-white transition-colors;
}

.filter-btn.active {
    @apply bg-blue-500 text-white;
}

.card {
    @apply bg-white rounded-lg shadow-lg overflow-hidden transition-transform hover:transform hover:scale-105;
}

.service-card {
    @apply bg-white p-6 rounded-lg shadow-lg text-center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 响应式导航菜单 */
.mobile-menu {
    @apply fixed inset-0 bg-white z-50 transform transition-transform duration-300;
}

.mobile-menu.hidden {
    @apply translate-x-full;
}

/* 轮播图样式 */
.swiper-container {
    @apply overflow-hidden relative;
}

.swiper-pagination-bullet-active {
    @apply bg-blue-500;
}

/* 时间线样式 */
.timeline-item {
    @apply relative flex items-center;
}

.timeline-item::before {
    content: '';
    @apply absolute left-1/2 transform -translate-x-1/2 w-4 h-4 bg-blue-500 rounded-full;
}

/* 行业部门卡片 */
.sector-card {
    @apply bg-white p-6 rounded-lg shadow-lg transition-transform hover:transform hover:scale-105;
}

/* ROI计算器表单 */
.form-group {
    @apply space-y-2;
}

.form-group label {
    @apply block text-gray-700 font-medium;
}

/* Before/After showcase */
.before-after-container {
    @apply relative overflow-hidden rounded-lg shadow-lg;
}

.before-after-container img {
    @apply transition-transform duration-300;
}

.before-after-container:hover img {
    @apply transform scale-105;
}

/* 图片优化样式 */
.img-cover {
    @apply w-full h-full object-cover;
}

.img-contain {
    @apply w-full h-full object-contain;
}

/* 图片加载动画 */
.img-loading {
    @apply relative overflow-hidden bg-gray-100;
}

.img-loading::before {
    content: '';
    @apply absolute inset-0 bg-gradient-to-r from-transparent via-white to-transparent animate-shimmer;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 图片悬停效果 */
.img-hover {
    @apply transition-transform duration-300 ease-in-out;
}

.img-hover:hover {
    @apply transform scale-105;
}

/* 图片容器比例控制 */
.aspect-16-9 {
    aspect-ratio: 16/9;
}

.aspect-4-3 {
    aspect-ratio: 4/3;
}

.aspect-1-1 {
    aspect-ratio: 1/1;
}

/* 字体设置 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Hero section 样式 */
.service-column {
    @apply transition-all duration-300 rounded-lg;
    min-height: 300px;
}

.service-column:hover {
    @apply transform scale-105;
}

.service-column img {
    @apply transition-transform duration-300;
}

.service-column:hover img {
    @apply transform scale-110;
}

/* 蓝色斜线装饰 */
.diagonal-blue {
    position: relative;
    overflow: hidden;
}

.diagonal-blue::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 0;
    right: 0;
    height: 100%;
    background: #0066CC;
    transform: skewY(-6deg);
    z-index: -1;
}

/* 表单样式 */
input, textarea {
    @apply focus:ring-2 focus:ring-[#0066CC] focus:border-transparent transition duration-200;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .service-column h2 {
        @apply text-2xl;
    }
    .service-title {
        font-size: 1.5rem;
    }
    .service-description {
        font-size: 0.875rem;
    }
}

/* 添加文字阴影效果使文字在图片上更清晰 */
.service-column h2 {
    @apply text-shadow-lg;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 确保图片覆盖整个区域 */
.service-column .absolute.inset-0 {
    @apply overflow-hidden rounded-lg;
}

/* 自定义动画 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* 响应式断点优化 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        @apply hidden;
    }
}

/* 表单聚焦效果 */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 0, 51, 0.2);
}

/* 图片加载效果 */
img {
    background: linear-gradient(45deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 200%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 响应式优化 */
@media (max-width: 768px) {
    .service-title {
        font-size: 1.25rem;
    }
    
    .service-list li {
        font-size: 0.875rem;
    }
}

@keyframes fade-in-down {
    0% {
        opacity: 0;
        transform: translateY(-2rem);
    }
    100% {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.animate-fade-in-down {
    animation: fade-in-down 1s ease-out forwards;
}

/* Logo悬停效果 */
nav img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(255, 0, 51, 0.3));
}

/* 添加logo背景保护 */
img[src*="logo"] {
    background: 
        linear-gradient(45deg, 
            rgba(255,255,255,0.1) 0%, 
            rgba(255,255,255,0.05) 100%);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

/* 新版Logo入场动画 */
@keyframes logo-entrance {
    0% {
        opacity: 0;
        transform: translateY(-2rem) scale(0.95);
    }
    70% {
        opacity: 0.9;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0.95;
        filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    }
}

.animate-logo-entrance {
    animation: logo-entrance 1.2s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
}

/* 文字渐显动画 */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-text-fade {
    animation: fade-in 1.2s ease-out 0.5s both;
}

.animate-subtitle-fade {
    animation: fade-in 1.2s ease-out 1s both;
}

/* 副标题动画 */
@keyframes subtitle-fade {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-subtitle-fade {
    animation: subtitle-fade 0.8s ease-out 2s both;
}

/* Logo浮动动画 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* 导航栏悬停效果 */
nav a {
    position: relative;
    padding-bottom: 2px;
}

nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FF0033;
    animation: underline-grow 0.3s ease-out;
}

@keyframes underline-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Logo优化 */
nav img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
    transition: all 0.3s ease;
}

nav img:hover {
    filter: 
        drop-shadow(0 4px 8px rgba(255, 0, 51, 0.2)) 
        brightness(1.05);
}

/* 导航栏响应式调整 */
@media (max-width: 768px) {
    nav img {
        height: 2.5rem;
    }
    .flex.space-x-8 {
        gap: 1.5rem;
    }
}

/* 标题滑动动画 */
@keyframes title-slide {
    from {
        opacity: 0;
        transform: translateY(30%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-title-slide {
    animation: title-slide 1.2s cubic-bezier(0.2, 0.7, 0.4, 1) 0.3s both;
}

/* 分隔线动画 */
@keyframes line-expand {
    from { width: 0; opacity: 0; }
    to { width: 6rem; opacity: 1; }
}

.animate-line-expand {
    animation: line-expand 0.8s ease-out 1s both;
}

/* 按钮渐现 */
@keyframes button-fade {
    from { 
        opacity: 0;
        transform: translateY(1rem);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-button-fade {
    animation: button-fade 0.8s ease-out 1.5s both;
}

/* 背景图加载动画 */
.contact-bg {
    animation: subtle-zoom 20s linear infinite alternate;
}

@keyframes subtle-zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* 表单入场动画 */
.contact-form {
    animation: form-rise 1s cubic-bezier(0.2, 0.7, 0.4, 1) both;
}

@keyframes form-rise {
    from { 
        opacity: 0;
        transform: translateY(2rem);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
} 