/* 关于我们页面特有样式 */

/* 顶部Banner */
.about-banner {
    background-image: url('../images/office.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.about-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 公司历程时间轴 */
.company-history {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #0066cc;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid #0066cc;
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -12px;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: #0066cc;
    margin-bottom: 0.5rem;
}

/* 团队展示 */
.team-showcase {
    padding: 4rem 0;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.team-member {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.member-info {
    padding: 1.5rem;
    background-color: white;
}

.member-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.member-info p {
    color: #666;
}

.member-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 102, 204, 0.9);
    color: #f5f5f5;
    padding: 1.2rem 1rem;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    line-height: 1.6;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
}

.team-member:hover .member-details {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.member-details p {
    margin-bottom: 0.5rem;
}

.member-details p:last-child {
    margin-bottom: 0;
}

.team-member:hover .member-details {
    transform: translateY(0);
}

/* 资质证书 */
.certifications {
    padding: 4rem 0;
    background-color: #f9f9f9;
    text-align: center;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.cert-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: scale(1.05);
}

.cert-item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.cert-item p {
    font-weight: bold;
    color: #333;
}

/* 底部CTA */
.about-cta {
    padding: 4rem 0;
    text-align: center;
    background-color: #0066cc;
    color: white;
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-btn {
    background-color: white;
    color: #0066cc;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.contact-btn:hover {
    background-color: #004d99;
    color: white;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {

    /* 确保导航栏样式不被覆盖 */
    .navbar {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 1rem !important;
    }

    /* 导航链接样式 */
    .nav-links {
        display: flex !important;
        position: fixed !important;
        top: 80px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 80px) !important;
        background: var(--white) !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 2rem 0 !important;
        transition: 0.3s ease-in-out !important;
        z-index: 999 !important;
    }

    .nav-links.active {
        left: 0 !important;
    }

    .nav-links a {
        margin: 1rem 0 !important;
        font-size: 1.2rem !important;
        display: block !important;
    }

    /* 汉堡菜单样式 */
    .hamburger {
        display: block !important;
        cursor: pointer !important;
        width: 30px !important;
        height: 30px !important;
        position: relative !important;
        z-index: 1001 !important;
    }

    .hamburger span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background: var(--text-dark) !important;
        margin: 6px 0 !important;
        transition: 0.3s !important;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0 !important;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px) !important;
    }

    /* 隐藏联系信息 */
    .contact-info {
        display: none !important;
    }

    /* 调整其他移动端样式 */
    .about-content {
        grid-template-columns: 1fr !important;
    }

    .team-member {
        flex: 0 0 100% !important;
    }


    /* 导航栏移动端样式 */
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        margin: 1rem 0;
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .contact-info {
        display: none;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 18px;
    }

    .left::after,
    .right::after {
        left: 18px;
    }

    .right {
        left: 0;
    }

    .about-banner {
        height: 300px;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1.2rem;
    }
}