/**
 * 图片灯箱样式
 * 基础样式（关闭按钮、导航箭头等）
 * 注意：布局样式在 lightbox-new-layout.css 中定义
 */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s, transform 0.3s;
    z-index: 10002;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* 鼠标悬停在主图区域时显示箭头 */
.lightbox-main-center:hover .lightbox-nav {
    opacity: 1;
}

/* 隐藏原有布局 */
.lightbox-content {
    display: none;
}

.lightbox-main {
    display: none;
}

.lightbox-sidebar {
    display: none;
}

/* 主图区域内的箭头使用绝对定位 */
.lightbox-main-center .lightbox-nav {
    position: absolute;
}

/* 详情信息样式 */
.lightbox-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 1) !important;
}

.detail-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-section h6 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* 可折叠的详情栏目 */
.detail-section-collapsible .detail-section-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    margin-bottom: 0 !important;
}

.detail-section-collapsible .detail-section-toggle:hover {
    color: rgba(255, 255, 255, 1) !important;
}

.detail-section-collapsible .detail-section-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.detail-section-collapsible .detail-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease;
    margin-top: 0;
    opacity: 0;
    padding: 0;
}

/* 折叠状态 - 确保内容完全隐藏 */
.detail-section-collapsible.collapsed {
    padding-bottom: 0 !important;
}

.detail-section-collapsible.collapsed .detail-section-content {
    max-height: 0 !important;
    margin-top: 0 !important;
    opacity: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* 展开状态 */
.detail-section-collapsible:not(.collapsed) {
    padding-bottom: 20px;
}

.detail-section-collapsible:not(.collapsed) .detail-section-content {
    max-height: 2000px !important; /* 足够大的值，确保内容完全展开 */
    margin-top: 15px !important;
    opacity: 1 !important;
    overflow: visible !important;
}

.detail-section p,
.detail-section p.text-light {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.6;
}

.detail-item {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
}

.detail-label {
    color: rgba(255, 255, 255, 0.65) !important;
    margin-right: 10px;
    min-width: 90px;
}

.detail-value {
    color: rgba(255, 255, 255, 0.9) !important;
    flex: 1;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tags .badge {
    padding: 6px 12px;
    font-weight: 500;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75) !important;
}

.detail-actions {
    margin-top: 25px;
}

/* 确保下拉菜单在 lightbox 中正常工作 */
.lightbox-info .dropdown {
    position: relative;
    z-index: 10001;
}

.lightbox-info .dropdown-menu {
    z-index: 10002 !important;
    position: absolute !important;
}

.detail-actions .btn {
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
}

/* 设计师头像样式 */
.detail-designers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.designer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.detail-designers .designer-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    align-items: flex-start !important;
}

.designer-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.designer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.designer-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.designer-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    border-radius: 50%;
}

.detail-designers .designer-name {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    display: block !important;
}

.detail-designers .designer-category-badge-small {
    display: block !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.55) !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
    margin-top: 0 !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    opacity: 1 !important;
}

/* 响应式 - 只保留基础样式调整，布局样式在 lightbox-new-layout.css 中 */
@media (max-width: 992px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .detail-designers {
        gap: 8px;
    }
    
    .designer-item {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .designer-avatar {
        width: 28px;
        height: 28px;
    }
    
    .designer-name {
        font-size: 13px;
    }
}

/* ========================================
   预览弹窗按钮优化样式
   ======================================== */

/* 三级操作按钮样式统一（收藏和分享） */
.tertiary-actions .btn {
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.tertiary-actions .btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* 二级操作按钮样式统一（查看详情和安装视频） */
.secondary-actions .btn {
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.secondary-actions .btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* 一级操作按钮（下载）保持原有样式 */
.primary-actions .btn {
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.primary-actions .btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tertiary-actions .btn,
    .secondary-actions .btn,
    .primary-actions .btn {
        padding: 10px 14px !important;
        font-size: 14px !important;
    }
}
