/* 网络安全解决方案页面样式 */

/* SVG图标样式 */
.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem; /* 从1.5rem减少到1rem */
    text-align: center;
    transition: color 0.3s ease;
}

.solution-icon img {
    width: 2.5rem;
    height: 2.5rem;
    filter: invert(47%) sepia(82%) saturate(1099%) hue-rotate(175deg) brightness(101%) contrast(101%);
}

/* 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;
    color: #ffffff;
    padding: 2rem;
}

.hero-title {
    font-size: 3rem;
    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;
}

/* 导航按钮样式 */
.security-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1rem;
    padding: 2rem;
    background: #1E293B;
    max-width: 1200px;
    margin: 0 auto;
}

/* 第一行显示5个按钮 */
.security-nav button:nth-child(-n+5) {
    grid-row: 1;
}

/* 第二行显示4个按钮 */
.security-nav button:nth-child(n+6) {
    grid-row: 2;
}

/* 第二行按钮居中对齐 */
.security-nav button:nth-child(6) { grid-column: 1 / span 1; }
.security-nav button:nth-child(7) { grid-column: 2 / span 1; }
.security-nav button:nth-child(8) { grid-column: 3 / span 1; }
.security-nav button:nth-child(9) { grid-column: 4 / span 1; }

.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);
}

.nav-button:hover {
    background: #f8fafc;  /* 悬停时略微变暗的白色 */
    transform: translateY(-2px);
}

.nav-button.active {
    background: var(--primary-color);  /* 选中状态使用主题色 */
    color: #ffffff;                    /* 选中状态文字为白色 */
    border-color: transparent;
}

/* 内容区域样式 */
.security-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-title {
    font-size: 2rem;
    color: var(--text-primary);  /* 修改为主题文字颜色 */
    margin-bottom: 3rem;
    text-align: center;
}

/* 解决方案卡片容器 */
.solutions-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 解决方案卡片样式 */
.solution-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
    height: 100%;
    padding: 1.5rem; /* 从2rem减少到1.5rem */
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

/* 卡片悬停时图标颜色变化 */
.solution-card:hover .solution-icon {
    color: #60A5FA;  /* 悬停时稍微变亮 */
}

.solution-info {
    padding: 1.5rem;
}

.solution-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.75rem; /* 从1rem减少到0.75rem */
    text-align: center;
}

.solution-description {
    color: #94A3B8;
    line-height: 1.6;
    font-size: 1rem;
    text-align: justify;
}

/* 如果需要保持其他样式不变，可以添加变量 */
:root {
    --text-secondary: #94A3B8;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .security-nav {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    
    /* 重置所有按钮的网格位置 */
    .security-nav button {
        grid-column: auto !important;
    }
}

@media (max-width: 768px) {
    .security-nav {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, auto);
    }
    
    .nav-button {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .solutions-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .solution-card {
        margin: 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .solution-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }

    .solutions-container {
        grid-template-columns: 1fr;
    }
}
