/* 案例详情页样式 */
#case-detail {
    opacity: 0;
    transition: opacity 0.5s ease;
}

#case-detail.loaded {
    opacity: 1;
}

.loading {
    text-align: center;
    padding: 100px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--accent-color, #8b4513);
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.video-player {
    height: auto;
    width: 70%;
    box-sizing: border-box;
    padding:5px;
    margin: 30px 15% 10px;
    text-align: center;
    border: rgb(173, 145, 121) 1px solid;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    text-align: center;
    padding: 100px 20px;
    color: #666;
}

.error-message h2 {
    margin: 20px 0 10px;
    color: #333;
}

.error-message .fa-exclamation-triangle {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.reload-btn {
    margin-top: 20px;
    padding: 10px 30px;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}


/* 案例详情内容 */
.case-container {
    margin: 0 auto;
}

.case-content>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.case-content.animated>* {
    opacity: 1;
    transform: translateY(0);
}

/* 产品切换器（调试用） */
.product-switcher {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px;
    z-index: 1000;
    display: none;
}

.switch-btn {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 8px;
    border: none;
    cursor: pointer;
}

.toggle-switcher {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 40px;
    height: 40px;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1001;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-preview {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-switcher,
    .toggle-switcher {
        display: none !important;
        /* 移动端隐藏调试工具 */
    }
}