/* 全局样式 */
:root {
    --primary-color: #4361ee; /* 更现代的蓝色 */
    --secondary-color: #6c757d;
    --accent-color: #f72585; /* 年轻化的亮粉色 */
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-primary: linear-gradient(45deg, #4361ee, #3a0ca3); /* 渐变效果 */
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 76px; /* 为固定导航栏留出空间 */
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 导航栏基础样式 */
.navbar {
    background-color: var(--primary-color) !important;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff !important;
}

.nav-link {
    color: #fff !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

/* 移动端导航样式 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        padding: 1rem;
        z-index: 1029;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        margin: 5px 0;
    }

    .nav-link {
        display: block;
        width: 100%;
        text-align: left;
        padding: 8px 15px !important;
    }

    .nav-link:hover, 
    .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* 删除其他冲突的媒体查询样式 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        background: var(--primary-color);
        padding: 1rem 0;
        width: 100%;
        z-index: 1029;
    }
}
.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* 移动端导航样式 */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0;
    }
    
    .navbar-collapse {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--primary-color);
        padding: 1rem 0;
        z-index: 1000;
    }

    .navbar-nav {
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 15px;
    }

    .nav-item {
        margin: 5px 10px;
    }

    .nav-link {
        padding: 8px 15px !important;
        border-radius: 20px;
        transition: all 0.3s ease;
        color: #fff !important;
    }

    .nav-link:hover, 
    .nav-link.active {
        background: rgba(255, 255, 255, 0.2);
        color: #fff !important;
    }
}

/* 删除或注释掉之前的冲突媒体查询 */
/* @media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }
    
    .nav-link:after {
        display: none;
    }
    
    .nav-link.active {
        background-color: var(--primary-color);
        color: white !important;
        border-radius: 5px;
    }
} */

/* 确保内容不被导航栏遮挡 */
body {
    padding-top: 76px;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* 首页大图样式 */
.hero-section {
    height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

/* 章节标题 */
.section-title {
    position: relative;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.section-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    bottom: -10px;
    left: 0;
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* 服务卡片 */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 2rem;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* 案例卡片 */
.case-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.case-card img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover img {
    transform: scale(1.05);
}

/* 客户评价卡片 */
.testimonial-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    position: relative;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
}

.testimonial-text:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #f9f9f9 transparent;
}

/* 联系表单 */
.contact-info li {
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--accent-color);
    width: 25px;
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* 关于我们页面 */
.team-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover img {
    transform: scale(1.05);
}

.team-social a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* 案例展示页面 */
.case-filter button {
    border-radius: 30px;
    padding: 8px 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.case-filter button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

/* 联系我们页面 */
.contact-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 2rem;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* 动画效果 */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }
    
    .nav-link:after {
        display: none;
    }
    
    .nav-link.active {
        background-color: var(--primary-color);
        color: white !important;
        border-radius: 5px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    
    .hero-section {
        height: 500px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card, .case-card, .testimonial-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 400px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .contact-form {
        margin-top: 30px;
    }
}
/* 导航栏样式 */
.navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.nav-link {
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--primary-color);
        padding: 15px;
        border-radius: 0 0 10px 10px;
        margin-top: 10px;
    }
    
    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}