/* 
 * Image Card Styles
 * 圖片卡片樣式
 * 
 * 版本: 1.0
 * 更新日期: 2025-01-23
 */

/* 圖片卡片樣式 */
.image-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 圖片區域 */
.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 50%; /* 2:1 比例 */
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 內容區域 */
.card-body {
    padding: 25px;
    text-align: center;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-text p {
    margin-bottom: 0;
}

/* 按鈕樣式 */
.card-link .btn {
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .card-body {
        padding: 20px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .card-image-wrapper {
        padding-bottom: 60%;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .card-title {
        font-size: 16px;
    }
}
