/* 公司简介 */
.company-profile {
    padding: 80px 0;
    background-color: #fff;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.profile-image .image-placeholder {
    height: 400px;
    border-radius: 10px;
}

.profile-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.profile-text h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.profile-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #007bff;
}

.profile-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #666;
    font-size: 1.1rem;
}

/* 发展历程 */
.timeline {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
}

.timeline-content {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 时间线中心线 */
.timeline-content::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, #007bff 0%, #6c757d 100%);
    top: 0;
    bottom: 0;
    left: 31px;
    border-radius: 2px;
}

.timeline-item {
    padding: 30px 0;
    position: relative;
    background-color: inherit;
    width: 100%;
    transition: transform 0.3s ease;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: white;
    border: 4px solid #007bff;
    top: 50px;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.timeline-item:hover::after {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(0, 123, 255, 0.2);
    border-color: #0056b3;
}

/* 所有时间线项都从左侧开始 */
.timeline-item:nth-child(even),
.timeline-item:nth-child(odd) {
    left: 0;
    width: 100%;
    padding-left: 80px;
    padding-right: 20px;
}

/* 时间点都在左侧 */
.timeline-item:nth-child(even)::after,
.timeline-item:nth-child(odd)::after {
    left: 19px;
}

/* 年份标签都在左侧 */
.timeline-year {
    position: absolute;
    top: 45px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    left: -80px;
    z-index: 20;
}

.timeline-item:nth-child(even) .timeline-year,
.timeline-item:nth-child(odd) .timeline-year {
    left: -80px;
}

.timeline-item:hover .timeline-year {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

/* 内容卡片 */
.timeline-text {
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
    position: relative;
    overflow: hidden;
}

.timeline-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff 0%, transparent 100%);
}

.timeline-item:hover .timeline-text {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
    border-left-color: #0056b3;
}

.timeline-text h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 700;
}

.timeline-text p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1rem;
}

/* 企业文化 */
.culture {
    padding: 80px 0;
    background-color: #fff;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.culture-item {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.culture-item:hover {
    background-color: #e9ecef;
    transform: translateY(-10px);
}

.culture-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.culture-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.culture-item p {
    color: #666;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* 联系信息部分 */
.contact-info {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 32px;
}

.contact-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
    text-align: left;
}

/* 部门卡片样式 */
.department-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.department-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    font-size: 32px;
    flex-shrink: 0;
}

.department-content {
    width: 100%;
}

.department-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.department-lead {
    font-weight: 500;
    color: #555;
    margin-bottom: 10px;
}

.department-contact {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.department-contact i {
    color: #007bff;
    margin-right: 8px;
}

.department-desc {
    color: #777;
    line-height: 1.6;
    margin-bottom: 20px;
}

.wechat-qr {
    text-align: center;
    margin-top: 10px;
}

.wechat-qr .qr-image {
    max-width: 100px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.wechat-qr p {
    color: #666;
    font-size: 14px;
}

.btn-secondary.contact-department {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-secondary.contact-department:hover {
    background-color: #5a6268;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* 微信二维码样式 */
.wechat-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.qr-image {
    width: 150px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.wechat-qr p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 地图和位置样式 */
.map-section {
    padding: 0px 0 80px;
    background-color: #f9f9f9;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 560px;
    gap: 30px;
    margin-top: 40px;
}

.map-wrapper {
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: #343a40;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.map-overlay {
    border-radius: 10px;
    text-align: center;
    width: 80%;
}

.company-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.address-line {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: white;
}

.address-line i {
    margin-right: 10px;
    color: #007bff;
}

.address-line .copy-icon {
    margin-left: 10px;
    cursor: pointer;
    color: #007bff;
    transition: color 0.3s;
}

.address-line .copy-icon:hover {
    color: white;
}

.contact-line {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: white;
}

.contact-line i {
    margin-right: 10px;
    color: #007bff;
}

#openMap {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

#openMap:hover {
    background-color: #0056b3;
}

.location-info {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.location-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.transportation-methods {
    flex: 1;
}

.transport-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.transport-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.transport-item i {
    font-size: 24px;
    margin-right: 15px;
    color: #007bff;
    margin-top: 4px;
}

.transport-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.transport-item p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.transport-list {
    padding-left: 20px;
    margin-top: 5px;
}

.transport-list li {
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 992px) {
    /* 公司简介 */
    .profile-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-text {
        order: 2;
    }

    .profile-image {
        order: 1;
    }

    /* 发展历程 */
    .timeline-content::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 19px;
        top: 50px;
    }

    .timeline-year {
        left: -70px;
        top: 45px;
        padding: 6px 15px;
        font-size: 0.9rem;
        z-index: 20;
    }

    /* 企业文化 */
    .culture-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    /* 地图部分 */
    .map-container {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper {
        height: 400px;
    }
    
    .location-info {
        order: -1;
    }
}

@media (max-width: 768px) {
    /* 公司简介 */
    .company-profile {
        padding: 60px 0;
    }

    .profile-image .image-placeholder {
        height: 300px;
    }

    .profile-text h2 {
        font-size: 1.8rem;
    }

    /* 发展历程 */
    .timeline {
        padding: 60px 0;
    }

    .timeline-text {
        padding: 20px;
    }

    .timeline-text h3 {
        font-size: 1.2rem;
    }

    /* 企业文化 */
    .culture {
        padding: 60px 0;
    }

    .culture-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* 地图部分 */
    .map-overlay {
        width: 90%;
    }
    
    .location-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    /* 公司简介 */
    .profile-text h2 {
        font-size: 1.6rem;
    }

    .profile-text p {
        font-size: 1rem;
    }

    /* 发展历程 */
    .timeline-item {
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline-content::after {
        left: 21px;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 9px;
    }

    .timeline-year {
        left: -60px;
        padding: 3px 10px;
        font-size: 0.8rem;
        z-index: 20;
    }

    /* 企业文化 */
    .culture-item {
        padding: 30px 15px;
    }

    .culture-icon {
        font-size: 3.5rem;
        height: 70px;
    }
    
    /* 联系信息 */
    .contact-item {
        padding: 20px;
    }
    
    /* 地图部分 */
    .company-title {
        font-size: 20px;
    }
    
    .address-line,
    .contact-line {
        font-size: 14px;
    }
    
    #openMap {
        padding: 10px 20px;
        font-size: 14px;
    }
}