/* 图片显示样式 */
.principle-image {
    text-align: center;
    margin: 30px 0;
    padding: 15px;
    background: #252525;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.principle-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #444;
    transition: transform 0.3s ease, filter 0.3s ease;
    user-select: none; /* 图片本身不可选择 */
}

.principle-image:hover img {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.image-caption {
    color: #aaa;
    font-style: italic;
    margin-top: 10px;
    font-size: 0.9rem;
    padding: 0 10px;
}

.image-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ccc;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.principle-image:hover .image-hint {
    opacity: 1;
}

/* 图片放大模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.7);
}

.modal-zoom {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.modal-zoom:hover {
    background: rgba(79, 195, 247, 0.9);
}

.modal-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ccc;
    font-style: italic;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .principle-image {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .modal-zoom {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}