.guide-img {
    display: block;
    max-width: 90%;
    height: auto;
    margin: 2.5rem auto;
    border-radius: 16px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(113, 88, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(113, 88, 226, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.guide-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(79, 109, 245, 0.1) 0%,
            rgba(113, 88, 226, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    border-radius: 16px;
}

.guide-img::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.8s ease;
    z-index: 2;
}

.guide-img:hover::before {
    opacity: 1;
}

.guide-img:hover::after {
    transform: rotate(30deg) translateX(100%);
}

.guide-img:hover {
    transform: scale(1.02);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 210, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 210, 255, 0.5);
}

/* 图片标题样式 */
.guide-img+.img-caption {
    text-align: center;
    margin-top: 0.8rem;
    margin-bottom: 2.5rem;
    color: #b0b0d0;
    font-size: 0.95rem;
    font-style: italic;
    position: relative;
    padding: 0.5rem 1rem;
    background: rgba(17, 17, 46, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(113, 88, 226, 0.2);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.guide-img+.img-caption::before {
    content: '📷';
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.image-wrapper {
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(113, 88, 226, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(113, 88, 226, 0.3);
    position: relative;
    z-index: 1;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            transparent,
            rgba(79, 109, 245, 0.1),
            transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.image-wrapper:hover::before {
    opacity: 1;
}

.image-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 210, 255, 0.4),
        0 0 30px rgba(79, 109, 245, 0.3);
    border-color: rgba(0, 210, 255, 0.5);
}

/* 网格图片样式 */
.image-grid .image-wrapper {
    margin: 0;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.image-grid img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-grid .image-wrapper:hover img {
    transform: scale(1.1);
}

/* 图片加载效果 */
.image-wrapper.loading {
    background: linear-gradient(90deg,
            rgba(17, 17, 46, 0.5) 25%,
            rgba(10, 10, 26, 0.7) 50%,
            rgba(17, 17, 46, 0.5) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* 图片指示器 */
.image-wrapper .img-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #00d2ff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 3;
    border: 1px solid rgba(0, 210, 255, 0.3);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .img-indicator {
    opacity: 1;
}

/* 全屏预览样式 */
.image-wrapper.preview-enabled {
    cursor: zoom-in;
}

.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.preview-overlay.active {
    opacity: 1;
    visibility: visible;
}

.preview-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(79, 109, 245, 0.3);
    animation: previewAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes previewAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.preview-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(79, 109, 245, 0.2);
    border: 1px solid rgba(79, 109, 245, 0.4);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.preview-close:hover {
    background: rgba(255, 71, 87, 0.3);
    border-color: rgba(255, 71, 87, 0.6);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .guide-img {
        max-width: 95%;
        margin: 2rem auto;
    }

    .preview-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .guide-img {
        max-width: 100%;
        border-radius: 12px;
    }

    .image-wrapper .img-indicator {
        top: 0.8rem;
        right: 0.8rem;
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}