/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 导航栏样式 */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 51, 102, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    max-height: 40px;
    margin-right: 10px;
}

.nav-link {
    font-size: 16px;
    padding: 10px 15px !important;
    transition: color 0.3s ease;
}

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

/* 轮播图样式 */
.carousel-item {
    height: 80vh;
    min-height: 300px;
    background: no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.carousel-caption {
    bottom: 25%;
    transform: translateY(50%);
    text-align: center;
}

.carousel-caption h5 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.display-4 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #003366;
}

.display-5 {
    font-weight: 600;
    margin-bottom: 15px;
    color: #003366;
}

/* 服务卡片样式 */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* 特性部分样式 */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* 合作伙伴样式 */
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.grayscale {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.hover-color:hover {
    filter: grayscale(0%);
}

/* 联系信息样式 */
.contact-info li {
    list-style: none;
    display: flex;
    align-items: flex-start;
}

.contact-info li i {
    min-width: 50px;
    text-align: center;
}

.social-media {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-3px);
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 75%;
    position: relative;
    height: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

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

footer h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

/* 按钮样式 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

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

/* 滚动进度指示器 */
.progress-container {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 5px;
}

.progress-bar {
    height: 5px;
    background: #007bff;
    width: 0%;
    transition: width 0.1s ease;
}

/* 响应式设计 - 全面增强 */
/* 大平板和桌面设备 */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    .service-card {
        margin-bottom: 30px;
    }
}

/* 中等平板设备 */
@media (max-width: 992px) {
    /* 导航栏调整 */
    .navbar-expand-lg .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-expand-lg .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #007bff;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
    
    /* 轮播图调整 */
    .carousel-caption h5 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
    }
    
    .nav-link {
        text-align: center;
    }
    
    /* 服务卡片调整 */
    .card {
        margin-bottom: 30px;
    }
}

/* 小平板和大型手机 */
@media (max-width: 768px) {
    /* 通用调整 */
    section {
        padding: 40px 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    /* 轮播图调整 */
    .carousel-caption h5 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    /* 社交媒体调整 */
    .social-media {
        justify-content: center;
    }
}

/* 手机设备 */
@media (max-width: 576px) {
    /* 通用调整 */
    .container {
        padding: 0 15px;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    /* 轮播图调整 */
    .carousel-caption {
        bottom: 15%;
    }
    
    .carousel-caption h5 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    /* 地图调整 */
    .map-responsive {
        padding-bottom: 100%;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .carousel,
    .btn,
    .social-media {
        display: none;
    }
    
    section {
        padding: 20px 0;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
}