
}/* --- 基礎設定 --- */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, "Noto Sans TC", "微軟正黑體", sans-serif;
}

/* --- 總容器：鎖定 1200px --- */
.creative-wrapper {
    max-width: 1200px; /* */
    margin: 0 auto;
    padding: 0px 20px 40px 20px;
}

/* --- 瀑布流網格：一行 5 塊 --- */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* */
    gap: 15px;
}

.grid-item { cursor: pointer; }

/* --- 小圖預覽與 50% 黑底遮罩 --- */
.thumb-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: none !important;
    box-shadow: none !important;
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 解決白邊問題 */
    display: block;
}

.hover-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 50% 黑底 */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item:hover .hover-overlay { opacity: 1; }

/* --- 彈出大圖 Lightbox --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    background: #fff;
    width: 90%;
    max-width: 1100px;
    padding: 50px;
    border-radius: 30px;
    position: relative;
}

/* --- 關閉按鈕 XX 的滑鼠互動 --- */
.close-btn {
    position: absolute;
    right: 25px; 
    top: 15px;
    font-size: 45px;
    cursor: pointer;
    color: #333 !important; /* 平時的顏色：深灰色 */
    z-index: 10000;
    line-height: 1;
    transition: color 0.2s ease; /* 讓變色過程平滑一點 */
}

/* 核心修正：滑鼠靠近時變色 */
.close-btn:hover {
    color: #ed457d !important; /* 變為您指定的桃紅色 */
}

/* 大圖內容排版 */
.detail-flex {
    display: flex;
    gap: 40px;
    align-items: center; /* 垂直居中 */
}

.detail-img {
    /* 讓這個容器不要強行撐大 */
    display: flex;
    justify-content: center;
    align-items: center;
}
.detail-img img { width: 100%; border-radius: 15px; display: block; }

.detail-info {
    flex: 1;
    text-align: left; /* 齊頭靠左 */
}

.detail-info h2 {
    color: #ed457d; /* 桃紅色標題 */
    font-size: 24px;
    margin-bottom: 25px; /* 標題下間距 */
}

.detail-info p {
    color: #666; /* */
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-wrap; /* 支援多行段落 */
}
/* 大圖點擊效果 */
.detail-img a {
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.detail-img a:hover {
    opacity: 0.9; /* 移上去稍微變淡，提示可以點擊 */
}

/* 可以在圖片加上小小的手勢提示 */
.detail-img img {
    cursor: zoom-in; /* 或是使用 pointer */
}

/* 分類標題樣式 */
.category-title {
    grid-column: 1 / -1; /* 核心：讓標題橫跨一整排 (1到最後) */
    padding: 40px 0 10px 0; /* 上留白多一點，區隔系列 */
    text-align: left;
}

.category-title h3 {
    font-size: 20px;
    color: #333;
    border-left: 5px solid #ed457d; /* 左側加一條桃紅小邊，更有設計感 */
    padding-left: 15px;
    margin: 0;
    letter-spacing: 2px;
}

/* 第一個標題不要太靠上 */
.category-title:first-child {
    padding-top: 10px;
}

/* 手機版 RWD */
@media (max-width: 1024px) { .masonry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .masonry-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-flex { flex-direction: column; text-align: center; }
}