.index-title {
    text-align: center;
    padding: 60px;
}

.index-title h2 {
    font-size: 50px;
    color: #D4AF37;
    margin-bottom: 20px;
    line-height: 1.5;
}

.index-title h1 {
    font-size: 32px;
    color: #000;
    font-weight: bold;
    line-height: 1.4;
}

/* ============ 滚动进入动画 ============ */
.index-title [data-animate] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.index-title [data-animate="fadeInLeft"] {
    transform: translateX(-60px);
}

.index-title [data-animate="fadeInRight"] {
    transform: translateX(60px);
}

.index-title [data-animate="fadeInUp"] {
    transform: translateY(40px);
}

.index-title [data-animate="zoomIn"] {
    transform: scale(0.85);
}

.index-title [data-animate].is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}


.index-title h2.is-visible::before,
.index-title h1.is-visible::before {
    width: 40px;
}

/* 文字入场弹性入?*/
.index-title h2.is-visible,
.index-title h1.is-visible {
    animation: title-bounce 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.index-title h2.is-visible {
    animation-delay: 0.2s;
}

.index-title h1.is-visible {
    animation-delay: 0.4s;
}

@keyframes title-bounce {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        letter-spacing: 0.1em;
    }
    60% {
        letter-spacing: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: normal;
    }
}

/* 减弱动画 */
@media (prefers-reduced-motion: reduce) {
    .index-title [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }
    .index-title h2.is-visible,
    .index-title h1.is-visible {
        animation: none;
    }
    .index-title h2::before,
    .index-title h1::before {
        width: 40px;
        transition: none;
    }
}

@media (max-width: 768px) {
    .index-title {
        padding: 40px 15px;
    }

    .index-title h2 {
        font-size: 18px;
    }

    .index-title h1 {
        font-size: 24px;
    }

    .index-title h2.is-visible::before,
    .index-title h1.is-visible::before {
        width: 20px;
        margin-right: 8px;
    }
}
