/* 1. 基礎佈局與全域背景修正 */
body {
    background-color: #fffdfa !important; /* 統一為 ArtEcho 畫布米色 */
}

.cloud-grid {
    column-count: 4;
    column-gap: 20px;
    padding: 20px 0;
}

@media (max-width: 992px) { .cloud-grid { column-count: 3; } }
@media (max-width: 600px) { .cloud-grid { column-count: 2; } }

/* 2. 標籤篩選列 (與網頁風格一致) */
.tag-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
    justify-content: center;
}

.tag-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(47, 93, 79, 0.2);
    background-color: #fffdfa;
    color: #2f5d4f;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.tag-btn:hover {
    background-color: #f1f4f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.tag-btn.active {
    background-color: #2f5d4f;
    color: #ffffff;
    border-color: #2f5d4f;
    box-shadow: 0 4px 12px rgba(47, 93, 79, 0.3);
}

/* 3. 作品卡片 */
.cloud-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.02);
}

.cloud-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.cloud-item img {
    width: 100%;
    display: block;
    height: auto;
}

.cloud-info {
    padding: 12px;
    padding-right: 70px; /* 為按讚數留位 */
}

.cloud-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #2f5d4f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cloud-info p {
    font-size: 0.8rem;
    color: #7a8886;
    margin: 4px 0 0;
}

/* 4. 按讚按鈕 (陶土紅風格) */
.like-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    z-index: 10;
}

.heart-icon {
    font-size: 1.1rem;
    color: #ccc;
    transition: color 0.3s ease;
}

.like-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: #5a6b6a;
}

.like-btn.active .heart-icon {
    color: #c66b3d; /* 陶土紅 */
}

.like-btn:active {
    transform: scale(0.9);
}