/* 文章图片基础样式 */
.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    cursor: zoom-in !important;
    margin: 20px 0 !important;
    display: block !important;
}

/* 悬停效果 */
.article-image:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* 图片对齐样式 */
.aligncenter {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.alignleft {
    float: left !important;
    margin-right: 20px !important;
    margin-bottom: 20px !important;
}

.alignright {
    float: right !important;
    margin-left: 20px !important;
    margin-bottom: 20px !important;
}

/* 清除浮动 */
.product-main-content::after {
    content: "";
    display: table;
    clear: both;
}

/* 图片说明文字 */
.wp-caption-text {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: 8px;
    margin-bottom: 20px;
}

/* 灯箱样式 */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lightbox-caption {
    color: #fff;
    margin-top: 15px;
    font-size: 1rem;
    padding: 0 20px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #ffc107;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.lightbox-prev,
.lightbox-next {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: #ffc107;
    color: #1a4b8c;
}

/* 防止页面滚动 */
body.lightbox-open {
    overflow: hidden;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-image {
        margin: 15px 0 !important;
    }
    
    .alignleft,
    .alignright {
        float: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        top: -40px;
        font-size: 2rem;
    }
}