﻿/* 焦点图样式 */
.banner {
    height: 500px;
    background: url('http://www.cander.cn/image/website/banner.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
}

    .banner:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.1);
    }

.banner-content {
    position: relative;
    z-index: 1;
    color: white;
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: left;
    animation: fadeIn 1s ease;
}

    .banner-content h1 {
        font-size: 48px;
        margin-bottom: 20px;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }

    .banner-content p {
        font-size: 20px;
        max-width: 700px;
    }

/* 软件开发部分 */
.software-dev {
    padding: 80px 0;
    background: white;
}

.dev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dev-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    text-align: center;
    position: relative;
}

    .dev-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.dev-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

    .dev-img img {
        max-width: 100px;
        max-height: 100px;
    }

.dev-content {
    padding: 20px;
}

    .dev-content h3 {
        font-size: 20px;
        margin-bottom: 10px;
        color: #262626;
    }

    .dev-content p {
        color: #8c8c8c;
    }

.dev-hover {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(52, 168, 83, 0.9);
    color: white;
    padding: 20px;
    transition: all 0.5s;
}

.dev-item:hover .dev-hover {
    bottom: 0;
}

.dev-hover h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.dev-hover p {
    color: white;
    font-size: 14px;
}

/* 解决方案部分 */
.solutions {
    padding: 80px 0;
    background: #f9f9f9;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

    .solution-grid a.solution-item {
        text-decoration: none;
        color: inherit;
        display: block;
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        transition: all 0.3s;
        text-align: center;
        padding: 30px 20px;
    }

        .solution-grid a.solution-item:hover {
            text-decoration: none;
            color: inherit;
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .solution-grid a.solution-item i {
            font-size: 40px;
            color: #34A853;
            margin-bottom: 15px;
        }

        .solution-grid a.solution-item h3 {
            font-size: 18px;
            margin-bottom: 10px;
            color: #262626; /* 确保标题颜色不变 */
        }

        .solution-grid a.solution-item p {
            color: #8c8c8c; /* 确保描述文字颜色不变 */
        }



/* 开发案例部分 */
.cases {
    padding: 80px 0;
    background: white;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.case-cell {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
    height: 280px;
}

    .case-cell:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.case-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

    .case-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.case-cell:hover .case-image img {
    transform: scale(1.05);
}

.case-name {
    font-size: 16px;
    font-weight: bold;
    color: #262626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 40px;
    line-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 168, 83, 0.95);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10;
}

.case-cell:hover .case-overlay {
    opacity: 1;
    visibility: visible;
}

.case-overlay h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.case-overlay p {
    font-size: 14px;
    line-height: 1.6;
    max-height: 120px;
    overflow: hidden;
}

.more-btn-container {
    text-align: center;
    margin-top: 50px;
}

.more-btn {
    background: white;
    color: #34A853;
    border: 1px solid #34A853;
    padding: 12px 30px;
    font-size: 16px;
}

    .more-btn:hover {
        background: #34A853;
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(52, 168, 83, 0.3);
    }

/* 针对解决方案部分的特殊样式 */
.solutions .more-btn {
    background: #f9f9f9;
}

    .solutions .more-btn:hover {
        background: #34A853;
    }


/* 响应式设计 */
@media (max-width: 992px) {
    .dev-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 36px;
    }

    .banner-content {
        padding: 0 20px;
    }

    .nav-menu {
        display: none;
    }

        .nav-menu > li {
            width: auto;
            margin-left: 15px;
        }

    .logo-text {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .dev-grid, .solution-grid, .cases-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .nav-menu > li {
        margin-left: 20px;
    }

        .nav-menu > li > a {
            padding: 10px 12px;
        }

    .logo {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-text {
        margin-left: 0;
        margin-top: 5px;
    }

    .banner {
        height: 400px;
    }

    .banner-content h1 {
        font-size: 28px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 26px;
    }
}
