/* ACG 圖片樣式 - ACG Image Styles */

/* ACG 圖片區域樣式 */
.acg-section {
    margin-bottom: var(--spacing-xl);
}



.acg-container {
    background: var(--background-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.acg-container h3 {
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xl) 0;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
    display: inline-block;
}

.acg-image-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto var(--spacing-md) auto;
}

.acg-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.acg-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

/* 全屏圖片樣式 */
.acg-image-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    box-shadow: none;
}

/* 全屏背景遮罩 */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

/* 全屏圖片動畫 */
.acg-image-entering-fullscreen {
    animation: enterFullscreen 0.3s ease forwards;
}

.acg-image-exiting-fullscreen {
    animation: exitFullscreen 0.3s ease forwards;
}

@keyframes enterFullscreen {
    from {
        transform: scale(1);
        border-radius: var(--radius-sm);
    }
    to {
        transform: scale(1);
        border-radius: 0;
    }
}

@keyframes exitFullscreen {
    from {
        transform: scale(1);
        border-radius: 0;
    }
    to {
        transform: scale(1.02);
        border-radius: var(--radius-sm);
    }
}

/* 防止頁面滾動 */
body.fullscreen-active {
    overflow: hidden;
}

.acg-loading {
    padding: var(--spacing-2xl) var(--spacing-xl);
    color: var(--text-secondary);
    font-style: italic;
    background: var(--background-light);
    border-radius: var(--radius-sm);
    border: 2px dashed var(--border-color);
    margin: var(--spacing-md) 0;
}

/* 手動主題模式適配 */
[data-theme="light"] .acg-container {
    background: var(--background-white);
    box-shadow: var(--shadow-light);
}

[data-theme="dark"] .acg-container {
    background: var(--background-white);
    box-shadow: var(--shadow-lg);
}