/* 数字化转型页面样式 */
:root {
    --primary-color: #2563EB;
    --gradient-bg: linear-gradient(135deg, #3B82F6, #1D4ED8);
    --dark-bg: #0F172A;
    --card-bg: #1E293B;
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;
}

/* Hero 区域样式 */
.hero-section {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;  /* 确保内容在图片上层 */
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    color: #ffffff;  /* 确保文字颜色为白色 */
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);  /* 添加文字阴影增加可读性 */
}

.hero-description {
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;  /* 确保图片在底层 */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 必要性部分样式 */
.necessity-section {
    padding: 4rem 0;
    background: var(--dark-bg);
}

/* 导航按钮样式 */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.nav-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    background: #ffffff;  /* 白色背景 */
    color: #1a202c;      /* 深色文字 */
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
    font-weight: 500;    /* 稍微加粗一点 */
}

.nav-button:hover {
    background: #f8fafc;  /* 悬停时略微变暗的白色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-button.active {
    background: var(--primary-color);  /* 选中状态使用主题色 */
    color: #ffffff;                    /* 选中状态文字为白色 */
    border-color: transparent;
}

/* 内容区域样式 */
.content-section {
    display: none;
}

.content-section.active {
    display: flex;
    flex-direction: column;  /* 改为纵向排列 */
    gap: 2rem;
    padding: 2rem 0;
}

.content-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;  /* 添加底部间距 */
    font-size: 1.1rem;
}

.content-image {
    width: 100%;
    max-width: 1200px;  /* 限制图片最大宽度 */
    margin: 0 auto;    /* 图片居中 */
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 合作伙伴展示样式 */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding: 2rem;
    justify-items: center;
    align-items: center;
}

.partners-grid img {
    width: 200px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;  /* 添加所有属性的过渡效果 */
    opacity: 1;  /* 移除透明效果 */
}

.partners-grid img:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);  /* 添加阴影效果 */
}

/* 优势部分的样式 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 三列布局 */
    gap: 2rem;
    padding: 2rem 0;
}

.advantage-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
    height: 100%;  /* 确保卡片高度一致 */
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.advantage-icon {
    margin-bottom: 1.5rem;
}

.advantage-icon img {
    width: 3rem;
    height: 3rem;
    margin: 0 auto;
    filter: invert(47%) sepia(82%) saturate(1099%) hue-rotate(175deg) brightness(101%) contrast(101%);  /* 统一蓝色滤镜效果 */
    transition: filter 0.3s ease;  /* 添加颜色过渡效果 */
}

.advantage-card:hover .advantage-icon img {
    filter: invert(67%) sepia(72%) saturate(1591%) hue-rotate(199deg) brightness(101%) contrast(96%);  /* 悬停时颜色变亮 */
}

.advantage-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.advantage-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* 统一文字颜色样式 */
p, 
.necessity-text,
.content-text,
.advantage-description {
    color: var(--text-secondary);  /* 使用统一的次要文本颜色 */
    line-height: 1.6;
}

/* Hero 区域文字保持白色 */
.hero-title,
.hero-description {
    color: #ffffff;  /* 保持白色 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);  /* 保持文字阴影 */
}

/* 响应式布局调整 */
@media (max-width: 1200px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);  /* 中等屏幕3列 */
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);  /* 平板2列 */
        gap: 2rem;
    }
    
    .partners-grid img {
        width: 150px;  /* 减小logo尺寸 */
        height: 50px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(1, 1fr);  /* 手机单列 */
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-button {
        width: 100%;
    }

    .content-section.active {
        padding: 1rem 0;
        grid-template-columns: 1fr;
    }

    .content-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}