/* 首页关于我们区域 */
.about-home {
    padding: 5rem 5%;
    background: var(--white);
}

.about-home-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* 左侧文字 */
.about-home-text {
    flex: 1;
}

.about-home-label {
    display: inline-block;
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.about-home-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    line-height: 1.3;
    font-weight: 700;
}

.about-home-desc {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* 统计数据 */
.about-home-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    /* 数字在预留宽度内居中，计数过程中不左右漂移、不影响兄弟元素 */
    text-align: center;
}

.stat-label {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* 了解更多按钮 */
.about-home-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.about-home-btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 右侧图片 */
.about-home-images {
    flex: 1;
}

.about-home-img-main {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    /* 预留图片尺寸，避免加载时页面跳动 */
    width: 100%;
    aspect-ratio: 4 / 3;
}

.about-home-img-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.about-home-img-main img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.about-home-img-main:hover img {
    transform: scale(1.02);
}

/* 滚动动画 */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
}

.animate-slide-left {
    transform: translateX(-40px);
}

.animate-slide-left.visible {
    transform: translateX(0);
}

.animate-slide-right {
    transform: translateX(40px);
}

.animate-slide-right.visible {
    transform: translateX(0);
}

.animate-fade-up {
    transform: translateY(30px);
}

.animate-fade-up.visible {
    transform: translateY(0);
}

/* 移动端：去掉入场位移动画，只保留淡入，避免滚动到该区域时出现上下抖动感 */
@media (max-width: 768px) {
    .about-home {
        padding: 3.5rem 24px;
    }

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

    .about-home-desc {
        font-size: 0.95rem;
    }

    .about-home-container .animate-on-scroll {
        transform: none;
    }
}

@media (max-width: 576px) {
    .about-home {
        padding: 3rem 22px;
    }

    .about-home-text h2 {
        font-size: 1.6rem;
    }

    .about-home-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .about-home {
        padding: 2.5rem 20px;
    }

    .about-home-text h2 {
        font-size: 1.4rem;
    }

    .about-home-desc {
        font-size: 0.85rem;
    }
}
