/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Heiti SC', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
}

.nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #0d6efd;
}

/* 按钮样式 */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.card {
    transition: all 0.3s;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 首页样式 */
.banner {
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 1;
}

.service-card {
    transition: all 0.3s;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background-color: #0d6efd;
    color: white;
    transform: rotateY(180deg);
}

/* 关于我们页面样式 */
.team-member {
    text-align: center;
    transition: all 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.team-member:hover img {
    transform: scale(1.1);
}

.certificate {
    transition: all 0.3s;
}

.certificate:hover {
    transform: translateY(-5px);
}

/* 产品服务页面样式 */
#design,
#supervision,
#survey,
#cost,
#management,
#consultation {
    scroll-margin-top: 80px;
}

/* 成功案例页面样式 */
.filter-btn {
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    color: #0d6efd;
}

.case-item {
    transition: all 0.3s;
}

.case-item:hover {
    transform: translateY(-5px);
}

/* 新闻资讯页面样式 */
.news-card {
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

/* 招聘中心页面样式 */
.process-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.process-arrow {
    font-size: 30px;
    margin: 0 10px;
    color: #0d6efd;
}

@media (max-width: 768px) {
    .process-container {
        flex-direction: column;
    }
    
    .process-step {
        margin-bottom: 30px;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

/* 联系我们页面样式 */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }
    
    .banner h1 {
        font-size: 2rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    .service-card,
    .case-card,
    .news-card {
        margin-bottom: 30px;
    }
}

/* 图片懒加载样式 */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #0d6efd;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 表单样式 */
.form-control {
    border-radius: 8px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* 页脚样式 */
footer {
    background-color: #343a40;
    color: white;
}

footer a {
    color: #adb5bd;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
    text-decoration: none;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
}

.back-to-top:hover {
    background-color: #0b5ed7;
    transform: translateY(-5px);
}