/* 基本樣式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft JhengHei', '微軟正黑體', Arial, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 圖片展示區域 */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
}

/* 資料夾區塊 */
.category-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-title {
    color: #ffffff;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 2px solid #666;
    padding-bottom: 10px;
}

/* 該資料夾的圖片網格 */
.category-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 單張圖片卡片 */
.image-card {
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
    border: 1px solid #444;
}

.image-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* 固定 4:3 比例的圖片容器 */
.image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.image-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-info .folder {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.image-info .filename {
    color: #e0e0e0;
    font-weight: bold;
    font-size: 1.1em;
}

/* 複製按鈕樣式 */
.copy-button {
    background: #444;
    color: #ffffff;
    border: 1px solid #666;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    font-family: 'Microsoft JhengHei', '微軟正黑體', Arial, sans-serif;
}

.copy-button:hover {
    background: #555;
    border-color: #777;
}

.copy-button:active {
    background: #333;
}

.copy-button.copied {
    background: #4a9eff;
    border-color: #6bb3ff;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .category-images {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .gallery {
        gap: 30px;
        padding: 10px;
    }
    
    .category-title {
        font-size: 1.5em;
    }
}

