.passage {
    width: 1000px;
    margin: 60px auto;
}
.passage h1{
    font-size: 40px;
    color: #8f4caf;
    text-align: center;
    margin-top: 100px;
}
.passage h2,h3 {
    color: #39332d;
    margin-top: 15px;
    font-family: '华文中宋';
}
.passage h2 {font-size: 30px;padding: 10px;}
.passage h3 {font-size: 25px;padding: 10px;}
.passage h4 {font-size: 20px;padding: 10px;font-family: '华文中宋';}
.passage p {
    text-indent: 2em;
    font-size: 22px;
    line-height: 35px;
    letter-spacing: 1.6;
    font-family: '楷体';
}
.passage img {
    width: 600px;
    margin: 10px 200px;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-90deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* 元素动画设置 */
.passage h1 {
    animation: fadeInDown 1s ease-out both;
}

.passage h2 {
    animation: fadeInLeft 0.8s ease-out both;
    animation-delay: 0.3s;
}

.passage h3 {
    animation: fadeInLeft 0.8s ease-out both;
    animation-delay: 0.4s;
}

.passage p {
    animation: fadeIn 1s ease-in both;
    animation-delay: 0.5s;
}

/* 奇数图片从右侧进入，偶数图片从左侧进入 */
.passage img:nth-child(odd) {
    animation: fadeInRight 1s ease-out both;
    animation-delay: 0.6s;
}

.passage img:nth-child(even) {
    animation: fadeInLeft 1s ease-out both;
    animation-delay: 0.6s;
}

/* 特殊处理地质构造图片 */
.passage img[alt="地质构造"] {
    animation: rotateIn 1.2s ease-in-out both;
    animation-delay: 0.7s;
}

/* 响应式减少动画效果 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* 初始化元素状态 */
.passage h2,
.passage h3,
.passage p,
.passage img {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

/* 奇数图片初始位置 */
.passage img:nth-child(odd) {
    transform: translateX(50px);
}

/* 偶数图片初始位置 */
.passage img:nth-child(even) {
    transform: translateX(-50px);
}

/* 地质构造图片特殊初始状态 */
.passage img[alt="地质构造"] {
    transform: rotate(-15deg) scale(0.8);
}

/* 激活时的可见状态 */
.scroll-animate {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) rotate(0) !important;
}

.passage img {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border-radius: 4px;
    transform-origin: center center;
}

/* 基础悬停效果 */
.passage img:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    filter: brightness(1.05) contrast(1.1);
}

/* 地质构造图片特殊悬停效果 */
.passage img[alt="地质构造"]:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.25);
}

/* 奇偶图片不同悬停方向 */
.passage img:nth-child(odd):hover {
    transform: scale(1.03) translateX(5px) translateY(-5px);
}

.passage img:nth-child(even):hover {
    transform: scale(1.03) translateX(-5px) translateY(-5px);
}

/* 最后一张图片放大效果 */
.passage img:last-child:hover {
    transform: scale(1.08);
    z-index: 10;
}

/* 悬停时显示图片标题伪元素 */
.passage img::after {
    content: attr(alt);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 1rem;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 4px 4px;
}

.passage img:hover::after {
    opacity: 1;
}

.passage span {
    padding-left: 50px;
    font-size: 16px;
    color: #a7a7a7;
    font-family: '宋体';
}