/* 定义通用样式类，减少代码冗余 */
.text-style {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin-top: 0;
}

/* 整体页面布局相关样式 */
body {
    margin: 0;
    padding: 0;
    transition: background-color 0.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section {
    width: 100%;
    margin-bottom: 30px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.image-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.image-item {
    flex: 1;
    max-width: 200px;
    padding: 0 10px;
    box-sizing: border-box;
}

img.clickable-image { /* 针对添加了类名的可点击图片设置样式 */
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    will-change: transform, opacity;
}

img.zoomed {
    width: 100%;
    height: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    max-width: none;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease-in-out;
    opacity: 1;
}

p {
    /* 应用通用样式类 */
    @extend.text-style;
    animation: textColorChange 5s infinite alternate;
}

.first-image-text {
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5), 0 0 10px rgba(0, 255, 0, 0.5), 0 0 15px rgba(0, 0, 255, 0.5);
    animation: textColorChange 5s infinite alternate;
}

/* 文字颜色变化动画关键帧 */
@keyframes textColorChange {
    from {
        color: #333;
    }

    to {
        color: var(--textColor);
    }
}

/* 手机端样式调整（屏幕宽度小于768px时生效） */
@media (max-width: 768px) {
 .container {
        padding: 10px;
    }

 .section {
        margin-bottom: 20px;
        padding: 15px;
    }

 .image-row {
        gap: 10px;
    }

 .image-item {
        max-width: 150px;
    }
}
