/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}

/* 首页Banner */
.hero-section {
    background: #667eea;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 数据统计 */
.stats-section {
    background: #f8f9fa;
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-item h3 {
    margin-bottom: 0.5rem;
}

/* 功能特性 */
.features-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* 技术优势 */
.technology-section {
    background: #2c3e50;
}

.tech-item {
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.tech-item h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.tech-item p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.tech-image img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 客户案例 */
.cases-section {
    padding: 5rem 0;
}

.case-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-content {
    padding: 1.5rem;
}

.case-content h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.case-content p {
    color: #6c757d;
    margin: 0;
}

/* 新闻动态 */
.news-section {
    background: #f8f9fa;
}

.news-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-date {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.news-card h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.news-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.news-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #764ba2;
}

/* 联系我们 */
.contact-section {
    padding: 5rem 0;
}

/* 联系我们新布局 */
.contact-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.contact-bottom-item {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-bottom-item i {
    color: #667eea;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.contact-bottom-item span {
    color: #6c757d;
    font-size: 0.95rem;
}

/* 百度地图样式 */
#baidu-map-container {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#baidu-map-container:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* 地图加载状态样式 */
.map-loading {
    background: #f8f9fa;
    position: relative;
}

@keyframes mapLoading {
    0% { background-position: 0 0, 0 10px, 10px -10px, -10px 0px; }
    100% { background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px; }
}

/* 地图控件样式优化 */
.BMap_cpyCtrl {
    display: none !important;
}

/* 响应式地图 */
@media (max-width: 768px) {
    #baidu-map-container {
        height: 250px !important;
        margin-bottom: 2rem;
    }
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.contact-item h5 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: #6c757d;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form h4 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 页脚 */
.footer {
    background: #2c3e50;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card, .case-card, .news-card {
        margin-bottom: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* 滚动动画 */
html {
    scroll-behavior: smooth;
}

/* 导航栏滚动效果 */
.navbar-scrolled {
    background: rgba(44, 62, 80, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #667eea;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.loader-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

/* 性能优化 - 图片懒加载 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 按钮悬停效果优化 */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 卡片悬停效果优化 */
.card, .feature-card, .download-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.card:hover, .feature-card:hover, .download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* 文字渐入动画 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 进度条动画 */
.progress-bar {
    transition: width 1.5s ease-in-out;
}

/* 数字计数动画 */
.counter {
    font-weight: bold;
    color: #667eea;
}

/* 表单提交状态 */
.form-submitting {
    pointer-events: none;
    opacity: 0.7;
}

.form-submitting .btn {
    cursor: not-allowed;
}

/* 通知样式优化 */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: #667eea;
    color: white;
}

/* 骨架屏加载效果 */
.skeleton {
    background: #f0f0f0;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 图片加载优化 */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
    will-change: transform;
    backface-visibility: hidden;
}

/* 减少重绘重排 */
* {
    box-sizing: border-box;
}

.card, .btn, .navbar {
    will-change: transform;
    backface-visibility: hidden;
}

/* GPU加速 */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

.hero-section, .feature-card, .case-card, .news-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 新闻页面专用样式 */
.news-article {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.news-article .card-title a {
    transition: color 0.3s ease;
}

.news-article .card-title a:hover {
    color: var(--bs-primary) !important;
}

.news-content {
    line-height: 1.8;
    font-size: 16px;
}

.news-content h6 {
    color: var(--bs-primary);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.news-content ul {
    padding-left: 1.5rem;
}

.news-content li {
    margin-bottom: 0.5rem;
}

/* 新闻分类按钮样式 */
.btn-group .btn {
    transition: all 0.3s ease;
}

.btn-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 侧边栏卡片样式 */
.card-header {
    background: var(--bs-primary);
    color: white;
    border: none;
}

.card-header .card-title {
    color: white;
}

/* 热门新闻列表样式 */
.list-group-item-action:hover {
    background-color: var(--bs-light);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* 新闻归档样式 */
.list-group-item .badge {
    transition: all 0.3s ease;
}

.list-group-item:hover .badge {
    transform: scale(1.1);
}

/* 模态框样式优化 */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    background: var(--bs-primary);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header .modal-title {
    color: white;
    font-weight: 600;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

/* 面包屑导航样式 */
.breadcrumb-item a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: white !important;
}

/* 搜索框样式 */
.input-group .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* 分页样式 */
.pagination .page-link {
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 案例详情页面样式 */
.case-detail-content .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-detail-content .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.case-detail-content .card-header {
    border-bottom: none;
    font-weight: 600;
}

.case-detail-content .case-meta p {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.case-detail-content .case-meta strong {
    color: #495057;
    font-weight: 600;
}

.case-detail-content .solution-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    height: 100%;
}

.case-detail-content .solution-item h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.case-detail-content .solution-item p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.case-detail-content .effect-item {
    padding: 1rem;
}

.case-detail-content .effect-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.case-detail-content .effect-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.case-detail-content .related-case {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.case-detail-content .related-case:last-child {
    border-bottom: none;
}

.case-detail-content .related-case:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0 -0.75rem;
}

.case-detail-content .related-case h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.case-detail-content .related-case small {
    color: #6c757d;
}

/* 首页案例卡片悬停效果优化 */
.case-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: white;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.case-card .case-image {
    position: relative;
    overflow: hidden;
}

.case-card .case-image img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-card .case-content {
    padding: 1.5rem;
}

.case-card .case-content h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.case-card .case-content p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.case-card .case-link .btn {
    transition: all 0.3s ease;
}

.case-card:hover .case-link .btn {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* 案例卡片链接样式 */
.case-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 面包屑导航样式 */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .case-detail-content .effect-number {
        font-size: 2rem;
    }
    
    .case-detail-content .solution-item {
        margin-bottom: 1rem;
    }
    
    .case-detail-content .card-body {
        padding: 1rem;
    }
    
    .case-card .case-content {
        padding: 1rem;
    }
    
    .case-card .case-image img {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .case-detail-content .effect-item {
        padding: 0.5rem;
    }
    
    .case-detail-content .effect-number {
        font-size: 1.8rem;
    }
    
    .case-detail-content .effect-label {
        font-size: 0.8rem;
    }
}
    .news-content {
        font-size: 14px;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .btn-group {
        flex-wrap: wrap;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
    }


/* 系统入口功能区 */
.systems-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.system-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.system-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.system-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.system-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.system-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.system-card .btn {
    border-width: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.system-card .btn:hover {
    transform: scale(1.05);
}

/* 响应式设计 - 系统入口 */
@media (max-width: 768px) {
    .system-card {
        margin-bottom: 2rem;
    }
    
    .system-card p {
        min-height: auto;
    }
}

/* 系统介绍页面专用样式 */
.min-vh-60 {
    min-height: 60vh !important;
}

.system-icon-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* 系统介绍页面响应式设计 */
@media (max-width: 768px) {
    .system-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-top: 2rem;
    }
    
    .min-vh-60 {
        min-height: 50vh !important;
    }
}