/* 全局变量 */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* 全局基础样式 */
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(35, 62, 123, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* 汉堡菜单按钮颜色调整 */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.7);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 联系我们按钮样式 */
.navbar .btn-primary {
    background-color: #fff;
    border-color: #fff;
    color: rgba(35, 62, 123, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.navbar-scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand img {
    transition: height 0.3s ease;
}

.nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero 区域 */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 150px 0;
    position: relative;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(45deg, var(--primary-color), #2196F3);
    color: #fff;
    padding: 120px 0 80px;
    position: relative;
    text-align: center;
}

.page-header .display-4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 通用样式 */
.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* 服务卡片 */
.service-card {
    transition: all 0.3s ease;
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* 解决方案卡片 */
.solution-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.solution-title-box {
    background: linear-gradient(45deg, #f8f9fa, #ffffff);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 2rem;
}

.solution-card-body {
    padding: 2rem;
}

/* 数字统计 */
.counter-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/counter-bg.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
}

.counter-item {
    text-align: center;
    padding: 20px;
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.counter-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
}

/* 合作伙伴样式 */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.partner-logo {
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.partner-logo img {
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    padding: 4rem 0 2rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
    color: #fff;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 100px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

.team-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-container {
    width: 100%;
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}


.testimonial-card {
    /* 特性卡片样式 */
    .feature-card {
        background: #fff;
        border-radius: 10px;
        padding: 2rem;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }
    
    .feature-icon {
        font-size: 2.5rem;
        color: var(--primary-color);
        margin-bottom: 1.5rem;
    }
    
    .feature-card h4 {
        margin-bottom: 1rem;
        color: #333;
    }
    
    .feature-card p {
        color: #666;
        margin-bottom: 0;
    }
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    height: 100%;
}

/* 客户评价卡片样式 */
.testimonial-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h5 {
    font-size: 1.1rem;
    color: #333;
}

.testimonial-info p {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.testimonial-card .quote {
    font-style: italic;
    margin: 1rem 0;
}

.testimonial-card .client-info h5 {
    margin-bottom: 0.25rem;
}

.testimonial-card .client-company {
    color: var(--bs-primary);
    font-size: 0.9rem;
}

/* 云平台logo样式 */
.cloud-platforms {
    padding: 2rem 0;
}

.platform-logo {
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.platform-logo img {
    max-height: 60px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.platform-logo:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* 解决方案图片效果 */
.solution-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s ease;
}

.solution-image img {
    transition: transform 0.5s ease;
}

.solution-image:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.solution-image:hover img {
    transform: scale(1.05);
}

/* 案例卡片效果 */
.case-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.case-img {
    position: relative;
    height: 200px;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    overflow: hidden;
}

.industry-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--bs-primary);
}

.case-content {
    padding: 1.5rem;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.product-badge span {
    font-weight: 600;
    color: var(--bs-primary);
}