/* 技术与服务页面样式 */

: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;
    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;
    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;
}

/* 主要服务区域样式 */
.main-service {
    max-width: 1200px;
    margin: 2rem auto 1rem; /* 减少上下边距 */
    padding: 0 2rem;
}

/* 服务导航栏样式 */
.service-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 让最后两个按钮居中显示并调整宽度 */
.service-nav button:nth-last-child(-n+2) {
    grid-column: span 2;
    width: 80%;
    justify-self: center;
}

/* 服务导航按钮样式 */
.service-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);
}

.service-nav-button:hover {
    background: #f8fafc;  /* 悬停时略微变暗的白色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-nav-button.active {
    background: var(--primary-color);  /* 选中状态使用主题色 */
    color: #ffffff;                    /* 选中状态文字为白色 */
    border-color: transparent;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .service-nav {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 在小屏幕下重置按钮样式 */
    .service-nav button:nth-last-child(-n+2) {
        grid-column: auto;
        width: 100%;
    }
}

/* 服务内容区域样式 */
.service-content {
    margin-top: 2rem;
}

.service-section {
    display: none;
    max-width: 1200px;
    margin: 1rem auto; /* 减少section之间的间距 */
    padding: 0 2rem;
}

.service-section.active {
    display: block;
}

.service-item {
    background: #1E293B;
    border-radius: 12px;
    padding: 1.5rem; /* 减少内部填充 */
    margin-bottom: 2rem; /* 减少项目之间的间距 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-item:last-child {
    margin-bottom: 1rem; /* 减少最后一项的下边距 */
}

.service-item h2 {
    color: #E2E8F0;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-item-content {
    margin-bottom: 1.5rem; /* 减少内容区域的下边距 */
    color: #94A3B8;
    line-height: 1.8;
    text-align: justify;
}

.service-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* IT咨询规划服务卡片样式 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.service-card:hover .service-icon {
    color: #60A5FA;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    transition: color 0.3s ease;
}

.service-icon img {
    width: 2.5rem;
    height: 2.5rem;
    /* 统一的SVG图标颜色滤镜 */
    filter: invert(47%) sepia(82%) saturate(1099%) hue-rotate(175deg) brightness(101%) contrast(101%);
}

.service-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    text-align: justify;
}

/* 成功案例区域样式 */
.cases-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
}

.cases-title {
    text-align: center;
    color: #E2E8F0;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    padding: 2rem;
}

.case-logo {
    background: #1E293B;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.case-logo:hover {
    transform: translateY(-5px);
}

.case-logo img {
    max-width: 100%;
    height: auto;
}

/* 服务列表样式 */
.service-list {
    list-style: none;
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-list li::before {
    content: "•";
    position: absolute;
    left: -1rem;
    color: var(--primary-color);
    font-size: 1.5em;
    line-height: 1;
}

.service-list .list-title {
    color: #E2E8F0;
    font-weight: 500;
}

.service-list .list-content {
    margin-left: 0.5rem;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 调整footer的上边距 */
.footer {
    margin-top: 1rem; /* 减少页脚的上边距 */
}
