/* 全局样式 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --accent-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* 导航栏样式 */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9) !important;
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-link {
    position: relative;
    margin-left: 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 英雄区域样式 */
.hero-section {
    height: 100vh;
    overflow: hidden;
}

.carousel-inner {
    height: 100vh;
}

.carousel-item {
    height: 100vh;
}

.carousel-item img {
    height: 100vh;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    text-align: center;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.carousel-caption .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* 服务卡片样式 */
.service-card {
    transition: all 0.3s ease;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.service-card:hover .service-icon i {
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card .btn {
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.service-card:hover .btn {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 技术优势卡片样式 */
.feature-card {
    transition: all 0.3s ease;
    background-color: white;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    margin: 0 auto;
}

/* 案例卡片样式 */
.case-card {
    transition: all 0.3s ease;
    background-color: white;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.case-card img {
    height: 250px;
    object-fit: cover;
}

/* 团队卡片样式 */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card img {
    transition: all 0.3s ease;
}

.team-card:hover img {
    transform: scale(1.05);
}

/* 联系表单样式 */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* 社交媒体链接样式 */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: white;
}

footer a {
    transition: color 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: var(--primary-color);
}

footer h3 {
    color: white;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
}

footer li span {
    color: rgba(255, 255, 255, 0.8);
}

.border-gray-700 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.text-light {
    color: rgba(255, 255, 255, 0.9) !important;
}

.hover\:text-primary:hover {
    color: var(--primary-color) !important;
}

.transition-colors {
    transition: color 0.3s ease;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .service-card,
    .feature-card,
    .case-card,
    .team-card {
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

/* 辅助类 */
.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.g-8 {
    gap: 2rem;
}

/* 轮播图控制按钮样式 */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}