body{ background: #f5f5f5;}
.section1 {
    background: #fff;
    margin: 40px 0;
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1fa1a1;
}

/* 公司简介 */
.company-intro {
    display: flex;
    gap: 40px;
    align-items: center;
}

.company-intro img {
    width: 45%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.company-intro-text {
    flex: 1;
}

.company-intro-text p {
    text-indent: 2em;
    margin-bottom: 15px;
    color: #666;
    text-align: justify;
}

/* 组织架构 */
.org-chart {
    text-align: center;
}

.org-chart img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 发展历程 */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1fa1a1;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-items {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: #1fa1a1;
    border: 3px solid #fff;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 3px #1fa1a1;
}

.timeline-year {
    font-size: 20px;
    font-weight: bold;
    color: #1fa1a1;
    margin-bottom: 10px;
}

.timeline-content {
    background: #f9f9f9;
    padding: 20px;
    border: 3px solid #fff;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    text-align: left;
    min-height: 120px;
}

/* 荣誉资质 */
.certificates {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    justify-content: space-between;
    overflow: hidden;
}

.certificate-item {
    flex: 0 1 auto;
    min-width: 0;
    transition: transform 0.3s;
}

.certificate-item:hover {
    transform: translateY(-10px);
}

.certificate-item img {
	/*
    height: 350px;
    width: auto;
    max-width: 100%; */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 办公环境 & 车间设备 */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

#office .gallery {
    grid-template-columns: repeat(3, 1fr);
}

#workshop .gallery {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(31, 161, 161, 0.9);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

/* 图片弹窗 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
}

.gallery-item {
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }

    .company-intro {
        flex-direction: column;
    }

    .company-intro img {
        width: 100%;
    }

    .timeline-items {
        flex-direction: column;
        padding: 0;
    }

    .timeline-line {
        left: 20px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
        transform: none;
    }

    .timeline-item {
        padding-left: 60px;
        margin-bottom: 40px;
        text-align: left;
    }

    .timeline-dot {
        position: absolute;
        left: 13px;
        margin: 0;
    }

    .certificates {
        flex-wrap: wrap;
        gap: 20px;
    }

    .certificate-item {
        flex: 0 1 calc(50% - 10px);
    }

    .certificate-item img {
        height: auto;
        width: 100%;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    #office .gallery,
    #workshop .gallery {
        grid-template-columns: 1fr;
    }

    .section1 {
        padding: 40px 0;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .certificates {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}