/* 首页特定样式 - 使用admin_cases样式 */

/* 导入Tailwind CSS基础样式 */
@import url('	https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css');

/* 自定义样式变量 */
:root {
    --primary-color: #4A90E2;
    --secondary-color: #50E3C2;
    --accent-color: #8E44AD;
    --blue-500: #3B82F6;
    --blue-600: #2563EB;
    --indigo-500: #6366F1;
    --indigo-600: #4F46E5;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 首页特定的动画效果 - 使用admin_cases样式 */
.hero-section {
    animation: fadeIn 0.8s ease-out;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--indigo-600) 100%);
    opacity: 0.9;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: white !important;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: white !important;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: white !important;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.5s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--indigo-600));
    color: white;
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-600), var(--indigo-700));
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px) scale(1.02);
}

.hero-buttons .btn:active {
    transform: translateY(0) scale(0.98);
}
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-buttons .btn-primary {
    background-color: white;
    color: var(--primary-color) !important;
    border: none;
}

.hero-buttons .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    color: var(--primary-color) !important;
}

.hero-buttons .btn-secondary {
    background-color: transparent;
    color: white !important;
    border: 2px solid white;
}

.hero-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: white !important;
}

/* 响应式设计 - 针对移动端优化 */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 0 1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

/* 功能特点样式 - 使用admin_cases样式 */
.feature-item {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s ease;
    transform: translateY(0);
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-item:nth-child(1) { animation-delay: 0.2s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.6s; }

/* 案例样式 - 使用admin_cases样式 */
.case-item {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s ease;
    transform: translateY(0);
}

.case-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.case-item:nth-child(1) { animation-delay: 0.2s; }
.case-item:nth-child(2) { animation-delay: 0.3s; }
.case-item:nth-child(3) { animation-delay: 0.4s; }
.case-item:nth-child(4) { animation-delay: 0.5s; }

/* 处理步骤样式 - 使用admin_cases样式 */
.process-step {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s ease;
    transform: translateY(0);
}

.process-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.process-step:nth-child(1) { animation-delay: 0.2s; }
.process-step:nth-child(2) { animation-delay: 0.4s; }
.process-step:nth-child(3) { animation-delay: 0.6s; }

/* 热门案例样式 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.case-item {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.case-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-item:hover .case-image {
    transform: scale(1.05);
}

.case-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.case-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* 查看更多按钮样式 */
#view-more-cases {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

#view-more-cases:hover {
    background-color: var(--bg-accent);
    transform: translateX(3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-image-container {
        height: 180px;
    }
}
