/* 全局样式 */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏样式 */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 50px;
    transition: all 0.3s ease;
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* 轮播图样式 */
.carousel-item {
    height: 600px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
}

/* 服务卡片样式 */
.card {
    border: none;
    box-shadow: 0 2px 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 5px 15px rgba(0, 0, 0, 0.1);
}

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

/* 公司优势样式 */
.advantages i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 新闻动态样式 */
.news .card {
    margin-bottom: 2rem;
}

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

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 0;
    margin-top: auto;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

footer .social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    transform: translateY(-3px);
}

footer .qrcode-container img {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* 页面标题样式 */
.page-title {
    background-color: var(--light-color);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-title h1 {
    font-weight: 600;
    color: var(--dark-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 40px;
    }
    
    footer {
        padding: 2rem 0 0;
    }
    
    .page-title {
        padding: 2rem 0;
    }
}

/* 添加动画效果 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 通用按钮样式 */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* 表单样式 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* 图片样式 */
.img-fluid {
    border-radius: 8px;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: var(--dark-color);
    font-weight: 600;
}

/* 添加滚动到顶部按钮样式 */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.scroll-to-top:hover {
    background-color: #004494;
    transform: translateY(-3px);
}

/* 服务展示区块样式 */
.services-showcase {
    background-color: var(--light-color);
    padding: 4rem 0;
}

.services-showcase .service-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-showcase .service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.services-showcase .service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.services-showcase .service-item:hover img {
    transform: scale(1.05);
}

.services-showcase .service-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1rem 0;
    text-align: center;
}

.services-showcase .service-item p {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .services-showcase {
        padding: 2rem 0;
    }
    
    .services-showcase .service-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .services-showcase .service-item img {
        height: 180px;
    }
    
    .services-showcase .service-item h3 {
        font-size: 1.3rem;
    }
}

/* 公司简介样式 */
.company-intro {
    background-color: #f8f9fa;
}

.company-intro .intro-text {
    font-size: 1.1rem;
    color: #333;
}

/* 数据统计样式 */
.statistics {
    background-color: #fff;
}

.statistics .stat-item {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.statistics .stat-number {
    color: #000;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
}

.statistics .stat-label {
    color: #000;
    font-size: 1rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .statistics .stat-number {
        font-size: 2.5rem;
    }
    
    .statistics .stat-label {
        font-size: 0.9rem;
    }
    
    .company-intro .intro-text {
        font-size: 1rem;
    }
}

/* Logo样式 */
.navbar-brand {
    padding: 0;
    margin: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.company-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: "Microsoft YaHei", sans-serif;
}

.company-slogan {
    font-size: 12px;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .company-name {
        font-size: 20px;
    }
    
    .company-slogan {
        font-size: 10px;
    }
}

/* Banner样式 */
.page-banner {
    position: relative;
    overflow: hidden;
}

.banner-img {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center !important;
    background-size: cover !important;
}

.banner-content {
    padding: 80px 0;
}

.banner-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--light-color) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: white;
}

@media (max-width: 768px) {
    .banner-img {
        min-height: 200px;
    }
    
    .banner-content {
        padding: 60px 0;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
}

/* 服务项目图片样式 */
.service-img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 创建1:1的宽高比 */
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}

.service-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item:hover .service-img {
    transform: scale(1.05);
}

.service-item {
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.service-item .card-body {
    padding: 1.5rem;
}

.service-item .card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-item .list-unstyled li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.service-item .bi-check2 {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .service-img-wrapper {
        border-radius: 8px 8px 0 0;
    }
    
    .service-item .card-body {
        padding: 1rem;
    }
} 