/* 捐款列表樣式 */
.donation-list {
    display: flex;
    flex-direction: column; /* 垂直排列 */
    gap: 1.5rem; /* 增加項目間距 */
    margin: 2rem 0;
}

.donation-item {
    display: flex;
    flex-direction: column; /* 改變排版方向為垂直 */
    gap: 0.5rem; /* 調整項目內間距 */
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding:1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donation-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.donation-item h3 {
    color: #d4a017;
    font-size: 1.8rem;
    text-align: center; /* 標題居中 */
    margin-bottom: 0.5rem; /* 增加標題下方間距 */
}

/* 圖片與文字內容的容器 */
.donation-content {
    display: flex; /* 讓圖片與說明文字並排 */
    gap: 1.5rem;
    align-items: flex-start;
}

.donation-image {
    flex-shrink: 0;
    width: 75%; /* 圖片佔據 75% 寬度 */
    max-width: 900px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.donation-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.donation-info {
    flex-grow: 1;
}

.donation-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 18px;
}

.postal-info {
    margin-top: 1.5rem;
    background-color: #f8f4e9;
    padding: 0.8rem;
    border-left: 5px solid #d4a017;
    border-radius: 8px;
}

.postal-info p {
    margin-bottom: 0.5rem;
    color: #555;
}

.postal-info p strong {
    color: #333;
}

/* 圖片彈跳視窗樣式 */
.modal {
    display: none; /* 預設隱藏 */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    transition: opacity 0.3s;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    padding-top: 5vh;
}

.modal .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

/* 手機版響應式調整 */
@media (max-width: 768px) {
    .donation-content {
        flex-direction: column; /* 在小螢幕上將圖片和文字垂直排列 */
        gap: 1.5rem;
        padding: 0;
    }

    .donation-item {
        padding: 1.5rem;
    }

    .donation-image {
        width: 100%; /* 圖片佔滿寬度 */
        max-width: none;
    }
}