/* 公司简介页面专用样式 */
.about-hero {
    position: relative;
    height: 500px;
   background-image: url("../assets/images/profile/bg.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px; /* 添加顶部边距避免导航栏遮挡 */
    margin-bottom: 60px;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 47, 120, 0.2); /* 深蓝色半透明背景增强文字可读性 */
}

.about-hero h1 {
    position: relative;
    color: white;
    font-size: 42px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    max-width: 800px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 80px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 80px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-text h2 {
    color: #012f78;
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #012f78;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.about-image {
    flex: 1;
    min-width: 300px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.timeline-section {
    margin: 80px 0;
}

.timeline-section h2 {
    color: #012f78;
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #012f78;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid #012f78;
    border-radius: 50%;
    top: 20px;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -14px;
}

.right::after {
    left: -14px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-year {
    color: #012f78;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

.advantages-section {
    margin: 80px 0;
}

.advantages-section h2 {
    color: #012f78;
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    padding: 30px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.advantage-card.show {
    opacity: 1;
    transform: translateY(0);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.advantage-icon {
    font-size: 40px;
    color: #012f78;
    margin-bottom: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
    color: #0155b8;
}

.advantage-card h3 {
    color: #012f78;
    margin-bottom: 15px;
}

/* 关键帧动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    .about-hero {
        height: 300px;
        margin-top: 50px; /* 在移动端调整顶部间距 */
    }

    .about-hero h1 {
        font-size: 32px;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0%;
    }

    .left::after, .right::after {
        left: 18px;
    }
}