/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 顶部信息栏 */
.top-info {
    font-size: 14px;
}

/* 导航栏 */
.navbar {
    padding: 1rem 0;
}

.navbar-brand h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-link {
    font-weight: 500;
    margin-left: 1rem;
}

.nav-link:hover {
    color: #0d6efd !important;
}

/* 轮播图 */
.carousel-item {
    height: 500px;
}

.carousel-caption {
    bottom: 20%;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.2rem;
}

/* 通用样式 */
section {
    padding: 60px 0;
}

h2 {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #333;
}

h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

h4 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: #333;
}

h5 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

p {
    margin-bottom: 1rem;
}

/* 卡片样式 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* 表单样式 */
.form-control {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

footer h4 {
    color: white;
    margin-bottom: 1rem;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

.social-icons a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.5rem;
}

/* 返回顶部按钮 */
.fixed-bottom-right {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.lazyload.loaded {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.3rem;
    }
    
    h5 {
        font-size: 1.1rem;
    }
    
    section {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 250px;
    }
    
    .carousel-caption {
        bottom: 10%;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .top-info .col-md-6 {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }
    
    .navbar-brand h1 {
        font-size: 1.2rem;
    }
}

/* 产品详情页样式 */
.product-detail {
    margin-bottom: 2rem;
}

.product-detail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* 案例详情页样式 */
.case-detail {
    margin-bottom: 2rem;
}

.case-detail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* 新闻详情页样式 */
.news-detail {
    margin-bottom: 2rem;
}

.news-detail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* 招聘信息样式 */
.job-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.job-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.job-item h5 {
    margin-bottom: 0.5rem;
}

.job-item .salary {
    color: #0d6efd;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.job-item .requirements {
    margin-top: 1rem;
}

/* 地图样式 */
.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

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

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

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}