﻿/* 全局字体与重置 */
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #333;
    overflow-x: hidden;
}

a {
    transition: all 0.3s ease;
}

/* 导航栏特效 */
.navbar {
    transition: all 0.3s;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 15px;
    color: #0A2A5C !important;
}

    .navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
        color: #00B4D8 !important;
    }

/* 首页英雄区 (Hero Section) */
.hero-section {
    background: linear-gradient(135deg, rgba(10,42,92,0.95) 0%, rgba(0,180,216,0.85) 100%), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    color: white;
    padding: 120px 0;
    text-align: center;
}

    .hero-section h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 20px;
        letter-spacing: 2px;
    }

    .hero-section p {
        font-size: 1.2rem;
        max-width: 800px;
        margin: 0 auto 30px;
        opacity: 0.9;
    }

/* 模块标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

    .section-title h2 {
        font-size: 2rem;
        font-weight: 700;
        color: #0A2A5C;
        position: relative;
        display: inline-block;
        padding-bottom: 15px;
    }

        .section-title h2::after {
            content: '';
            position: absolute;
            width: 50px;
            height: 3px;
            background: #00B4D8;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
        }

/* 卡片悬浮特效 (案例与业务) */
.card-custom {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    background: #fff;
}

    .card-custom:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(10,42,92,0.15);
    }

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0A2A5C;
    margin-bottom: 15px;
}

.card-body p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 数据统计区 */
.stats-section {
    background-color: #0A2A5C;
    color: #fff;
    padding: 60px 0;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00B4D8;
    margin-bottom: 5px;
}
/* --- 全局美化 --- */
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #333;
    overflow-x: hidden;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
}

.section-title h2 {
    position: relative;
    padding-bottom: 15px;
}

    .section-title h2::after {
        content: '';
        position: absolute;
        width: 60px;
        height: 3px;
        background: #00B4D8;
        bottom: 0;
        left: 0;
    }

.section-title.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* --- 英雄区 --- */
.hero-section {
    min-height: 85vh;
    position: relative;
    padding-top: 80px;
}

/* --- 卡片与悬停特效 --- */
.card-custom {
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .card-custom:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(10,42,92,0.1) !important;
    }

/* 案例图片容器 */
.case-img-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
    height: 220px;
}

    .case-img-wrapper img {
        transition: transform 0.6s ease;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.card-custom:hover .case-img-wrapper img {
    transform: scale(1.1);
}

/* 软件技术标签 */
.tech-tag {
    font-size: 0.75rem;
    background-color: #f1f3f5;
    color: #495057;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 5px;
    margin-top: 5px;
    display: inline-block;
    font-weight: 500;
}

/* 图标盒子动画 */
.icon-box {
    transition: all 0.3s ease;
}

.card-custom:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* 页脚链接悬停特效 */
.hover-white {
    transition: color 0.3s ease;
}

    .hover-white:hover {
        color: #ffffff !important;
    }

/* 确保 footer 始终在最上层，避免被 AOS 动画或者绝对定位元素遮挡 */
footer {
    position: relative;
    z-index: 10;
    width: 100%;
    clear: both;
}

.footer-link:hover {
    color: #ffffff !important;
    transition: color 0.2s;
}
/* --- 合作伙伴 Logo 统一尺寸美化 --- */

.partner-link {
    /* 1. 强制使用 flex 布局，并加上 !important 防止被 Bootstrap 的 d-block 覆盖 */
    display: flex !important;
    align-items: center !important; /* 垂直居中 */
    justify-content: center !important; /* 水平居中 */

    width: 100%;
    height: 70px; /* 统一卡片高度 */
    background-color: #ffffff;
    border-radius: 12px;
    padding: 12px;
    box-sizing: border-box; /* 确保 padding 不会撑大盒子 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.partner-logo {
    /* 2. 将图片设置为 block，彻底消除底部的默认基线留白（关键） */
    display: block !important;
    max-height: 32px; /* 控制视觉高度 */
    max-width: 100%; /* 最大宽度不超过父容器 */
    object-fit: contain; /* 保持原图比例 */
    /* 3. 双保险居中 */
    margin: 0 auto; /* 水平居中 */

    opacity: 0.75;
    transition: all 0.3s ease;
}

/* 悬停效果 */
.partner-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(10,42,92,0.1);
    border-color: #00B4D8;
}

 .partner-link:hover .partner-logo {
     opacity: 1;
     transform: scale(1.05);
 }


/* ==========================================
   强制修复手机端导航栏下拉菜单显示
   ========================================== */

@media (max-width: 992px) {

    body, html {
        overflow-x: hidden !important;
        width: 100%;
    }

    .navbar.fixed-top {
        z-index: 9999 !important;
    }

    .navbar-brand img {
        height: 35px !important;
    }
    /* 确保下拉菜单有纯白背景、阴影，并浮在最高层 */
    .navbar-collapse {
        background-color: #ffffff !important;
        border-radius: 8px;
        margin-top: 15px;
        padding: 15px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        z-index: 9999 !important;
        max-height: calc(100vh - 100px); /* 防止菜单太长超出屏幕 */
        overflow-y: auto;
    }

    /* 下拉菜单展开后，链接的间距和颜色 */
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        border-bottom: 1px solid #f0f0f0;
        color: #333 !important;
    }

    /* 最后一个链接去掉底边框 */
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* 手机端“联系我们”按钮居中显示 */
    .navbar-nav .btn-primary {
        margin-left: 0 !important;
        margin-top: 10px;
        display: block;
        text-align: center;
        border-radius: 25px !important;
    }

}